You are not logged in.

#1281 2016-10-22 07:42:55

ragamatrix
Member
Registered: 2015-10-04
Posts: 427

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

@Sector11>B I G T H A N K S it's a clean config and it works fine \o/ Thanks Teo and Unklar for this weather script.
1477122139.png

Offline

#1282 2016-10-22 07:45:25

TeoBigusGeekus
BL DieHard
From: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Glad you like it ragamatrix.


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#1283 2016-10-22 12:32:38

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,646

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

@ragamatrix
i have only depreciated  :8


@Teo
Very good suggestion,
The clever Boy, El Conkystador, will certainly integrate it.  big_smile


@Sector11
crook = german "Gauner" tongue
and, please re-transform the German "k" in a soft "c". 8.( So it fits much better to "El Conkystador" cool


guys
here it is fun.   smile

Last edited by unklar (2016-10-22 12:34:10)

Offline

#1284 2016-10-22 12:43:06

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,011

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

TeoBigusGeekus wrote:
unklar wrote:

@Teo

These thanks I am happy to pass on Sector11.
It was due to his companion.conky...   wink

Another function for conky companion: bug finder!

Well there you go, you guys finally discovered why I created the conky companions!  victory_sm.png

Now, if you believe that I have a couple of bridges in New York I can sell you. money_sm.png Who'll start the bidding???

@ ragamatrix More than welcome my friend.  We've been trading things over the years.  Glad to help!
Also, if memory serves me correctly, loutch had a big influence on this as well.

===   ===   ===   ===   ===   ===   ===   ===
Seriously, "bug finder" is cool!


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1285 2016-10-22 13:08:29

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,011

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

unklar wrote:

@Sector11
crook = german "Gauner" tongue
and, please re-transform the German "k" in a soft "c". 8.( So it fits much better to "El Conkystador" cool

guys
here it is fun.   smile

Ahhhhhhhhhh so many choices:

Translations of Gauner
noun
   
rogue » Schurke, Schelm, Gauner, Spitzbube, Schlingel, Lump
rascal » Schlingel, Schurke, Gauner, Bengel, Racker, Halunke
scalawag » Gauner, Lausbub, Spitzbube
crook » Gauner, Beuge, Ganove, Krümmung, Stab, Krücke
scoundrel » Schurke, Halunke, Gauner, Kanaille, Wicht, Fötzel
swindler » Schwindler, Betrüger, Gauner
thief » Dieb, Diebin, Gauner
trickster » Betrüger, Gauner
slicker » Regenjacke, Gauner, Ganove
shyster » Rechtsverdreher, Gauner
scamp » Halunke, Gauner, Lausbub, Racker, Spitzbube, Wildfang
racketeer » Gangster, Schieber, Gauner, Schutzgelderpresser, Halsabschneider
operator » Operator, Betreiber, Bediener, Unternehmer, Veranstalter, Gauner
rook » Turm, Saatkrähe, Gauner, Betrüger
cunning devil » Fuchs, Gauner

Yea, I fit a few of those, but not crook or thief.  smile

Fuch - fox or cunning devil I can live with.   lol  lol  lol

 22 Oct 16 @ 10:03:33 ~
  $ deen Fuchs
2 definitions found

From German-English FreeDict Dictionary ver. 0.3.4 [fd-deu-eng]:

  Fuchs /fuks/ <n, s>
   fox

From German-English FreeDict Dictionary ver. 0.3.4 [fd-deu-eng]:

  Fuchs... /fuks/
   vulpine
 
 22 Oct 16 @ 10:04:17 ~
  $ wnet vulpine
alias wnet = dict -d wn
1 definition found

From WordNet (r) 3.0 (2006) [wn]:

  vulpine
      adj 1: resembling or characteristic of a fox; "vulpine cunning"
             [syn: {vulpine}, {vulpecular}]
 
 22 Oct 16 @ 10:05:03 ~
  $ 

OK back on topic:

Today's weather is outside!


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1286 2016-10-22 19:22:13

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,646

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Sector11 wrote:

Fuch - fox or cunning devil I can live with.

Ok, ok, i agree and you change that again to "Sector11".   O:)

Offline

#1287 2016-10-23 11:59:41

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,646

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

TeoBigusGeekus wrote:

although I think we're not done yet with moongiant.com...

Hello Theo,
We have "Last Quarter" and the rise picture is no longer displayed.
4moonFehler1.th.jpg
raw

53%
0.54
148,832,024.89
375,628.03
21.82
0.53
Last Quarter
Midnight/Noon
Saturday, October 22, 2016
October
Phase: Last Quarter
October 20
75%
0.53557580330271
148914772.87842
367845.52855184
19.707712531118
0.54141791225262
Waning Gibbous
October 21
64%
0.53572501651258
148873296.28021
371395.58912753
20.780292437713
0.53624265858368
Waning Gibbous
October 23
43%
0.53602142941139
148790971.27811
380281.18682891
22.825644436425
0.52371288666878
Waning Crescent
October 24
33%
0.53616853625461
148750147.9761
385084.94223335
23.804747698914
0.51717981218625
Waning Crescent
moon_day_WanG_75
moon_day_WanG_60
moon_day_last
moon_day_WanC_40
moon_day_WanC_30

script

#!/bin/bash

#function: moonrise_set
moonrise_set () {
    case "$1" in
         "FirstQuarter")
			echo "Noon/Midnight"
			cp $HOME/4_Moon/riseicons/rise_FirstQuarter.jpg $HOME/4_Moon/rise.jpg
         ;;
         "FullMoon")
			echo "6PM/6AM"
			cp $HOME/4_Moon/riseicons/rise_FullMoon.jpg $HOME/4_Moon/rise.jpg
		 ;;	
		 "LastQuarter")
			echo "Midnight/Noon"
			p $HOME/4_Moon/riseicons/rise_LastQuarter.jpg $HOME/4_Moon/rise.jpg
		 ;;	
		 "NewMoon")
			echo "6AM/6PM"
			cp $HOME/4_Moon/riseicons/rise_NewMoon.jpg $HOME/4_Moon/rise.jpg
		 ;;
		 "WaningCrescent")
			echo "3AM/3PM"
			cp $HOME/4_Moon/riseicons/rise_WaningCrescent.jpg $HOME/4_Moon/rise.jpg
		 ;;
		 "WaningGibbous")
			echo "9PM/9AM"
			cp $HOME/4_Moon/riseicons/rise_WaningGibbous.jpg $HOME/4_Moon/rise.jpg
		 ;;
		 "WaxingCrescent")
			echo "9AM/9PM"
			cp $HOME/4_Moon/riseicons/rise_WaxingCrescent.jpg $HOME/4_Moon/rise.jpg
		 ;;
		 "WaxingGibbous")
			echo "3PM/3AM"
			cp $HOME/4_Moon/riseicons/rise_WaxingGibbous.jpg $HOME/4_Moon/rise.jpg
		 ;;
		 *)
			echo "Unavailable"
		 esac
} 

kill -STOP $(pidof conky)

#put your hemisphere here: north or south
hemisphere=north

wget -O $HOME/4_Moon/raw "http://www.moongiant.com/phase/today"
rm $HOME/4_Moon/*.png $HOME/4_Moon/*.jpg

sed -i -e '/^ *$/d' -e 's/^ *//g' $HOME/4_Moon/raw
sed -i '/var jArray=\|"todayMoonContainer"\|"moonNotToday"/!d' $HOME/4_Moon/raw
sed -i -e '/var jArray/s/","/\n/g' -e 's/<span>\|<b>\|<\\\/span>\|<\\\/b>\|\\n//g' /$HOME/4_Moon/raw
sed -i -e '/var jArray/d' -e 's/^.*\:\[\"//g' /$HOME/4_Moon/raw
sed -i -e 's/"\]};//g' -e 's/^.*today_phase\///g' -e 's/\.jpg.*$//g' /$HOME/4_Moon/raw
sed -i -e 's/^small\///g' -e 's/\.png.*$//g' /$HOME/4_Moon/raw
sed -i -e 's/Illumination: \|Sun Angle: \|Sun Distance: \|Moon Distance: \|Moon Age: \|Moon Angle: //g' -e '43d' /$HOME/4_Moon/raw
#September 30-October 1 fix
for (( i=11; i<=35; i+=8 ))
	do
		if [[ $(sed -n ${i}p /$HOME/4_Moon/raw) == "September 30" ]]; then
			line=$((i+7))
			sed -i "${line}s/^.*$/Waning Crescent/" /$HOME/4_Moon/raw
		fi
		if [[ $(sed -n ${i}p /$HOME/4_Moon/raw) == "October 1" ]]; then
			line=$((i+7))
			sed -i "${line}s/^.*$/New Moon/" /$HOME/4_Moon/raw
		fi
	done
today_phase=$(sed -n 8p /$HOME/4_Moon/raw| awk -F "," '{print $2}'| sed 's/ //')
if [[ $today_phase == "September 30" ]]; then
			sed -i '7s/^.*$/Waning Crescent/' /$HOME/4_Moon/raw
			sed -i '10s/^.*$/Phase: Waning Crescent/' /$HOME/4_Moon/raw
fi
if [[ $today_phase == "October 1" ]]; then
			sed -i '7s/^.*$/New Moon/' /$HOME/4_Moon/raw
			sed -i '10s/^.*$/Phase: New Moon/' /$HOME/4_Moon/raw
fi

phase=$(sed -n 7p $HOME/4_Moon/raw|sed 's/ //')
mrise_mset=$(moonrise_set $phase)
sed -i 7a$(moonrise_set $phase) /$HOME/4_Moon/raw

#Day before Yesterday
img_in=$(sed -n 44p $HOME/4_Moon/raw)
cp $HOME/4_Moon/moongiant_icons_$hemisphere/$img_in.png $HOME/4_Moon/-2.png

#Yesterday
img_in=$(sed -n 45p $HOME/4_Moon/raw)
cp $HOME/4_Moon/moongiant_icons_$hemisphere/$img_in.png $HOME/4_Moon/-1.png

#Today
img_in=$(sed -n 46p $HOME/4_Moon/raw)
cp $HOME/4_Moon/moongiant_icons_$hemisphere/$img_in.png $HOME/4_Moon/0.png

#Tomorrow
img_in=$(sed -n 47p $HOME/4_Moon/raw)
cp $HOME/4_Moon/moongiant_icons_$hemisphere/$img_in.png $HOME/4_Moon/1.png

#Day after Tomorrow
img_in=$(sed -n 48p $HOME/4_Moon/raw)
cp $HOME/4_Moon/moongiant_icons_$hemisphere/$img_in.png $HOME/4_Moon/2.png

date +%T > $HOME/4_Moon/aktualisiert
kill -CONT $(pidof conky) 

I'm not home until tonight.  wink

Offline

#1288 2016-10-23 12:13:59

TeoBigusGeekus
BL DieHard
From: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

ANNOUNCEMENT

Another bug discovered by unklar, this time in the 4 (Moongiant) script. The latter has been corrected and rebundled.
Alternatively, just replace line 16 of the script

p $HOME/4_Moon/riseicons/rise_LastQuarter.jpg $HOME/4_Moon/rise.jpg

with

cp $HOME/4_Moon/riseicons/rise_LastQuarter.jpg $HOME/4_Moon/rise.jpg

Gluckwunsch unklar!


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#1289 2016-10-23 18:04:52

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,646

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Hello Teo,
i would have known that you were so fast I would have waited.  wink
A look from you (free according to the motto: "Look me in the eyes, little one"). big_smile

It's all super. Good job of you. Thanks!

Offline

#1290 2016-10-23 18:07:41

TeoBigusGeekus
BL DieHard
From: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Thanks for the sharp eye unklar!


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#1291 2016-10-23 18:32:03

TeoBigusGeekus
BL DieHard
From: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Ayyyyy, I announced the the script update but forgot to change the link on the first page, sorry everyone.


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#1292 2016-10-23 20:50:37

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,011

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

^ We all have our moments Teo, we can't all be perfect

Interesting, mine was still working in the southern hemisphere despite the missing 'c' in line 16 see below:
2016_10_23_17_42_34_Scrot11.jpg
... although now fixed.

unklar needs a new title:  Official Bug Squasher  - or OBS for short! wink


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1293 2016-10-23 21:00:46

TeoBigusGeekus
BL DieHard
From: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Yeah, cause unklar has "Last Quarter" as the current moon phase (-> the script goes to line 16 -> FAIL), whereas you have "Waning Crescent" as your current moon phase (-> the script goes to line 24 -> NOT FAIL)...

...and damn me if I know why you two have different moon phases...
Is it supposed to be different, depending on the hemisphere your reside?


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#1294 2016-10-23 22:03:14

Sector11
Mod Squid Tpyo Knig
From: Upstairs
Registered: 2015-08-20
Posts: 8,011

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

I will research that.  Could it be there is something with time zones ???

Or maybe the hemisphere?


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#1295 2016-10-24 07:12:45

Head_on_a_Stick
Member
From: London
Registered: 2015-09-29
Posts: 9,067
Website

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Offline

#1296 2016-10-24 08:41:45

TeoBigusGeekus
BL DieHard
From: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Yes, but would this explain a different phase between the two hemispheres?
I can see why the same phase would look mirrored or upside down, but a different phase?


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#1297 2016-10-24 12:19:11

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,646

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

TeoBigusGeekus wrote:

Yeah, cause unklar has "Last Quarter" as the current moon phase (-> the script goes to line 16 -> FAIL), whereas you have "Waning Crescent" as your current moon phase (-> the script goes to line 24 -> NOT FAIL)...

...and damn me if I know why you two have different moon phases...
Is it supposed to be different, depending on the hemisphere your reside?

Please compare the raw file when I noticed the error.

In the evening, when I looked at the correction, I noticed on the MoonGiant website that "LastQuarter" was already the previous day (22).
The representation in the conky was now in contrast to noon (compare the picture), correct.

Then it was postponed before the fix by one day?

Offline

#1298 2016-10-24 16:40:18

TeoBigusGeekus
BL DieHard
From: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Alright, it's 19:40 here in Greece, everyone's awake, can we confirm that the following is the situation for all?
AuaibuCt.png


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

#1299 2016-10-24 17:19:37

unklar
Back to the roots 1.9
From: #! BL
Registered: 2015-10-31
Posts: 2,646

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

The data are correct here for 7 pm.
4moonFehler2.th.jpg

Offline

#1300 2016-10-24 17:42:14

TeoBigusGeekus
BL DieHard
From: /Deutschland/Frankfurt_am_Main
Registered: 2015-10-04
Posts: 1,486

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/MoonGiant)

Perfect, waiting for the southern hemisphere.


Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!
Please make Autocad Civil 3D and Archicad work on Linux!

Offline

Board footer

Powered by FluxBB