You are not logged in.

#301 2015-12-04 10:06:43

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)

@Sector11

Yes.
That's what I like doing.  wink

Offline

#302 2015-12-04 11:02:30

emo
Member
From: Sofia, Bulgaria
Registered: 2015-11-30
Posts: 23

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

Hi, everyone! I installed lm sensors, detected the sensors and run conky -c ~/1a_accuweather_conkyweather_font/.conkyrc_1a_int:

emo@emo-Ubuntu:~$ conky -c ~/1a_accuweather_conkyweather_font/.conkyrc_1a_int
conky: Syntax error (/home/emo/1a_accuweather_conkyweather_font/.conkyrc_1a_int:2: '=' expected near 'yes') while reading config file. 
conky: Assuming it's in old syntax and attempting conversion.
conky: desktop window (18001e5) is subwindow of root window (4a1)
conky: window type - override
conky: drawing to created window (0x4400001)
conky: drawing to double buffer
sed: can't read /home/emo/1a_accuweather_conkyweather_font/last_days: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/tod_ton: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/tod_ton: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/curr_cond: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/tod_ton: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/tod_ton: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/tod_ton: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/last_days: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/tod_ton: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/last_days: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/last_days: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/tod_ton: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/tod_ton: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/tod_ton: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/curr_cond: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/tod_ton: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/tod_ton: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/curr_cond: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/tod_ton: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/tod_ton: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/last_days: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/last_days: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/last_days: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/tod_ton: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/tod_ton: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/last_days: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/tod_ton: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/tod_ton: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/last_days: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/tod_ton: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/tod_ton: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/tod_ton: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/last_days: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/last_days: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/last_days: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/last_days: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/last_days: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/tod_ton: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/tod_ton: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/tod_ton: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/tod_ton: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/last_days: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/last_days: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/last_days: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/last_days: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/last_days: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/tod_ton: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/last_days: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/last_days: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/last_days: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/last_days: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/last_days: No such file or directory
sed: can't read /home/emo/1a_accuweather_conkyweather_font/last_days: No such file or directory

[1]+  Stopped                 conky -c ~/1a_accuweather_conkyweather_font/.conkyrc_1a_int
emo@emo-Ubuntu:~$ wget: no process found
--2015-12-04 12:56:08--  http://www.accuweather.com/bg/bg/sofia/51097/daily-current-weather/51097
Resolving www.accuweather.com (www.accuweather.com)... 212.95.165.10, 212.95.165.11
Connecting to www.accuweather.com (www.accuweather.com)|212.95.165.10|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: /bg/bg/sofia/51097/current-weather/51097 [following]
--2015-12-04 12:56:09--  http://www.accuweather.com/bg/bg/sofia/51097/current-weather/51097
Connecting to www.accuweather.com (www.accuweather.com)|212.95.165.10|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘/home/emo/1a_accuweather_conkyweather_font/curr_cond_raw’

/home/emo/1a_accuwe     [ <=>                  ]  84,97K  --.-KB/s   in 0,008s 

2015-12-04 12:56:09 (10,5 MB/s) - ‘/home/emo/1a_accuweather_conkyweather_font/curr_cond_raw’ saved [87009]

--2015-12-04 12:56:09--  http://www.accuweather.com/bg/bg/sofia/51097/daily-daily-weather-forecast/51097
Resolving www.accuweather.com (www.accuweather.com)... 212.95.165.11, 212.95.165.10
Connecting to www.accuweather.com (www.accuweather.com)|212.95.165.11|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2015-12-04 12:56:09 ERROR 404: Not Found.

--2015-12-04 12:56:09--  http://www.accuweather.com/bg/bg/sofia/51097/daily-daily-weather-forecast/51097?day=6
Resolving www.accuweather.com (www.accuweather.com)... 212.95.165.10, 212.95.165.11
Connecting to www.accuweather.com (www.accuweather.com)|212.95.165.10|:80... connected.
HTTP request sent, awaiting response... 404 Not Found
2015-12-04 12:56:09 ERROR 404: Not Found.

Any suggestions?

Offline

#303 2015-12-04 12:03:40

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 script won't work in Bulgarian. Change it to English, ie. use this

http://www.accuweather.com/en/bg/sofia/51097/daily-weather-forecast/51097

in the script.

@unklar
I'll see what I can do.


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

#304 2015-12-04 14:57:36

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

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

unklar wrote:

@Sector11

Yes.
That's what I like doing.  wink

I checked out the interested German users.  Wunderbar! Sie wie verrückt zu conky, wie ich bin.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#305 2015-12-04 23:43: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)

Sorry unklar, but I don't think I could find the time to do a translation of the script.
Besides, someone would also ask me to do a French one, a Polish one, a Romanian one, an Italian one, etc. and I just couldn't refuse.


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

#306 2015-12-05 00:47:34

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

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

I had visions of days past when you had the multi-language scripts.  They kept you busy. I was wondering what you might be getting into - again.


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#307 2015-12-05 07:30:04

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 started trying to adjust the existing script to a German translation, only to discover what I already knew: I almost had to create a whole new script.

Entschuldigung unklar, aber das ist jetzt uber mir...

@emo
Get your lazy Balkan ass here, we have work to do

Last edited by TeoBigusGeekus (2015-12-05 07:30:47)


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

#308 2015-12-05 09:17:33

emo
Member
From: Sofia, Bulgaria
Registered: 2015-11-30
Posts: 23

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

@Teo, you get your workaholic ass here, you're much closer than me. big_smile

Last edited by emo (2015-12-05 09:18:31)

Offline

#309 2015-12-05 09:49:27

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

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

Did you try with the address I gave you?


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

#310 2015-12-05 10:41:19

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

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

HAHAHAHAHAHA Teo-emo


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#311 2015-12-05 12:15:43

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

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

@emo

Looks like you are mixing versions again:

conky: Assuming it's in old syntax and attempting conversion.

Are you running conky v1.10 and using a conky 1.9 formatted file?


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#312 2015-12-05 13:08:41

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)

[OT with Translator
My daughter is not there ...

Sorry for the delay. My grandson was 6 year old. He plays chess ... and I lose ...  :8
He was born in Glasgow. 3 years ago died his Father to cancer.
Next year he comes here in an international school. The children learn LINUX at school!
In Germany, Christmas markets are open and he want to go there ...

OT]

@Teo
there is no problem. I can imagine it. Thank you for the exam.
I know about.  smile

@Sector11
the surprise did you manage! I thank them very to visit the German Mageia forum for the honor.


I am glad to have met you both!

Last edited by unklar (2015-12-07 09:02:34)

Offline

#313 2015-12-05 14:38:58

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

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

@unklar

You are a conky nut just like me.  smile  You are always welcome here.

Check this out » Conky archive - links to complete working setups


Debian 12 Beardog, SoxDog and still a Conky 1.9er

Offline

#314 2015-12-06 08:04:53

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

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

@unklar
Try with this script

#!/bin/bash

#function: test_image
test_image () {
    case $1 in
         1)
           echo a
         ;;
         2|3)
           echo b 
         ;;
         4|5)
           echo c
         ;;
         6)
           echo d
         ;;
         7)
           echo e
         ;;
         8)
           echo f
         ;;
         11)
           echo 0
         ;;
         12)
           echo h
         ;;
         13|14)
           echo g
         ;;
         15)
           echo m
         ;;
         16|17)
           echo k
         ;;
         18)
           echo i
         ;;
         19)
           echo q
         ;;
         20|21|23)
           echo o
         ;;
         22)
           echo r
         ;;
         24|31)
           echo E
         ;;
         25)
           echo v
         ;;
         26)
           echo x
         ;;
         29)
           echo y
         ;;
         30)
           echo 5
         ;;
         32)
           echo 6
         ;;
         33)
           echo A
         ;;
         34|35)
           echo B
         ;;
         36|37)
           echo C
         ;;
         38)
           echo D
         ;;
         39|40)
           echo G
         ;;
         41|42)
           echo K
         ;;
         43|44)
           echo O
         ;;
         *)
		   echo -
		 ;;   
        esac
} 


kill -STOP $(pidof conky)
killall wget

#put your Accuweather address here
address="http://www.accuweather.com/de/de/berlin/10178/weather-forecast/178087"
#address="http://www.accuweather.com/en/us/los-angeles-ca/90012/weather-forecast/347625"

loc_id=$(echo $address|sed 's/\/weather-forecast.*$//'|sed 's/^.*\///')
last_number=$(echo $address|sed 's/^.*\///')

curr_addr="$(echo $address|sed 's/weather-forecast.*$//')"current-weather/"$last_number"
wget -O $HOME/1a_accuweather_conkyweather_font_Deutsch/curr_cond_raw "$curr_addr"

addr1="$(echo $address|sed 's/weather-forecast.*$//')"daily-weather-forecast/"$last_number"
wget -O $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton_raw "$addr1"

addr2="$addr1"?day=6
wget -O $HOME/1a_accuweather_conkyweather_font_Deutsch/last_days_raw "$addr2"

#current conditions
if [[ -s $HOME/1a_accuweather_conkyweather_font_Deutsch/curr_cond_raw ]]; then

    sed -i '/detail-now/,/#details/!d' $HOME/1a_accuweather_conkyweather_font_Deutsch/curr_cond_raw
    egrep -i '"cond"|icon i-|detail-tab-panel' $HOME/1a_accuweather_conkyweather_font_Deutsch/curr_cond_raw > $HOME/1a_accuweather_conkyweather_font_Deutsch/curr_cond
    sed -i -e 's/&#246\;/ö/g' -e 's/&#228\;/ä/g' -e 's/&#252\;/ü/g' -e 's/&#196\;/Ä/g' -e 's/&#214\;/Ö/g' -e 's/&#220\;/Ü/g' -e 's/&#223\;/ß/g' $HOME/1a_accuweather_conkyweather_font_Deutsch/curr_cond
    sed -i -e 's/^.*detail-tab-panel //g' -e 's/^.*icon i-//g' -e 's/"><\/div>.*$//g' $HOME/1a_accuweather_conkyweather_font_Deutsch/curr_cond
    sed -i -e 's/^.*"cond">//g' -e 's/&deg/\n/g' -e 's/<\/span>.*"temp">/\n/g' -e 's/<.*>//g' $HOME/1a_accuweather_conkyweather_font_Deutsch/curr_cond
    sed -i -e 's/">//g' -e 's/-->//g' -e 's/\r$//g' -e 's/ i-alarm.*$//g' -e 's/-[a-z].*$//g' $HOME/1a_accuweather_conkyweather_font_Deutsch/curr_cond
    
    image=$(sed -n 2p $HOME/1a_accuweather_conkyweather_font_Deutsch/curr_cond)
    sed -i 2s/$image/$(test_image $image)/ $HOME/1a_accuweather_conkyweather_font_Deutsch/curr_cond

fi

#First 5 days
if [[ -s $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton_raw ]]; then

    sed -i '/feed-tabs/,/\.feed-tabs/!d' $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton_raw
    egrep -i 'Abend|Heute|Heute Abend|Nacht|icon i-|cond|temp|>Mo<|>Di<|>Mi<|>Do<|>Fr<|>Sa<|>So<' $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton_raw > $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton
    sed -i -e 's/&#246\;/ö/g' -e 's/&#228\;/ä/g' -e 's/&#252\;/ü/g' -e 's/&#196\;/Ä/g' -e 's/&#214\;/Ö/g' -e 's/&#220\;/Ü/g' -e 's/&#223\;/ß/g' $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton
    sed -i -e 's/^.*#">//g' -e 's/^.*icon i-//g' -e 's/^.*cond">//g' -e 's/^.*temp">//g' $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton
    sed -i -e 's/TT<\/span> /\n/g' -e 's/<\/a>.*$//g' -e 's/ "><.*$//g' -e 's/&#.*$//g' -e 's/teo//g' $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton
    sed -i -e 's/<span>.*$//g' -e 's/<\/span>//g' -e 's/\r$//g' -e 's/ i-alarm.*$//g' $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton
	sed -i -e 's/Early AM/EARLY AM/' -e 's/Heute/HEUTE/' -e 's/Tonight/TONIGHT/' -e 's/Overnight/OVERNIGHT/' -e 's/Mo$/MONTAG/' -e 's/Di$/DIENSTAG/' -e 's/Mi$/MITTWOCH/' -e 's/Do$/DONNERSTAG/' -e 's/Fr$/FREITAG/' -e 's/Sa$/SAMSTAG/' -e 's/So$/SONNTAG/' -e 's/-[a-z]$//g' $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton
    time=$(sed -n 1p $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton)
    image=$(sed -n 2p $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton)
	if [[ $time == HEUTE ]]; then
	    sed -i 2s/$image/$(test_image $image)/ $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton
	elif [[ $time == ABEND || $time == NACHT || $time == "EARLY AM" ]]; then
	    sed -i 2s/$image/$(test_image $image)/ $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton
        sed -i 3a- $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton
	fi
    for (( i=7; i<=22; i+=5 ))
	  do
          image=$(sed -n "${i}"p $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton)
	      sed -i ${i}s/$image/$(test_image $image)/ $HOME/1a_accuweather_conkyweather_font_Deutsch/tod_ton
	  done

fi

#Next 5 days
if [[ -s $HOME/1a_accuweather_conkyweather_font_Deutsch/last_days_raw ]]; then

    sed -i '/feed-tabs/,/\.feed-tabs/!d' $HOME/1a_accuweather_conkyweather_font_Deutsch/last_days_raw
    egrep -i 'icon i-|cond|temp|>Mo<|>Di<|>Mi<|>Do<|>Fr<|>Sa<|>So<' $HOME/1a_accuweather_conkyweather_font_Deutsch/last_days_raw > $HOME/1a_accuweather_conkyweather_font_Deutsch/last_days
    sed -i -e 's/&#246\;/ö/g' -e 's/&#228\;/ä/g' -e 's/&#252\;/ü/g' -e 's/&#196\;/Ä/g' -e 's/&#214\;/Ö/g' -e 's/&#220\;/Ü/g' -e 's/&#223\;/ß/g' $HOME/1a_accuweather_conkyweather_font_Deutsch/last_days
    sed -i -e 's/^.*#">//g' -e 's/^.*icon i-//g' -e 's/^.*cond">//g' -e 's/^.*temp">//g' $HOME/1a_accuweather_conkyweather_font_Deutsch/last_days
    sed -i -e 's/TT<\/span> /\n/g' -e 's/<\/a>.*$//g' -e 's/ "><.*$//g' -e 's/&#.*$//g' -e 's/teo//g' $HOME/1a_accuweather_conkyweather_font_Deutsch/last_days
    sed -i -e 's/<span>.*$//g' -e 's/<\/span>//g' -e 's/\r$//g' -e 's/ i-alarm.*$//g' $HOME/1a_accuweather_conkyweather_font_Deutsch/last_days
	sed -i -e 's/Mo$/MONTAG/' -e 's/Di$/DIENSTAG/' -e 's/Mi$/MITTWOCH/' -e 's/Do$/DONNERSTAG/' -e 's/Fr$/FREITAG/' -e 's/Sa$/SAMSTAG/' -e 's/So$/SONNTAG/' -e 's/-[a-z]$//g' $HOME/1a_accuweather_conkyweather_font_Deutsch/last_days
    for (( i=2; i<=22; i+=5 ))
	  do
          image=$(sed -n "${i}"p $HOME/1a_accuweather_conkyweather_font_Deutsch/last_days)
	      sed -i ${i}s/$image/$(test_image $image)/ $HOME/1a_accuweather_conkyweather_font_Deutsch/last_days
	  done

fi

kill -CONT $(pidof conky)

saved in a folder called 1a_accuweather_conkyweather_font_Deutsch in your home folder.


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

#315 2015-12-06 08:06:37

fvirgola80
Member
From: Italy / Rome
Registered: 2015-10-08
Posts: 262

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

=== Conky v1.90 ===

1b1 int images and 4 moon scripts

Hello guys , here is the latest work conky 1b1_int_y_moon.conky made by Luke ( fvirgola80 ) and Yoda ( Sector11 ) . I have added the lunar phases

conkyforum.jpg

# pkill -xf "conky -c $HOME/1b1_accuweather_images/1b1_int_y_moon.conky" &
# Works perfect: # Works perfect: Sat 5 Dec 2015 18:34:31

###  Begin Window Settings  ##################################################
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager
own_window_colour 000000
own_window_class Conky
own_window_title Luke AccuW & Moon
### ARGB can be used for real transparency - requires composite manager
### Plays hell on conky with images.
#  own_window_argb_visual yes # Options: yes or no
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
#  own_window_argb_value 100

minimum_size 320 00	# w|h
maximum_width 320 #75

gap_x 10 	# l|r
gap_y 10	# u|d

alignment tl
####################################################  End Window Settings  ###
###  Font Settings  ##########################################################
use_xft yes
xftfont monofur:bold:size=9
#xftfont fantasque sans mono:bold:size=10
xftalpha 1.0
override_utf8_locale yes
######################################################  End Font Settings  ###
###  Color Settings  #########################################################
draw_shades yes
default_shade_color 000000
draw_outline no
default_outline_color 000000

default_color DCDCDC #Gainsboro
color0 A9A9A9 #DarkGray
color1 778899 #LightSlateGray
color2 F5F5DC #Beige
color3 87CEFA #LightSkyBlue
color4 48D1CC #MediumTurquoise
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 B0E0E6 #PowderBlue
color8 FFD700 #Gold
color9 FFA07A #LightSalmon
#####################################################  End Color Settings  ###
###  Borders Section  ########################################################
# border margins
border_inner_margin 5
border_outer_margin 0
#####################################################  End Borders Secton  ###
###  Miscellaneous Section  ##################################################
background yes
use_spacer none
no_buffers yes
imlib_cache_size 0
double_buffer yes
##############################################  End Miscellaneous Section  ###

#${image $HOME/images/red+x.png
#TEXT
#${texeci 1200 bash $HOME/4_Moon/n_moon}\
#${texeci 1200 bash $HOME/1b1_accuweather_images/1b1}\

update_interval 1
TEXT
${texeci 100 bash $HOME/4_Moon/n_moon}\
${texeci 1200 bash $HOME/1b1_accuweather_images/1b1}\
${color5}${time %a %e %b}${image $HOME/images/LightSlateGrey_1.png -p 82,1 -s 2x170}${color}\
${image $HOME/images/bk_20.png -p -5,-5 -s 335x355}\
  ${goto 90}${color5}Northern Hemisphere Moon ${membar 0}${color}
${color9}${execi 90 sed -n '29p' $HOME/1b1_accuweather_images/curr_cond}°${color}\
  ${goto 160}Phase ${execpi 600 sed -n '7p' $HOME/4_Moon/raw}
${image $HOME/1b1_accuweather_images/cc.png -p 2,23 -s 70x42}\
${image $HOME/4_Moon/0.png -p 100,20 -s 50x50}\
  ${goto 160}Moon is ${execpi 600 sed -n '1p' $HOME/4_Moon/raw} visible
 ${goto 160}Moon Age ${execpi 600 sed -n '5p' $HOME/4_Moon/raw} days
    ${color8}± ${execi 90 sed -n '30p' $HOME/1b1_accuweather_images/curr_cond}°${color}\
  ${goto 160}Moon Angle ${execpi 600 sed -n '6p' $HOME/4_Moon/raw}°
${execi 90 sed -n '33p' $HOME/1b1_accuweather_images/curr_cond}\
  ${goto 90}Moonrise ${execi 90 sed -n '41p' $HOME/1b1_accuweather_images/curr_cond}\
  ${goto 216}Moonset ${execi 90 sed -n '42p' $HOME/1b1_accuweather_images/curr_cond}
UVI ${execi 90 sed -n '34p' $HOME/1b1_accuweather_images/curr_cond}\
  ${goto 85}${color5}${membar 0}${color}
HUM ${execi 90 sed -n '32p' $HOME/1b1_accuweather_images/curr_cond}\
  ${goto 90}${color5}TODAY${goto 220}TONIGHT${color}
DP  ${execi 90 sed -n '35p' $HOME/1b1_accuweather_images/curr_cond}°\
${image $HOME/1b1_accuweather_images/tod.png -p 120,120 -s 50x30}\
${image $HOME/1b1_accuweather_images/ton.png -p 250,120 -s 50x30}\
  ${goto 85}${color5}${membar 0,110}${goto 220}${membar 0}${color}
Wnd ${execi 90 sed -n '31p' $HOME/1b1_accuweather_images/curr_cond}\
  ${goto 90}${execi 90 sed -n '26p' $HOME/1b1_accuweather_images/first_days}°\
  ${goto 220}${execi 90 sed -n '31p' $HOME/1b1_accuweather_images/first_days}°
@ ${execi 90 sed -n '38p' $HOME/1b1_accuweather_images/curr_cond}\
  ${goto 90}±${execi 90 sed -n '27p' $HOME/1b1_accuweather_images/first_days}°\
  ${goto 220}±${execi 90 sed -n '32p' $HOME/1b1_accuweather_images/first_days}°
Vis ${execi 90 sed -n '37p' $HOME/1b1_accuweather_images/curr_cond}\
  ${goto 90}CoP     ${execi 90 sed -n '28p' $HOME/1b1_accuweather_images/first_days}\
  ${goto 220}CoP    ${execi 90 sed -n '33p' $HOME/1b1_accuweather_images/first_days}
Cld ${execi 90 sed -n '36p' $HOME/1b1_accuweather_images/curr_cond}\
  ${goto 90}Sunrise ${execi 90 sed -n '39p' $HOME/1b1_accuweather_images/curr_cond}\
  ${goto 220}Sunset ${execi 90 sed -n '40p' $HOME/1b1_accuweather_images/curr_cond}
${color5}Nine Day Forecast ${membar 0,99} Moon ~ 2 Days${color}
${image $HOME/images/LightSlateGrey_1.png -p 210,180 -s 2x155}${color}\
${color5}${execi 3600 echo `date --date="1 day" | awk '{print $1" "$3" "$2}'`}\
##MOON DATE FIRST LINE##
${goto 215}${execi 3600 echo `date --date="+1 day" | awk '{print $1" "$3" "$2}'`}\
  ${goto 75}${execi 3600 echo `date --date="2 day" | awk '{print $1" "$3" "$2}'`}\
  ${goto 145}${execi 3600 echo `date --date="3 day" | awk '{print $1" "$3" "$2}'`}${color}
${color9}${execi 90 sed -n '8p' $HOME/1b1_accuweather_images/first_days}°${color}\
  ${goto 214}${execpi 600 sed -n '7p' $HOME/4_Moon/raw}\
  ${goto 75}${color9}${execi 90 sed -n '13p' $HOME/1b1_accuweather_images/first_days}°\
  ${goto 145}${execi 90 sed -n '18p' $HOME/1b1_accuweather_images/first_days}°${color}
${image $HOME/1b1_accuweather_images/6.png -p 20,200 -s 50x30}\
${image $HOME/1b1_accuweather_images/11.png -p 90,200 -s 50x30}\
${image $HOME/1b1_accuweather_images/16.png -p 163,200 -s 50x30}\
${image $HOME/4_Moon/1.png -p 215,213 -s 30x30}\
${color7}${execi 90 sed -n '9p' $HOME/1b1_accuweather_images/first_days}°${color}\
  ${goto 253}${color7}Vis: ${color}${execpi 600 sed -n '29p' $HOME/4_Moon/raw}${color}\
  ${goto 75}${color7}${execi 90 sed -n '14p' $HOME/1b1_accuweather_images/first_days}°${color}\
  ${goto 145}${color7}${execi 90 sed -n '19p' $HOME/1b1_accuweather_images/first_days}°${color}
${color5}${membar 0,205}${color}\
  ${goto 253}${color7}Age ${color}${execpi 600 sed -n '33p' $HOME/4_Moon/raw | cut -c-5}
${color5}${execi 3600 echo `date --date="4 day" | awk '{print $1" "$3" "$2}'`}${color}\
${goto 215}${color7}Angle ${color}${execpi 600 sed -n '34p' $HOME/4_Moon/raw | cut -c-4}°${color}\
  ${goto 75}${color5}${execi 3600 echo `date --date="5 day" | awk '{print $1" "$3" "$2}'`}${color}\
  ${goto 145}${color5}${execi 3600 echo `date --date="6 day" | awk '{print $1" "$3" "$2}'`}${color}
${color9}${execi 90 sed -n '23p' $HOME/1b1_accuweather_images/first_days}°${color}\
##MOON DATE SECOND LINE##
${goto 215}${color5}${execi 3600 echo `date --date="+2 day" | awk '{print $1" "$3" "$2}'`}${color}\
  ${goto 75}${color9}${execi 90 sed -n '4p' $HOME/1b1_accuweather_images/last_days}°\
  ${goto 145}${execi 90 sed -n '9p' $HOME/1b1_accuweather_images/last_days}°${color}\
${image $HOME/1b1_accuweather_images/21.png -p 20,252 -s 50x30}\
${image $HOME/1b1_accuweather_images/last_2.png -p 90,252 -s 50x30}\
${image $HOME/1b1_accuweather_images/last_7.png -p 163,252 -s 50x30}\
${image $HOME/4_Moon/2.png -p 215,277 -s 30x30}
${color7}${execi 90 sed -n '24p' $HOME/1b1_accuweather_images/first_days}°${color}\
${goto 214}${execpi 600 sed -n '43p' $HOME/4_Moon/raw}${color}${color}\
  ${goto 75}${execi 90 sed -n '5p' $HOME/1b1_accuweather_images/last_days}°\
  ${goto 145}${execi 90 sed -n '10p' $HOME/1b1_accuweather_images/last_days}°${color}
${color5}${membar 0,205}${color}\
  ${goto 253}${color7}Vis:${color}${execpi 600 sed -n '37p' $HOME/4_Moon/raw}
${color5}${execi 3600 echo `date --date="7 day" | awk '{print $1" "$3" "$2}'`}${color}\
  ${goto 253}${color7}Age ${color}${execpi 600 sed -n '41p' $HOME/4_Moon/raw | cut -c-5}\
  ${goto 75}${color5}${execi 3600 echo `date --date="8 day" | awk '{print $1" "$3" "$2}'`}\
  ${goto 145}${execi 3600 echo `date --date="9 day" | awk '{print $1" "$3" "$2}'`}${color}
${color9}${execi 90 sed -n '14p' $HOME/1b1_accuweather_images/last_days}°\
  ${goto 215}${color7}Angle ${color}${execpi 600 sed -n '42p' $HOME/4_Moon/raw | cut -c-4}°${color}\
  ${goto 75}${color9}${execi 90 sed -n '19p' $HOME/1b1_accuweather_images/last_days}°${color}\
  ${goto 145}${color9}${execi 90 sed -n '24p' $HOME/1b1_accuweather_images/last_days}°${color}
${image $HOME/1b1_accuweather_images/last_12.png -p 20,305 -s 50x30}\
${image $HOME/1b1_accuweather_images/last_17.png -p 90,305 -s 50x30}\
${image $HOME/1b1_accuweather_images/last_22.png -p 163,305 -s 50x30}\
${color7}${execi 90 sed -n '15p' $HOME/1b1_accuweather_images/last_days}°${color}\
  ${goto 75}${execi 90 sed -n '20p' $HOME/1b1_accuweather_images/last_days}°\
  ${goto 145}${execi 90 sed -n '25p' $HOME/1b1_accuweather_images/last_days}°${color}\
${goto 215}${color7}Distance ${color}${execpi 600 sed -n '40p' $HOME/4_Moon/raw | cut -c-3} K/km
${color5}${membar 0}${color}

  
  

@Obi-Wan (TEO) Hello TEO , you can publish this work on the forum .... thank you very much .

the result on my desk

deskfv80.jpg

Last edited by fvirgola80 (2015-12-06 08:35:59)


Nothing happens by chance

Offline

#316 2015-12-06 08:21: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)

Published!

The force is strong with you my son...


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

#317 2015-12-06 08:37:37

fvirgola80
Member
From: Italy / Rome
Registered: 2015-10-08
Posts: 262

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

Thanks TEO ....
P.S. but a conky with radar images that do you think? hia something ?
]:D  ]:D


Nothing happens by chance

Offline

#318 2015-12-06 10:45:19

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

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

fvirgola80 wrote:

Thanks TEO ....
P.S. but a conky with radar images that do you think? hia something ?
]:D  ]:D

What radar images?


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

#319 2015-12-06 14:25:29

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)

Sector11 wrote:

@unklar

You are a conky nut just like me.  smile  You are always welcome here.

Check this out » Conky archive - links to complete working setups

WOW!
Thank you for the link.These "works of art" I have "to do full" in the coming years.  big_smile  big_smile

Offline

#320 2015-12-06 14:30:59

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)

@Teo,
You're a gold-boy!  O:)
Excellent, the users will be delighted. Thanks a lot for this.  {)

NoBTLAsN

Offline

Board footer

Powered by FluxBB