You are not logged in.

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

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

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

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

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,470

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

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

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,470

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

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

unklar
Member
From: #! BL
Registered: 2015-10-31
Posts: 1,443

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

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

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

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

.

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


Linuxmint 19.1 Tessa cinnamon & mageia 7 mate on ssd hp pavilion g7
Xubuntu 18.04 lts & 20.04 lts on ASUS Rog STRIX

Offline

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

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

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

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

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,470

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

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

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

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

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

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,470

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

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

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

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

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

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

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

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

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,470

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

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

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

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

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

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

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

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

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

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

Hello

me too

@+


Linuxmint 19.1 Tessa cinnamon & mageia 7 mate on ssd hp pavilion g7
Xubuntu 18.04 lts & 20.04 lts on ASUS Rog STRIX

Offline

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

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

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

Hi,moongiant and accuweather not working.
Cheers

Offline

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

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

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

Hy

Wunderground work great


big_smile  big_smile  big_smile  big_smile  big_smile

@+


Linuxmint 19.1 Tessa cinnamon & mageia 7 mate on ssd hp pavilion g7
Xubuntu 18.04 lts & 20.04 lts on ASUS Rog STRIX

Offline

#3943 2021-01-20 15:36:31

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,470

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

I'll get to them as soon as I can, thanks for the heads up.


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

#3944 2021-01-20 19:38:55

saltasatelites
Member
Registered: 2016-09-10
Posts: 13

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

I suspect that the accuweather boys have been playing with the code...again..

Last edited by saltasatelites (2021-01-20 19:39:14)

Offline

#3945 2021-01-21 23:27:30

TeoBigusGeekus
BL DieHard
From: /Greece/Kastoria
Registered: 2015-10-04
Posts: 1,470

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

ANNOUNCEMENT
Accuweather script: Tiny change to the daily forecast part. Thanks all for the feedback.


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

#3946 2021-01-22 08:58:18

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

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

hello

Théo as well great job

@+


Linuxmint 19.1 Tessa cinnamon & mageia 7 mate on ssd hp pavilion g7
Xubuntu 18.04 lts & 20.04 lts on ASUS Rog STRIX

Offline

#3947 2021-01-22 11:56:46

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

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

TeoBigusGeekus wrote:

ANNOUNCEMENT
Accuweather script: Tiny change to the daily forecast part. Thanks all for the feedback.

Thank you!

Offline

#3948 2021-01-22 13:42:15

unklar
Member
From: #! BL
Registered: 2015-10-31
Posts: 1,443

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

seatommyboy wrote:
TeoBigusGeekus wrote:

ANNOUNCEMENT
Accuweather script: Tiny change to the daily forecast part. Thanks all for the feedback.

Thank you!

+1

Offline

#3949 2021-01-23 10:48:01

morfik
Member
From: Europe/Poland
Registered: 2016-09-08
Posts: 152
Website

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

TeoBigusGeekus wrote:

ANNOUNCEMENT
Accuweather script: Tiny change to the daily forecast part. Thanks all for the feedback.

It looks like it's working again for me too. smile

Offline

#3950 2021-01-23 22:44:25

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

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

Hi accuweather working.
Thank Teo
My moongiant not working, it just happens to me?!
Thank
Edit
Solved

Last edited by ector1935 (2021-01-23 22:50:26)

Offline

Board footer

Powered by FluxBB