You are not logged in.

#3921 2020-12-16 15:33:33

il.harun
Member
Registered: 2020-06-04
Posts: 54

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

@ Teo
I rarely use MoonGiant,
but I can observe and report when an anomaly is found.
For observation, I added "breakpoints" to the test script:
cp $HOME/Moongiant_conky_script/raw $HOME/Moongiant_conky_script/raw.....

#!/usr/bin/env bash

sleep 5

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

#########################################################################################
# Put the command that launches the conky configuration file that uses this script here #
#########################################################################################
weather_conky_launch_command="conky -b"

#Pause weather conky
pkill -STOP -xf "$weather_conky_launch_command"


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

wget -q -O $HOME/Moongiant_conky_script/moon_today_raw "https://www.moongiant.com/phase/today"
rm $HOME/Moongiant_conky_script/*.png $HOME/Moongiant_conky_script/*.jpg

sed -e '/^ *$/d' -e 's/^ *//g' $HOME/Moongiant_conky_script/moon_today_raw > $HOME/Moongiant_conky_script/raw
cp $HOME/Moongiant_conky_script/raw $HOME/Moongiant_conky_script/raw01
sed -i '/var jArray=\|"todayMoonContainer"\|"moonNotToday"/!d' $HOME/Moongiant_conky_script/raw
cp $HOME/Moongiant_conky_script/raw $HOME/Moongiant_conky_script/raw02
sed -i '/var jArray/s/","/\n/g' $HOME/Moongiant_conky_script/raw
cp $HOME/Moongiant_conky_script/raw $HOME/Moongiant_conky_script/raw03
sed -i -e 's/^.*<b>//g' -e 's/<\\\/b>//g' -e 's/\\n//g' -e 's/<span>//g' -e 's/<\\\/span>//g' -e '45d' $HOME/Moongiant_conky_script/raw
cp $HOME/Moongiant_conky_script/raw $HOME/Moongiant_conky_script/raw04

sed -i -e 's/^small\///g' -e 's/\.png.*$//g' $HOME/Moongiant_conky_script/raw
cp $HOME/Moongiant_conky_script/raw $HOME/Moongiant_conky_script/raw05
sed -i -e 's/Illumination: \|Sun Angle: \|Sun Distance: \|Moon Distance: \|Moon Age: \|Moon Angle: //g' $HOME/Moongiant_conky_script/raw
cp $HOME/Moongiant_conky_script/raw $HOME/Moongiant_conky_script/raw06

#Restore older order
sed -i '17d' $HOME/Moongiant_conky_script/raw
cp $HOME/Moongiant_conky_script/raw $HOME/Moongiant_conky_script/raw07
sed -n '17,26p' $HOME/Moongiant_conky_script/raw > $HOME/Moongiant_conky_script/temp
cp $HOME/Moongiant_conky_script/temp $HOME/Moongiant_conky_script/raw08
sed -i '17,26d' $HOME/Moongiant_conky_script/raw
cp $HOME/Moongiant_conky_script/raw $HOME/Moongiant_conky_script/raw09
cp $HOME/Moongiant_conky_script/raw $HOME/Moongiant_conky_script/raw1
cp $HOME/Moongiant_conky_script/raw1 $HOME/Moongiant_conky_script/raw010
cat $HOME/Moongiant_conky_script/temp $HOME/Moongiant_conky_script/raw1 > $HOME/Moongiant_conky_script/raw
cp $HOME/Moongiant_conky_script/raw $HOME/Moongiant_conky_script/raw011
rm $HOME/Moongiant_conky_script/raw1 $HOME/Moongiant_conky_script/temp
sed -i -e 's/^.*today_phase\/small\///g' -e 's/^.*today_phase\///g' -e 's/\.jpg.*$//g' $HOME/Moongiant_conky_script/raw
cp $HOME/Moongiant_conky_script/raw $HOME/Moongiant_conky_script/raw012
sed -i '28d' $HOME/Moongiant_conky_script/raw

#September 30-October 1 fix
for (( i=11; i<=35; i+=8 ))
	do
		if [[ $(sed -n ${i}p $HOME/Moongiant_conky_script/raw) == "September 30" ]]; then
			line=$((i+7))
			sed -i "${line}s/^.*$/Waning Crescent/" $HOME/Moongiant_conky_script/raw
		fi
		if [[ $(sed -n ${i}p $HOME/Moongiant_conky_script/raw) == "October 1" ]]; then
			line=$((i+7))
			sed -i "${line}s/^.*$/New Moon/" $HOME/Moongiant_conky_script/raw
		fi
	done
today_phase=$(sed -n 8p $HOME/Moongiant_conky_script/raw| awk -F "," '{print $2}'| sed 's/ //')
if [[ $today_phase == "September 30" ]]; then
			sed -i '7s/^.*$/Waning Crescent/' $HOME/Moongiant_conky_script/raw
			sed -i '10s/^.*$/Phase: Waning Crescent/' $HOME/Moongiant_conky_script/raw
fi
if [[ $today_phase == "October 1" ]]; then
			sed -i '7s/^.*$/New Moon/' $HOME/Moongiant_conky_script/raw
			sed -i '10s/^.*$/Phase: New Moon/' $HOME/Moongiant_conky_script/raw
fi

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


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

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

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

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

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



########### Moon phase to font characters

	#function: test_moon_phase_font
	test_moon_phase_font () {
	    case $1 in
	         NewMoon)
	           echo N Новолуние
	         ;;
	         FirstQuarter)
	           echo S Первая четверть
	         ;;
	         FullMoon)
	           echo n Полнолуние
	         ;;
	         LastQuarter)
	           echo H Последняя четверть
	         ;;
	         WaningGibbous)
	           echo F Убывающая луна
	         ;;
	         WaningCrescent)
	           echo J Убывающий серп
	         ;;
	         WaxingCrescent)
	           echo Q Растущий серп
	         ;;
	         WaxingGibbous)
	           echo U Растущий месяц
	         ;;
	          *)
		   echo \@ n/a
		 ;;
	    esac
	}
		





#convert Image Number Moon  to  Moon font letter  and translate moon phase en - ru
#
		echo $(test_moon_phase_font $phase) >> $HOME/Moongiant_conky_script/raw




#Resume weather conky
pkill -CONT -xf "$weather_conky_launch_command"

Offline

#3922 2020-12-16 23:16: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)

ANNOUNCEMENT
Moongiant: Some further corrections to the script. Thanks to il.harun for reporting the issue and his valuable help.


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

#3923 2021-01-06 14:43:46

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

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

^Hello Teo,  smile

Accuweather

the curr_cond has this error in line 8 since yesterday

7
-1
-3
Cloudy
NW
11 km/h
84%
&#x2191; 1008 mb    <====
0 Low
99%
36% (Dry)
-3
16 km
08:11 AM
04:21 PM
8:10
16 km/h
N/A
12:02 PM
N/A
400 m
e
08:11
16:21
N/A
12:02
7

Bildschirmfoto_2021-01-06_15-36-36.pngBildschirmfoto_2021-01-06_15-37-45.png

Offline

#3924 2021-01-06 19:34:32

il.harun
Member
Registered: 2020-06-04
Posts: 54

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

Hello Teo
I made a mistake on line 68 moongiant.
sed -i '28d' $HOME/Moongiant_conky_script/raw
sed -i '27d' $HOME/Moongiant_conky_script/raw
Testing, waiting for a new moon

Offline

#3925 2021-01-06 22:41:52

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
Accuweather script: Corrected tending arrow in front of pressure value in the curr_cond file.
Thanks to unklar for the notification.

Last edited by TeoBigusGeekus (2021-01-06 22:42:17)


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

#3926 2021-01-06 22:45:56

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

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

@il.harun
Everything's ok here with moongiant, I get 48 lines of output.
Why, what do you get?


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

#3927 2021-01-07 08:06:52

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

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

Thank you very much, Teo.
The "air pressure" is ok again.   big_smile

2021-01-07-09-02-49_scrot.th.png  2021-01-07_10-20.th.png

Last edited by unklar (2021-01-07 09:22:28)

Offline

#3928 2021-01-07 08:16:37

loutch
Member
Registered: 2015-12-12
Posts: 848

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

.

Last edited by loutch (2021-01-07 08:21:15)


Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Offline

#3929 2021-01-07 08:24:22

il.harun
Member
Registered: 2020-06-04
Posts: 54

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

Teo
delete: sed -i '28d' $HOME/Moongiant_conky_script/raw
new: sed -i '27d' $HOME/Moongiant_conky_script/raw
raw

38%
0.54
147,106,150.71
363,421.07
23.32
0.55
Waning Crescent
3AM/3PM
January 7, 2021
January
Phase: Waning Crescent
January 5
60%
0.54218168853438
147100410.79328
366723.27692188
21.180975526755
0.54307476681505
Waning Gibbous
January 6
49%
0.54217251809095
147102898.88692
364530.66510621
22.243677792171
0.54634130174473
Last Quarter
January 8  <<<====== (correct  January 7 - wrong)
27%
0.54214573815778
147110165.20947
363469.10294235
24.405883719333
0.54793696764808
Waning Crescent
January 9
17%
0.54212813825166
147114941.06395
364680.66462001
25.501920855896
0.54611658204452
Waning Crescent
moon_day_WanG_60
moon_day_last
moon_day_WanC_35
moon_day_WanC_25
moon_day_WanC_15

Offline

#3930 2021-01-09 01:43:23

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

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

I just saw your post il.harun, I'll investigate tomorrow (probably)


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

#3931 2021-01-09 17:29:50

il.harun
Member
Registered: 2020-06-04
Posts: 54

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

Teo
script accuweather:
I liked the pressure trendency arrow, I decided to leave it.
del line 375:   sed -i '8s/^.*; //' $HOME/Accuweather_conky_script/curr_cond
and paste:

sed -i -e '8s/&#x2194;/↔/g' -e '8s/&#x2191;/↑/g' -e '8s/&#x2193;/↓/g' -e '8s/&#x2197;/↗/g' -e '8s/&#x2198;/↘/g' -e '8s/&#x219D;/↝/g' $HOME/Accuweather_conky_script/curr_cond

May need correction arrow
https://graphemica.com/%E2%86%94
https://www.toptal.com/designers/htmlarrows/arrows/
and correct
line  389 392 395 398   delete /  front $HOME

Last edited by il.harun (2021-01-09 17:56:24)

Offline

#3932 2021-01-09 23:01:24

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

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

The delete line in the moongiant script should change every month or so...
I'll leave it until the next moon, see what happens; if you could please keep an eye on it, I'd be obliged.
As for the tendency arrow, I'll pass, do what you want wink
The corrections in front of the $HOME variable, I think they're harmless, aren't they?
I've corrected them, will push them with the next update.

Thanks for your sharp eye and help il.harun!


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

#3933 2021-01-10 10:48:43

il.harun
Member
Registered: 2020-06-04
Posts: 54

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

Yes, the / before $ HOME is ignored by bash.

script moongiant:
Found where the extra line appears.
replace line 63
sed -i '17,26d' $HOME/Moongiant_conky_script/raw
on

sed -i '17,27d' $HOME/Moongiant_conky_script/raw

and remove the line 68
sed -i '28d' $HOME/Moongiant_conky_script/raw
The test continues

Offline

#3934 2021-01-14 12:56:43

il.harun
Member
Registered: 2020-06-04
Posts: 54

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

Hello Teo
moongiant works:

#!/usr/bin/env bash

sleep 5

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

#########################################################################################
# Put the command that launches the conky configuration file that uses this script here #
#########################################################################################
weather_conky_launch_command="conky -b"

#Pause weather conky
pkill -STOP -xf "$weather_conky_launch_command"


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

wget -q -O $HOME/Moongiant_conky_script/moon_today_raw "https://www.moongiant.com/phase/today"
rm $HOME/Moongiant_conky_script/*.png $HOME/Moongiant_conky_script/*.jpg

sed -e '/^ *$/d' -e 's/^ *//g' $HOME/Moongiant_conky_script/moon_today_raw > $HOME/Moongiant_conky_script/raw
sed -i '/var jArray=\|"todayMoonContainer"\|"moonNotToday"/!d' $HOME/Moongiant_conky_script/raw
sed -i '/var jArray/s/","/\n/g' $HOME/Moongiant_conky_script/raw
sed -i -e 's/^.*<b>//g' -e 's/<\\\/b>//g' -e 's/\\n//g' -e 's/<span>//g' -e 's/<\\\/span>//g' -e '45d' $HOME/Moongiant_conky_script/raw

sed -i -e 's/^small\///g' -e 's/\.png.*$//g' $HOME/Moongiant_conky_script/raw
sed -i -e 's/Illumination: \|Sun Angle: \|Sun Distance: \|Moon Distance: \|Moon Age: \|Moon Angle: //g' $HOME/Moongiant_conky_script/raw

#Restore older order
#
#sed -n '18,27p' $HOME/Moongiant_conky_script/raw > $HOME/Moongiant_conky_script/temp
#sed -i '17,28d' $HOME/Moongiant_conky_script/raw
#cp $HOME/Moongiant_conky_script/raw $HOME/Moongiant_conky_script/raw1
#cat $HOME/Moongiant_conky_script/temp $HOME/Moongiant_conky_script/raw1 > $HOME/Moongiant_conky_script/raw
#rm $HOME/Moongiant_conky_script/raw1 $HOME/Moongiant_conky_script/temp


#Restore older order
sed -n '18,27p' $HOME/Moongiant_conky_script/raw > $HOME/Moongiant_conky_script/temp
sed '17,28d' $HOME/Moongiant_conky_script/raw >> $HOME/Moongiant_conky_script/temp
mv  $HOME/Moongiant_conky_script/temp  $HOME/Moongiant_conky_script/raw

sed -i -e 's/^.*today_phase\/small\///g' -e 's/^.*today_phase\///g' -e 's/\.jpg.*$//g' $HOME/Moongiant_conky_script/raw

#September 30-October 1 fix
for (( i=11; i<=35; i+=8 ))
	do
		if [[ $(sed -n ${i}p $HOME/Moongiant_conky_script/raw) == "September 30" ]]; then
			line=$((i+7))
			sed -i "${line}s/^.*$/Waning Crescent/" $HOME/Moongiant_conky_script/raw
		fi
		if [[ $(sed -n ${i}p $HOME/Moongiant_conky_script/raw) == "October 1" ]]; then
			line=$((i+7))
			sed -i "${line}s/^.*$/New Moon/" $HOME/Moongiant_conky_script/raw
		fi
	done
today_phase=$(sed -n 8p $HOME/Moongiant_conky_script/raw| awk -F "," '{print $2}'| sed 's/ //')
if [[ $today_phase == "September 30" ]]; then
			sed -i '7s/^.*$/Waning Crescent/' $HOME/Moongiant_conky_script/raw
			sed -i '10s/^.*$/Phase: Waning Crescent/' $HOME/Moongiant_conky_script/raw
fi
if [[ $today_phase == "October 1" ]]; then
			sed -i '7s/^.*$/New Moon/' $HOME/Moongiant_conky_script/raw
			sed -i '10s/^.*$/Phase: New Moon/' $HOME/Moongiant_conky_script/raw
fi

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


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

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

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

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

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



########### Moon phase to font characters

	#function: test_moon_phase_font
	test_moon_phase_font () {
	    case $1 in
	         NewMoon)
	           echo N Νέα Σελήνη
	         ;;
	         FirstQuarter)
	           echo S Πρώτο Τέταρτο
	         ;;
	         FullMoon)
	           echo n Πανσέληνος
	         ;;
	         LastQuarter)
	           echo H Τελευταίο Τέταρτο
	         ;;
	         WaningGibbous)
	           echo F Αύξουσα Κύρτωση
	         ;;
	         WaningCrescent)
	           echo J Φθίνουσα Ημισέληνος
	         ;;
	         WaxingCrescent)
	           echo Q Αύξουσα Ημισέληνος
	         ;;
	         WaxingGibbous)
	           echo U Αύξουσα Αµφίκυρτος
	         ;;
	          *)
		   echo \@ n/a
		 ;;
	    esac
	}



#convert Image Number Moon  to  Moon font letter  and translate moon phase en - ru
#
		echo $(test_moon_phase_font $phase) >> $HOME/Moongiant_conky_script/raw




#Resume weather conky
pkill -CONT -xf "$weather_conky_launch_command"

changed the block  Restore older order

Offline

#3935 2021-01-18 23:22:44

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

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

Sorry, I totally missed your post.
It's still missing a line on my system, illumination of 1 day after...


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

#3936 2021-01-19 21:44:48

il.harun
Member
Registered: 2020-06-04
Posts: 54

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

moongiant changed site:
raw:
moon_day_WaxC_20
moon_day_WaxC_25
moon_day_WaxC_35
moon_day_first
moon_day_WaxG_55

New_moon_today_raw 33.8Kb      does not contain  var jArray=
New_italian_lang_moon_today_raw 42.4Kb  contains  var jArray=
Old_moon_today_raw 61.1Kb        contains  var jArray=
https://drive.google.com/drive/folders/ … sp=sharing

Last edited by il.harun (2021-01-19 23:21:27)

Offline

#3937 2021-01-20 01:05:33

seatommyboy
Member
Registered: 2016-09-12
Posts: 63

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

Accuweather daily_forecast isn't working again. I have no data in daily_forecast file.

Offline

#3938 2021-01-20 07:59:23

loutch
Member
Registered: 2015-12-12
Posts: 848

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

Hello

me too

@+


Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Offline

#3939 2021-01-20 13:05:36

ector1935
Member
Registered: 2017-05-03
Posts: 240

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

Hi,moongiant and accuweather not working.
Cheers

Offline

#3940 2021-01-20 13:49:06

loutch
Member
Registered: 2015-12-12
Posts: 848

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

Hy

Wunderground work great


big_smile  big_smile  big_smile  big_smile  big_smile

@+


Linuxmint 22.1 Xia xfce & mageia 9 XFCE on ssd hp pavilion g7
Xubuntu 18.04 lts & 24.04 lts on ASUS Rog STRIX

Offline

Board footer

Powered by FluxBB