SEARCH

Enter your search query in the box above ^, or use the forum search tool.

You are not logged in.

#801 2013-03-26 17:35:34

severounch
New Member
From: Salazie, Reunion Island
Registered: 2013-03-24
Posts: 4

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

Hi everybody,

@Teo:

Of course, here you go:

# — Conky settings — #

update_interval 1
total_run_times 0
net_avg_samples 2

override_utf8_locale yes

double_buffer yes
no_buffers yes

text_buffer_size 4096
imlib_cache_size 0

temperature_unit celsius

# — Window specifications — #

own_window yes
own_window_type normal
own_window_transparent yes
own_window_argb_visual yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

border_inner_margin 0
border_outer_margin 0

minimum_size 350
maximum_width 350

alignment tl

gap_x 20
gap_y 180

# — Graphics settings — #
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders no

# — Text settings — #
use_xft yes
xftfont Droid sans:size=8 
xftalpha 1.0

uppercase no
use_spacer right

color1 AAAAAA
color2 666666
color3 0099FF


TEXT

${execi 300 bash $HOME/.Conky/accuweather/accuw_script}

${voffset -13}${font Droid sans:size=14}${color1}${goto 20}MAVP
${voffset -5}${goto 25}${font Droid sans:size=8}${color1}H:${goto 45}${color2}${execpi 300 sed -n '3p' $HOME/.Conky/Davis_weatherlink/cond_actuelles}%${voffset 12}${color1}${goto 25}P:${goto 45}${color2}${execpi 300 sed -n '4p' $HOME/.Conky/Davis_weatherlink/cond_actuelles}${voffset 12}${goto 25}${color1}V:${goto 45}${color2}${execpi 300 sed -n '31p' $HOME/.Conky/accuweather/curr_cond} - ${execpi 300 sed -n '32p' $HOME/.Conky/accuweather/curr_cond}${voffset 12}${goto 25}${color1}PA:${goto 45}${color2}${execpi 300 sed -n '5p' $HOME/.Conky/Davis_weatherlink/cond_actuelles} ${font Arrows:size=12}${execpi 300 sed -n '6p' $HOME/.Conky/Davis_weatherlink/cond_actuelles}${voffset 10}${goto 25}${font Droid sans:size=8}${color1}Pr:${goto 45}${color2}${execpi 300 sed -n '1p' $HOME/.Conky/Davis_weatherlink/prevision_12h}${voffset -55}${goto 257}${font Droid sans:size=18}${color1}${execpi 300 sed -n '1p' $HOME/.Conky/Davis_weatherlink/cond_actuelles}°${voffset 24}${goto 283}${font Droid sans:size=8}${color2}${execpi 300 sed -n '39p' $HOME/.Conky/accuweather/curr_cond}${voffset 12}${goto 283}${color2}${execpi 300 sed -n '40p' $HOME/.Conky/accuweather/curr_cond}
${voffset 18}${font Droid sans:size=8}${color1}${goto 20}${execpi 300 sed -n '3p' $HOME/.Conky/accuweather/first_days}°${goto 85}${color1}${execpi 300 sed -n '8p' $HOME/.Conky/accuweather/first_days}°${goto 150}${color1}${execpi 300 sed -n '13p' $HOME/.Conky/accuweather/first_days}°${goto 215}${color1}${execpi 300 sed -n '18p' $HOME/.Conky/accuweather/first_days}°${goto 280}${color1}${execpi 300 sed -n '23p' $HOME/.Conky/accuweather/first_days}°
${voffset 5}${font Droid sans:size=8}${color2}${goto 20}${execpi 300 sed -n '4p' $HOME/.Conky/accuweather/first_days}°${color2}${goto 85}${execpi 300 sed -n '9p' $HOME/.Conky/accuweather/first_days}°${color2}${goto 150}${execpi 300 sed -n '14p' $HOME/.Conky/accuweather/first_days}°${color2}${goto 215}${execpi 300 sed -n '19p' $HOME/.Conky/accuweather/first_days}°${color2}${goto 280}${execpi 300 sed -n '24p' $HOME/.Conky/accuweather/first_days}°
${voffset 3}${font Droid sans:size=8}${color1}${goto 48}Auj${goto 113}${execpi 300 sed -n '5p' $HOME/.Conky/accuweather/first_days}${goto 178}${execpi 300 sed -n '10p' $HOME/.Conky/accuweather/first_days}${goto 243}${execpi 300 sed -n '15p' $HOME/.Conky/accuweather/first_days}${goto 308}${execpi 300 sed -n '20p' $HOME/.Conky/accuweather/first_days}
${image $HOME/.Conky/accuweather/cc.png -p 115,35 -s 130x78}${image $HOME/.Conky/accuweather/Grey_sunrise.png -p 259,88 -s 18x18}
${if_match "${execpi 300 sed -n '1p' $HOME/.Conky/accuweather/curr_cond}" == "Today"}${image $HOME/.Conky/accuweather/tod.png -p 30,125 -s 55x33}${else}${image $HOME/.Conky/accuweather/ton.png -p 30,125 -s 55x33}${endif}${image $HOME/.Conky/accuweather/6.png -p 95,125 -s 55x33}${image $HOME/.Conky/accuweather/11.png -p 160,125 -s 55x33}${image $HOME/.Conky/accuweather/16.png -p 225,125 -s 55x33}${image $HOME/.Conky/accuweather/21.png -p 290,125 -s 55x33}

Modified accuweather script:

#!/bin/bash

#function: test_image_day
test_image_day () {
    case $1 in
         su)
           echo 1su
         ;;
         msu)
           echo 2msu
         ;;
         psu)
           echo 3psu
         ;;
         ic)
           echo 4ic
         ;;
         h)
           echo 5h
         ;;
         mc)
           echo 6mc
         ;;
         c)
           echo 7c
         ;;
         d)
           echo 8d
         ;;
         f)
           echo 9f
         ;;
         s)
           echo 10s
         ;;
         mcs)
           echo 11mcs
         ;;
         psus)
           echo 12psus
         ;;
         t)
           echo 13t
         ;;
         mct)
           echo 14mct
         ;;
         psut)
           echo 15psut
         ;;
         r)
           echo 16r
         ;;
         fl)
           echo 17fl
         ;;
         mcfl)
           echo 18mcfl
         ;;
         psfl)
           echo 19psfl
         ;;
         sn)
           echo 20sn
         ;;
         mcsn)
           echo 21mcsn
         ;;
         i)
           echo 22i
         ;;
         sl)
           echo 23sl
         ;;
         fr)
           echo 24fr
         ;;
         rsn)
           echo 25rsn
         ;;
         w)
           echo 26w
         ;;
         ho)
           echo 27ho
         ;;
         co)
           echo 28co
         ;;
         cl)
           echo 29cl 
         ;;
         mcl)
           echo 31mcl
         ;;
         pc)
           echo 32pc 
         ;;
         pcs)
           echo 36pcs
         ;;
         pct)
           echo 38pct 
         ;;
        esac
} 

#function: test_image_night
test_image_night () {
    case $1 in
		 su)
           echo 1su
         ;;
         msu)
           echo 2msu
         ;;
         psu)
           echo 3psu
         ;;
         c)
           echo 7c
         ;;
         d)
           echo 8d
         ;;
         f)
           echo 9f
         ;;
         s)
           echo 10s
         ;;
         psus)
           echo 12psus
         ;;
         t)
           echo 13t
         ;;
         psut)
           echo 15psut
         ;;
         r)
           echo 16r
         ;;
         fl)
           echo 17fl
         ;;
         psfl)
           echo 19psfl
         ;;
         sn)
           echo 20sn
         ;;
         i)
           echo 22i
         ;;
         sl)
           echo 23sl
         ;;
         fr)
           echo 24fr
         ;;
         rsn)
           echo 25rsn
         ;;
         ho)
           echo 27ho
         ;;
         co)
           echo 28co
         ;;
         cl)
           echo 29cl 
         ;;
         w)
           echo 30w
         ;;
         mcl)
           echo 31mcl
         ;;
         pc)
           echo 32pc 
         ;;
         ic)
           echo 33ic
         ;;
         h)
           echo 34h
         ;;
         mc)
           echo 35mc 
         ;;
         pcs)
           echo 36pcs
         ;;
         mcs)
           echo 37mcs 
         ;;
         pct)
           echo 38pct 
         ;;
         mct)
           echo 39mct 
         ;;
         mcfl)
           echo 40mcfl 
         ;;
         mcsn)
           echo 41mcsn 
         ;;
        esac
}


#put your Accuweather address here
address="http://www.accuweather.com/en/re/salazie/1131695/weather-forecast/1131695"

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"

addr1="$(echo $address|sed 's/weather-forecast.*$//')"daily-weather-forecast/"$last_number"
addr2="$addr1"?day=6

kill -STOP $(pidof conky)
killall wget

wget -O $HOME/.Conky/Davis_weatherlink/cond_actuelles_brut http://www.weatherlink.com/user/salazie/index.php?view=main&headers=0
wget -O $HOME/.Conky/Davis_weatherlink/prevision_12h_brut http://www.weatherlink.com/user/salazie/index.php?view=summary&headers=0
wget --save-cookies $HOME/.Conky/accuweather/cookie -O $HOME/.Conky/accuweather/curr_cond_raw $curr_addr
wget --load-cookies $HOME/.Conky/accuweather/cookie -O $HOME/.Conky/accuweather/first_days_raw $addr1


#Current Conditions - curr_cond file
if [[ -s $HOME/.Conky/accuweather/curr_cond_raw ]]; then

    egrep -i '"detail-tab-panel |>Today<\/a>|>Tonight<\/a>|>Early AM<\/a>|>Overnight<\/a>|>Mon<\/a>|>Tue<\/a>|>Wed<\/a>|>Thu<\/a>|>Fri<\/a>|>Sat<\/a>|>Sun<\/a>|icon i-|"cond"|"temp"|var d = '\''|var s = '\''|Humidity: |Pressure: |Cloud Cover: |UV Index: |Dew Point: |Precipitation(1 hr): |Visibility: |"start">|"finish">' $HOME/.Conky/accuweather/curr_cond_raw > $HOME/.Conky/accuweather/curr_cond
    sed -i -e 's/^[ \t]*//g' -e 's/^.*icon i-//g' -e 's/^.*"cond">//g' -e 's/>Lo</\n/g' -e 's/RealFeel/\n/g' $HOME/.Conky/accuweather/curr_cond
    sed -i -e 's/^.*"#">//g' -e 's/^.*<strong class="temp"//g' -e 's/^>//g' -e 's/<span>&deg.*$//g' $HOME/.Conky/accuweather/curr_cond
    sed -i -e 's/<\/a>.*$//g' -e 's/\/span> //g' -e 's/var d = //g' -e 's/var s = //g' -e 's/"temp">/\n/g' $HOME/.Conky/accuweather/curr_cond
    sed -i -e 's/^.*"start">//g' -e 's/^.*"finish">//g' -e 's/<li>//g' -e 's/<strong>//g' -e 's/<<span.*$//g' $HOME/.Conky/accuweather/curr_cond
    sed -i -e 's/<\/span>//g' -e 's/<\/strong><\/li>//g' -e 's/ "><\/div>//g' -e 's/'\''//g' $HOME/.Conky/accuweather/curr_cond
    sed -i -e 's/"><\/div>//g' -e 's/^.*; //g' -e 's/&#.*$//g' -e 's/ i-alarm.*$//g' -e 's/;//g' $HOME/.Conky/accuweather/curr_cond
    sed -i -e 's/Humidity: //g' -e 's/Pressure: //g' -e 's/Cloud Cover: //g' -e 's/UV Index: //g' -e 's/Dew Point: //g' -e 's/Visibility: //g' $HOME/.Conky/accuweather/curr_cond
    sed -i -e 's/^.*detail-tab-panel //g' -e 's/">//g' -e 's/\r//g' -e 's/ *$//g' -e 's/mb.*$/mb/g' $HOME/.Conky/accuweather/curr_cond
    sed -i 's/-s\|-xl.*$//g' $HOME/.Conky/accuweather/curr_cond
    time=$(sed -n 1p $HOME/.Conky/accuweather/curr_cond)
    if [[ $time == Tonight || $time == Overnight || $time == "Early AM" ]]; then
        sed -i 3a- $HOME/.Conky/accuweather/curr_cond
	fi
    line35=$(sed -n 35p $HOME/.Conky/accuweather/curr_cond)
    sed -i '35d' $HOME/.Conky/accuweather/curr_cond
    sed -i 35a$line35 $HOME/.Conky/accuweather/curr_cond
	cp $HOME/.Conky/accuweather/Forecast_Images/$(sed -n 27p $HOME/.Conky/accuweather/curr_cond).png $HOME/.Conky/accuweather/cc.png
fi


#First 5days - first_days file 
if [[ -s $HOME/.Conky/accuweather/first_days_raw ]]; then

    sed -i '/<div class="column-1 clearfix">/,/<div id=\"feature-history\">/!d' $HOME/.Conky/accuweather/first_days_raw
    egrep -i '>Today<|<p>[a-z]|>Mon<\/a>|>Tue<\/a>|>Wed<\/a>|>Thu<\/a>|>Fri<\/a>|>Sat<\/a>|>Sun<\/a>|icon i-|"cond"|"temp"|realfeel">RealFeel|realfeel">Precipitation' $HOME/.Conky/accuweather/first_days_raw > $HOME/.Conky/accuweather/first_days

    sed -i -e 's/^[ \t]*//g' -e 's/^.*icon i-//g' -e 's/^.*"cond">//g' -e 's/>Lo</\n/g' $HOME/.Conky/accuweather/first_days
    sed -i -e 's/ "><\/div>//g' -e 's/"><\/div>//g' -e 's/^.*"temp">//g' -e 's/<span>&deg.*$//g' $HOME/.Conky/accuweather/first_days
    sed -i -e 's/<p>//g' -e 's/<\/p>//g' -e 's/^.*"#">//g' -e 's/\/span> //g' -e 's/^.*>Precipitation //g' -e 's/^.*; //g' $HOME/.Conky/accuweather/first_days
    sed -i -e 's/&#.*$//g' -e 's/<.*$//g' -e 's/ i-alarm.*$//g' -e 's/\r//g' -e 's/ *$//g' $HOME/.Conky/accuweather/first_days
	sed -i -e 's/Today/TODAY/' -e 's/Mon$/Lun/' -e 's/Tue$/Mar/' -e 's/Wed$/Mer/' -e 's/Thu$/Jeu/' -e 's/Fri$/Ven/' -e 's/Sat$/Sam/' -e 's/Sun$/Dim/' $HOME/.Conky/accuweather/first_days
    sed -i 's/-s\|-l.*$//g' $HOME/.Conky/accuweather/first_days
    time=$(sed -n 1p $HOME/.Conky/accuweather/curr_cond)
    if [[ $time == Tonight || $time == Overnight || $time == "Early AM" ]]; then
        sed -i 2a- $HOME/.Conky/accuweather/first_days
	fi
	L1=$(sed -n 1p $HOME/.Conky/accuweather/first_days)
    if [[ $L1 == TODAY ]]; then
        sed -i 1d $HOME/.Conky/accuweather/first_days
	fi
    for (( i=6; i<=21; i+=5 ))
	  do
	      cp $HOME/.Conky/accuweather/Forecast_Images/$(sed -n ${i}p $HOME/.Conky/accuweather/first_days).png $HOME/.Conky/accuweather/$i.png
	  done
	cp $HOME/.Conky/accuweather/Forecast_Images/$(sed -n 25p $HOME/.Conky/accuweather/first_days).png $HOME/.Conky/accuweather/tod.png
	cp $HOME/.Conky/accuweather/Forecast_Images/$(sed -n 30p $HOME/.Conky/accuweather/first_days).png $HOME/.Conky/accuweather/ton.png

fi


#Conditions locales MAVP
if [[ -s $HOME/.Conky/Davis_weatherlink/cond_actuelles_brut ]]; then

	egrep -i 'glamor_temp|glamor_datatemp|glamor_detailtemp' $HOME/.Conky/Davis_weatherlink/cond_actuelles_brut>$HOME/.Conky/Davis_weatherlink/cond_actuelles
	sed -i '2,6d' $HOME/.Conky/Davis_weatherlink/cond_actuelles
	sed -i '6d' $HOME/.Conky/Davis_weatherlink/cond_actuelles
	sed -i '4d' $HOME/.Conky/Davis_weatherlink/cond_actuelles
	sed -i '1s/^.*Black">//' $HOME/.Conky/Davis_weatherlink/cond_actuelles
	sed -i '1s/<span.*$//' $HOME/.Conky/Davis_weatherlink/cond_actuelles
	sed -i '2s/^.*Gust&nbsp;//' $HOME/.Conky/Davis_weatherlink/cond_actuelles
	sed -i 's/^.*Black">//g' $HOME/.Conky/Davis_weatherlink/cond_actuelles
	sed -i '2s/<span.*$//' $HOME/.Conky/Davis_weatherlink/cond_actuelles
	sed -i '3s/<span.*$//' $HOME/.Conky/Davis_weatherlink/cond_actuelles
	sed -i 's/<\/span.*$//g' $HOME/.Conky/Davis_weatherlink/cond_actuelles
	sed -i '6s/^.*nowrap>//' $HOME/.Conky/Davis_weatherlink/cond_actuelles
	sed -i '6s/<\/td>//' $HOME/.Conky/Davis_weatherlink/cond_actuelles
	sed -i -e 's/Falling Slowly/H/' -e 's/Falling Rapidly/HH/' -e 's/Rising Slowly/G/' -e 's/Rising Rapidly/GG/' -e 's/Steady/A/' $HOME/.Conky/Davis_weatherlink/cond_actuelles

fi


#Prévisions 12h MAVP
if [[ -s $HOME/.Conky/Davis_weatherlink/prevision_12h_brut ]]; then

	egrep -i 'colspan="5"' $HOME/.Conky/Davis_weatherlink/prevision_12h_brut>$HOME/.Conky/Davis_weatherlink/prevision_12h
	sed -i 's/^.*"5">//' $HOME/.Conky/Davis_weatherlink/prevision_12h
	sed -i 's/<\/td>.*$//' $HOME/.Conky/Davis_weatherlink/prevision_12h
	sed -i -e 's/Rain within 12 hours/Pluie/' -e 's/Partially Cloudy/Nuages épars/' -e 's/Mostly Clear/Temps clair/' -e 's/Mostly Cloudy/Nuages/' $HOME/.Conky/Davis_weatherlink/prevision_12h

fi


kill -CONT $(pidof conky)

Thanks and sorry for the long post !!



EDIT (31-03-2013): I eventually have only one accuweather modified script. The last two parts are used to grab the local weather conditions here, but you can replace it with other variables from the original files produced by the 1d1 script.

Last edited by severounch (2013-03-31 04:15:53)

Offline

Help fund CrunchBang, donate to the project!

#802 2013-03-26 20:21:43

y0y0ma
New Member
Registered: 2013-03-23
Posts: 9

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

Updated my previous post #746 to include the necessary configuration files and scripts. smile

Offline

#803 2013-03-28 19:20:37

lwfitz
#! Die Hard
From: Monrovia, CA
Registered: 2012-01-19
Posts: 886
Website

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

Those new edited images I did on on a light background

screenshot-03282013-115611am.png

The config can be found here

Offline

#804 2013-03-31 06:16:26

severounch
New Member
From: Salazie, Reunion Island
Registered: 2013-03-24
Posts: 4

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

Hi everybody,

is it only me (or did I miss something ?) or other international users of 1d1 have noticed that Forecast images don't work anymore ?

When I searched for the "icon i-" pattern the script was getting from the curr_cond_raw file, I found icon names like "icon i-xx-s", which results in a line like "xx" in the curr_cond file, where xx is just a number. So, when the scripts executes "cp $HOME/.Conky/accuweather/Forecast_Images/$(sed -n 27p $HOME/.Conky/accuweather/curr_cond).png $HOME/.Conky/accuweather/cc.png", you get a file like, for example "12.png", or "21.png", etc...
And the images in the "Forecast_Images" folder don't have have this scheme of naming (it's like "1su.png", etc...). As a result, since yesterday I have noticed, old images get stuck in the conky.

I have been travelling through the medias used on the accuweather page and I have seen that the adress of the images used is like "vortex.accuweather.com/adc2010/images/icons-numbered/07-l.png" (shortcut, the large version, to keep the same size as the ones in the original Forecast_Images folder).

These are nice images that use transparency, so I downloaded them, changed the name according to the output of the script in the different files (no zero i.e. 1 digit numbers, so "1.png", not "01.png"), started using them and it's fine ! big_smile

And something different: it appears that the "Precipitation(1 hr): " pattern doesn't exist anymore on the accuweather page (for the moment...). Is it possible to delete it safely in the script ?

Thanks !!

Offline

#805 2013-03-31 08:03:53

TeoBigusGeekus
#! Die Hard
From: /Greece/Kastoria
Registered: 2012-04-28
Posts: 963

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

As of 25-3-13 the scripts have been updated to conform with Accuweather's new icon naming convention.
Read the posts of the last couple of pages.


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

#806 2013-03-31 14:26:23

severounch
New Member
From: Salazie, Reunion Island
Registered: 2013-03-24
Posts: 4

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

Sorry for that...

I thought I had the most recent scripts...

Peace !

Offline

#807 2013-03-31 15:01:59

TeoBigusGeekus
#! Die Hard
From: /Greece/Kastoria
Registered: 2012-04-28
Posts: 963

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

No worries mate!


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

#808 2013-03-31 18:57:23

zubcho81
#! CrunchBanger
From: Sofia, Bulgaria
Registered: 2012-08-12
Posts: 209

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

Ok, everything is working ok, BUT I want to see the pictures for the forecasts. And now the days of the week are on the pictures. Can you help?

Screenshot
screenshot-03312013-094756pm.png

.conkyrc

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# fiddle with window
use_spacer yes
use_xft yes

# Update interval in seconds
update_interval 3

# Minimum size of text area
minimum_size 355 500
maximum_width 357

override_utf8_locale yes

# Draw shades?
draw_shades yes

# Text stuff
draw_outline yes # amplifies text if yes
draw_borders no
#font freesans -12
xftfont Arial:size=9
uppercase no # set to yes if you want all text to be in uppercase

# Stippled borders?
stippled_borders 3

# border margins
border_margin 9

# border width
border_width 10

# Default colors and also border colors, grey90 == #e5e5e5
default_color cbcbcb

own_window_colour brown
own_window_transparent yes

# Text alignment, other possible values are commented
#alignment top_left
alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
gap_x 10
gap_y 50

imlib_cache_size 0
# stuff after 'TEXT' will be formatted on screen

TEXT
${font Arial:size=12}${color ffe595}WEATHER ${font}${hr 2}$color${texeci 500 bash $HOME/Accuweather_Conky_Int_Images/acc_int_images}
${image $HOME/Accuweather_Conky_Int_Images/cc.png -p 0,60 -s 180x108}
${font Arial:size=10}${execpi 600 sed -n '1p' $HOME/Accuweather_Conky_Int_Images/messages}${font}${goto 200}${color ffe595}TEMP: $color${alignr}${execpi 600 sed -n '29p' $HOME/Accuweather_Conky_Int_Images/curr_cond}°C (${execpi 600 sed -n '30p' $HOME/Accuweather_Conky_Int_Images/curr_cond}°C)
${goto 200}${color ffe595}WIND: $color${alignr}${execpi 600 sed -n '31p' $HOME/Accuweather_Conky_Int_Images/curr_cond} ${execpi 600 sed -n '32p' $HOME/Accuweather_Conky_Int_Images/curr_cond}
${goto 200}${color ffe595}HUM: $color${alignr}${execpi 600 sed -n '33p' $HOME/Accuweather_Conky_Int_Images/curr_cond}
${goto 200}${color ffe595}DEW POINT: $color${alignr}${execpi 600 sed -n '37p' $HOME/Accuweather_Conky_Int_Images/curr_cond}°C
${goto 200}${color ffe595}PR: $color${alignr}${execpi 600 sed -n '34p' $HOME/Accuweather_Conky_Int_Images/curr_cond}
${goto 200}${color ffe595}VISIB: $color${alignr}${execpi 600 sed -n '38p' $HOME/Accuweather_Conky_Int_Images/curr_cond}
${goto 200}${color ffe595}CLOUD COVER: $color${alignr}${execpi 600 sed -n '35p' $HOME/Accuweather_Conky_Int_Images/curr_cond}
${goto 200}${color ffe595}UV INDEX: $color${alignr}${execpi 600 sed -n '36p' $HOME/Accuweather_Conky_Int_Images/curr_cond} 
${goto 200}${color ffe595}S/M RISE: $color${alignr}${execpi 600 sed -n '39p' $HOME/Accuweather_Conky_Int_Images/curr_cond}/${execpi 600 sed -n '41p' $HOME/Accuweather_Conky_Int_Images/curr_cond}
${goto 200}${color ffe595}S/M SET: $color${alignr}${execpi 600 sed -n '40p' $HOME/Accuweather_Conky_Int_Images/curr_cond}/${execpi 600 sed -n '42p' $HOME/Accuweather_Conky_Int_Images/curr_cond}
${hr 1}
${goto 50}${font Arial:size=10}${color ffe595}TODAY$color$font${goto 230}${font Arial:size=10}${color ffe595}TONIGHT$color$font${image $HOME/Accuweather_Conky_Int_Images/tod.png -p 0,205 -s 120x72}${image $HOME/Accuweather_Conky_Int_Images/ton.png -p 190,205 -s 120x72}

${goto 145}${execpi 600 sed -n '26p' $HOME/Accuweather_Conky_Int_Images/first_days}°C${goto 340}${execpi 600 sed -n '31p' $HOME/Accuweather_Conky_Int_Images/first_days}°C
${goto 140}(${execpi 600 sed -n '27p' $HOME/Accuweather_Conky_Int_Images/first_days}°C)${goto 335}(${execpi 600 sed -n '32p' $HOME/Accuweather_Conky_Int_Images/first_days}°C)


${font Arial:size=8}${execpi 600 sed -n '2p' $HOME/Accuweather_Conky_Int_Images/messages}${goto 195}${execpi 600 sed -n '3p' $HOME/Accuweather_Conky_Int_Images/messages}$font
Chance of Precip: ${execpi 600 sed -n '28p' $HOME/Accuweather_Conky_Int_Images/first_days}${goto 195}Chance of Precip: $color${execpi 600 sed -n '33p' $HOME/Accuweather_Conky_Int_Images/first_days}
${hr 1}
${font Arial:size=9}${goto 40}${color ffe595}${execpi 600 sed -n '5p' $HOME/Accuweather_Conky_Int_Images/first_days}${goto 145}${execpi 600 sed -n '10p' $HOME/Accuweather_Conky_Int_Images/first_days}${goto 270}${execpi 600 sed -n '15p' $HOME/Accuweather_Conky_Int_Images/first_days}$color${font}${image $HOME/Accuweather_Conky_Int_Images/6.png -p 0,330 -s 90x54}

${font Arial:size=8}${goto 100}${execpi 600 sed -n '8p' $HOME/Accuweather_Conky_Int_Images/first_days}°C${goto 210}${execpi 600 sed -n '13p' $HOME/Accuweather_Conky_Int_Images/first_days}°C${goto 330}${execpi 600 sed -n '18p' $HOME/Accuweather_Conky_Int_Images/first_days}°C
${goto 100}${execpi 600 sed -n '9p' $HOME/Accuweather_Conky_Int_Images/first_days}°C${goto 210}${execpi 600 sed -n '14p' $HOME/Accuweather_Conky_Int_Images/first_days}°C${goto 330}${execpi 600 sed -n '19p' $HOME/Accuweather_Conky_Int_Images/first_days}°C${image $HOME/Accuweather_Conky_Int_Images/11.png -p 110,330 -s 90x54}${image $HOME/Accuweather_Conky_Int_Images/16.png -p 230,330 -s 90x54}

${execpi 600 sed -n '4p' $HOME/Accuweather_Conky_Int_Images/messages}${goto 135}${execpi 600 sed -n '5p' $HOME/Accuweather_Conky_Int_Images/messages}${goto 255}${execpi 600 sed -n '6p' $HOME/Accuweather_Conky_Int_Images/messages}

${font Arial:size=9}${goto 40}${color ffe595}${execpi 600 sed -n '20p' $HOME/Accuweather_Conky_Int_Images/first_days}${goto 145}${execpi 600 sed -n '1p' $HOME/Accuweather_Conky_Int_Images/last_days}${goto 270}${execpi 600 sed -n '6p' $HOME/Accuweather_Conky_Int_Images/last_days}$color${font}${image $HOME/Accuweather_Conky_Int_Images/21.png -p 0,420 -s 90x54}

${font Arial:size=8}${goto 100}${execpi 600 sed -n '23p' $HOME/Accuweather_Conky_Int_Images/first_days}°C${goto 210}${execpi 600 sed -n '4p' $HOME/Accuweather_Conky_Int_Images/last_days}°C${goto 330}${execpi 600 sed -n '9p' $HOME/Accuweather_Conky_Int_Images/last_days}°C
${font Arial:size=8}${goto 100}${execpi 600 sed -n '24p' $HOME/Accuweather_Conky_Int_Images/first_days}°C${goto 210}${execpi 600 sed -n '5p' $HOME/Accuweather_Conky_Int_Images/last_days}°C${goto 330}${execpi 600 sed -n '10p' $HOME/Accuweather_Conky_Int_Images/last_days}°C${image $HOME/Accuweather_Conky_Int_Images/last_2.png -p 110,420 -s 90x54}${image $HOME/Accuweather_Conky_Int_Images/last_7.png -p 230,420 -s 90x54}

${execpi 600 sed -n '7p' $HOME/Accuweather_Conky_Int_Images/messages}${goto 135}${execpi 600 sed -n '8p' $HOME/Accuweather_Conky_Int_Images/messages}${goto 255}${execpi 600 sed -n '9p' $HOME/Accuweather_Conky_Int_Images/messages}

${font Arial:size=9}${goto 40}${color ffe595}${execpi 600 sed -n '11p' $HOME/Accuweather_Conky_Int_Images/last_days}${goto 145}${execpi 600 sed -n '16p' $HOME/Accuweather_Conky_Int_Images/last_days}${goto 270}${execpi 600 sed -n '21p' $HOME/Accuweather_Conky_Int_Images/last_days}$color${font}${image $HOME/Accuweather_Conky_Int_Images/last_12.png -p 0,510 -s 90x54}

${font Arial:size=8}${goto 100}${execpi 600 sed -n '14p' $HOME/Accuweather_Conky_Int_Images/last_days}°C${goto 210}${execpi 600 sed -n '19p' $HOME/Accuweather_Conky_Int_Images/last_days}°C${goto 330}${execpi 600 sed -n '24p' $HOME/Accuweather_Conky_Int_Images/last_days}°C
${font Arial:size=8}${goto 100}${execpi 600 sed -n '15p' $HOME/Accuweather_Conky_Int_Images/last_days}°C${goto 210}${execpi 600 sed -n '20p' $HOME/Accuweather_Conky_Int_Images/last_days}°C${goto 330}${execpi 600 sed -n '25p' $HOME/Accuweather_Conky_Int_Images/last_days}°C${image $HOME/Accuweather_Conky_Int_Images/last_17.png -p 110,510 -s 90x54}${image $HOME/Accuweather_Conky_Int_Images/last_22.png -p 230,510 -s 90x54}

${execpi 600 sed -n '10p' $HOME/Accuweather_Conky_Int_Images/messages}${goto 135}${execpi 600 sed -n '11p' $HOME/Accuweather_Conky_Int_Images/messages}${goto 255}${execpi 600 sed -n '12p' $HOME/Accuweather_Conky_Int_Images/messages}

acc_int_images

#!/bin/bash

#function: test_image_day
test_image_day () {
    case $1 in
         su)
           echo 1su
         ;;
         msu)
           echo 2msu
         ;;
         psu)
           echo 3psu
         ;;
         ic)
           echo 4ic
         ;;
         h)
           echo 5h
         ;;
         mc)
           echo 6mc
         ;;
         c)
           echo 7c
         ;;
         d)
           echo 8d
         ;;
         f)
           echo 9f
         ;;
         s)
           echo 10s
         ;;
         mcs)
           echo 11mcs
         ;;
         psus)
           echo 12psus
         ;;
         t)
           echo 13t
         ;;
         mct)
           echo 14mct
         ;;
         psut)
           echo 15psut
         ;;
         r)
           echo 16r
         ;;
         fl)
           echo 17fl
         ;;
         mcfl)
           echo 18mcfl
         ;;
         psfl)
           echo 19psfl
         ;;
         sn)
           echo 20sn
         ;;
         mcsn)
           echo 21mcsn
         ;;
         i)
           echo 22i
         ;;
         sl)
           echo 23sl
         ;;
         fr)
           echo 24fr
         ;;
         rsn)
           echo 25rsn
         ;;
         w)
           echo 26w
         ;;
         ho)
           echo 27ho
         ;;
         co)
           echo 28co
         ;;
         cl)
           echo 29cl 
         ;;
         mcl)
           echo 31mcl
         ;;
         pc)
           echo 32pc 
         ;;
         pcs)
           echo 36pcs
         ;;
         pct)
           echo 38pct 
         ;;
        esac
} 

#function: test_image_night
test_image_night () {
    case $1 in
		 su)
           echo 1su
         ;;
         msu)
           echo 2msu
         ;;
         psu)
           echo 3psu
         ;;
         c)
           echo 7c
         ;;
         d)
           echo 8d
         ;;
         f)
           echo 9f
         ;;
         s)
           echo 10s
         ;;
         psus)
           echo 12psus
         ;;
         t)
           echo 13t
         ;;
         psut)
           echo 15psut
         ;;
         r)
           echo 16r
         ;;
         fl)
           echo 17fl
         ;;
         psfl)
           echo 19psfl
         ;;
         sn)
           echo 20sn
         ;;
         i)
           echo 22i
         ;;
         sl)
           echo 23sl
         ;;
         fr)
           echo 24fr
         ;;
         rsn)
           echo 25rsn
         ;;
         ho)
           echo 27ho
         ;;
         co)
           echo 28co
         ;;
         cl)
           echo 29cl 
         ;;
         w)
           echo 30w
         ;;
         mcl)
           echo 31mcl
         ;;
         pc)
           echo 32pc 
         ;;
         ic)
           echo 33ic
         ;;
         h)
           echo 34h
         ;;
         mc)
           echo 35mc 
         ;;
         pcs)
           echo 36pcs
         ;;
         mcs)
           echo 37mcs 
         ;;
         pct)
           echo 38pct 
         ;;
         mct)
           echo 39mct 
         ;;
         mcfl)
           echo 40mcfl 
         ;;
         mcsn)
           echo 41mcsn 
         ;;
        esac
}


#put your Accuweather address here
address="http://www.accuweather.com/en/bg/sofia/51097/weather-forecast/51097"

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"

addr1="$(echo $address|sed 's/weather-forecast.*$//')"daily-weather-forecast/"$last_number"
addr2="$addr1"?day=6

kill -STOP $(pidof conky)
killall wget

wget --save-cookies $HOME/Accuweather_Conky_Int_Images/cookie -O $HOME/Accuweather_Conky_Int_Images/curr_cond_raw $curr_addr
wget --load-cookies $HOME/Accuweather_Conky_Int_Images/cookie -O $HOME/Accuweather_Conky_Int_Images/first_days_raw $addr1
wget --load-cookies $HOME/Accuweather_Conky_Int_Images/cookie -O $HOME/Accuweather_Conky_Int_Images/last_days_raw $addr2

#Current Conditions - curr_cond file
if [[ -s $HOME/Accuweather_Conky_Int_Images/curr_cond_raw ]]; then

    egrep -i '"detail-tab-panel |>Today<\/a>|>Tonight<\/a>|>Early AM<\/a>|>Overnight<\/a>|>Mon<\/a>|>Tue<\/a>|>Wed<\/a>|>Thu<\/a>|>Fri<\/a>|>Sat<\/a>|>Sun<\/a>|icon i-|"cond"|"temp"|var d = '\''|var s = '\''|Humidity: |Pressure: |Cloud Cover: |UV Index: |Dew Point: |Precipitation(1 hr): |Visibility: |"start">|"finish">' $HOME/Accuweather_Conky_Int_Images/curr_cond_raw > $HOME/Accuweather_Conky_Int_Images/curr_cond
    sed -i -e 's/^[ \t]*//g' -e 's/^.*icon i-//g' -e 's/^.*"cond">//g' -e 's/>Lo</\n/g' -e 's/RealFeel/\n/g' $HOME/Accuweather_Conky_Int_Images/curr_cond
    sed -i -e 's/^.*"#">//g' -e 's/^.*<strong class="temp"//g' -e 's/^>//g' -e 's/<span>&deg.*$//g' $HOME/Accuweather_Conky_Int_Images/curr_cond
    sed -i -e 's/<\/a>.*$//g' -e 's/\/span> //g' -e 's/var d = //g' -e 's/var s = //g' -e 's/"temp">/\n/g' $HOME/Accuweather_Conky_Int_Images/curr_cond
    sed -i -e 's/^.*"start">//g' -e 's/^.*"finish">//g' -e 's/<li>//g' -e 's/<strong>//g' -e 's/<<span.*$//g' $HOME/Accuweather_Conky_Int_Images/curr_cond
    sed -i -e 's/<\/span>//g' -e 's/<\/strong><\/li>//g' -e 's/ "><\/div>//g' -e 's/'\''//g' $HOME/Accuweather_Conky_Int_Images/curr_cond
    sed -i -e 's/"><\/div>//g' -e 's/^.*; //g' -e 's/&#.*$//g' -e 's/ i-alarm.*$//g' -e 's/;//g' $HOME/Accuweather_Conky_Int_Images/curr_cond
    sed -i -e 's/Humidity: //g' -e 's/Pressure: //g' -e 's/Cloud Cover: //g' -e 's/UV Index: //g' -e 's/Dew Point: //g' -e 's/Visibility: //g' $HOME/Accuweather_Conky_Int_Images/curr_cond
    sed -i -e 's/^.*detail-tab-panel //g' -e 's/">//g' -e 's/\r//g' -e 's/ *$//g' -e 's/mb.*$/mb/g' $HOME/Accuweather_Conky_Int_Images/curr_cond
    sed -i 's/-s\|-xl.*$//g' $HOME/Accuweather_Conky_Int_Images/curr_cond
    time=$(sed -n 1p $HOME/Accuweather_Conky_Int_Images/curr_cond)
    if [[ $time == Tonight || $time == Overnight || $time == "Early AM" ]]; then
        sed -i 3a- $HOME/Accuweather_Conky_Int_Images/curr_cond
	fi
    line35=$(sed -n 35p $HOME/Accuweather_Conky_Int_Images/curr_cond)
    sed -i '35d' $HOME/Accuweather_Conky_Int_Images/curr_cond
    sed -i 35a$line35 $HOME/Accuweather_Conky_Int_Images/curr_cond
	cp $HOME/Accuweather_Conky_Int_Images/Forecast_Images/$(sed -n 27p $HOME/Accuweather_Conky_Int_Images/curr_cond).png $HOME/Accuweather_Conky_Int_Images/cc.png
fi


#First 5days - first_days file 
if [[ -s $HOME/Accuweather_Conky_Int_Images/first_days_raw ]]; then

    sed -i '/<div class="column-1 clearfix">/,/<div id=\"feature-history\">/!d' $HOME/Accuweather_Conky_Int_Images/first_days_raw
    egrep -i '>Today<|<p>[a-z]|>Mon<\/a>|>Tue<\/a>|>Wed<\/a>|>Thu<\/a>|>Fri<\/a>|>Sat<\/a>|>Sun<\/a>|icon i-|"cond"|"temp"|realfeel">RealFeel|realfeel">Precipitation' $HOME/Accuweather_Conky_Int_Images/first_days_raw > $HOME/Accuweather_Conky_Int_Images/first_days

    sed -i -e 's/^[ \t]*//g' -e 's/^.*icon i-//g' -e 's/^.*"cond">//g' -e 's/>Lo</\n/g' $HOME/Accuweather_Conky_Int_Images/first_days
    sed -i -e 's/ "><\/div>//g' -e 's/"><\/div>//g' -e 's/^.*"temp">//g' -e 's/<span>&deg.*$//g' $HOME/Accuweather_Conky_Int_Images/first_days
    sed -i -e 's/<p>//g' -e 's/<\/p>//g' -e 's/^.*"#">//g' -e 's/\/span> //g' -e 's/^.*>Precipitation //g' -e 's/^.*; //g' $HOME/Accuweather_Conky_Int_Images/first_days
    sed -i -e 's/&#.*$//g' -e 's/<.*$//g' -e 's/ i-alarm.*$//g' -e 's/\r//g' -e 's/ *$//g' $HOME/Accuweather_Conky_Int_Images/first_days
	sed -i -e 's/Today/TODAY/' -e 's/Mon$/MONDAY/' -e 's/Tue$/TUESDAY/' -e 's/Wed$/WEDNESDAY/' -e 's/Thu$/THURSDAY/' -e 's/Fri$/FRIDAY/' -e 's/Sat$/SATURDAY/' -e 's/Sun$/SUNDAY/' $HOME/Accuweather_Conky_Int_Images/first_days
    sed -i 's/-s\|-l.*$//g' $HOME/Accuweather_Conky_Int_Images/first_days
    time=$(sed -n 1p $HOME/Accuweather_Conky_Int_Images/curr_cond)
    if [[ $time == Tonight || $time == Overnight || $time == "Early AM" ]]; then
        sed -i 2a- $HOME/Accuweather_Conky_Int_Images/first_days
	fi
	L1=$(sed -n 1p $HOME/Accuweather_Conky_Int_Images/first_days)
    if [[ $L1 == TODAY ]]; then
        sed -i 1d $HOME/Accuweather_Conky_Int_Images/first_days
	fi
    for (( i=6; i<=21; i+=5 ))
	  do
	      cp $HOME/Accuweather_Conky_Int_Images/Forecast_Images/$(sed -n ${i}p $HOME/Accuweather_Conky_Int_Images/first_days).png $HOME/Accuweather_Conky_Int_Images/$i.png
	  done
	cp $HOME/Accuweather_Conky_Int_Images/Forecast_Images/$(sed -n 25p $HOME/Accuweather_Conky_Int_Images/first_days).png $HOME/Accuweather_Conky_Int_Images/tod.png
	cp $HOME/Accuweather_Conky_Int_Images/Forecast_Images/$(sed -n 30p $HOME/Accuweather_Conky_Int_Images/first_days).png $HOME/Accuweather_Conky_Int_Images/ton.png

fi


#Last 5days - last_days file 
if [[ -s $HOME/Accuweather_Conky_Int_Images/last_days_raw ]]; then

    sed -i '/<div class="column-1 clearfix">/,/<div id=\"feature-history\">/!d' $HOME/Accuweather_Conky_Int_Images/last_days_raw
    egrep -i '>Mon<\/a>|>Tue<\/a>|>Wed<\/a>|>Thu<\/a>|>Fri<\/a>|>Sat<\/a>|>Sun<\/a>|icon i-|"cond"|"temp"|realfeel">RealFeel|realfeel">Precipitation' $HOME/Accuweather_Conky_Int_Images/last_days_raw > $HOME/Accuweather_Conky_Int_Images/last_days
    sed -i -e 's/^[ \t]*//g' -e 's/^.*icon i-//g' -e 's/^.*"cond">//g' -e 's/>Lo</\n/g' $HOME/Accuweather_Conky_Int_Images/last_days
    sed -i -e 's/ "><\/div>//g' -e 's/"><\/div>//g' -e 's/^.*"temp">//g' -e 's/<span>&deg.*$//g' $HOME/Accuweather_Conky_Int_Images/last_days
    sed -i -e 's/^.*"#">//g' -e 's/\/span> //g' -e 's/^.*>Precipitation //g' -e 's/^.*; //g' $HOME/Accuweather_Conky_Int_Images/last_days
    sed -i -e 's/&#.*$//g' -e 's/<.*$//g' -e 's/ i-alarm.*$//g' -e 's/\r//g' -e 's/ *$//g' $HOME/Accuweather_Conky_Int_Images/last_days
	sed -i -e 's/Mon$/MONDAY/' -e 's/Tue$/TUESDAY/' -e 's/Wed$/WEDNESDAY/' -e 's/Thu$/THURSDAY/' -e 's/Fri$/FRIDAY/' -e 's/Sat$/SATURDAY/' -e 's/Sun$/SUNDAY/' $HOME/Accuweather_Conky_Int_Images/last_days
    sed -i 's/-s\|-l.*$//g' $HOME/Accuweather_Conky_Int_Images/last_days
    for (( i=2; i<=22; i+=5 ))
	  do
	      cp $HOME/Accuweather_Conky_Int_Images/Forecast_Images/$(sed -n ${i}p $HOME/Accuweather_Conky_Int_Images/last_days).png $HOME/Accuweather_Conky_Int_Images/last_$i.png
	  done

fi

#messages file
sed -n 28p $HOME/Accuweather_Conky_Int_Images/curr_cond | cut -c -20 > $HOME/Accuweather_Conky_Int_Images/messages
sed -n 29p $HOME/Accuweather_Conky_Int_Images/first_days | cut -c -20 >> $HOME/Accuweather_Conky_Int_Images/messages
sed -n 34p $HOME/Accuweather_Conky_Int_Images/first_days | cut -c -20 >> $HOME/Accuweather_Conky_Int_Images/messages
for (( i=7; i<=22; i+=5 ))
  do
      sed -n ${i}p $HOME/Accuweather_Conky_Int_Images/first_days | cut -c -20 >> $HOME/Accuweather_Conky_Int_Images/messages
  done
for (( i=3; i<=23; i+=5 ))
  do
      sed -n ${i}p $HOME/Accuweather_Conky_Int_Images/last_days | cut -c -20 >> $HOME/Accuweather_Conky_Int_Images/messages
  done

kill -CONT $(pidof conky)

Dried frog pills
As their name suggests, these are pills made chiefly from frogs, specifically the extremely poisonous ones that live in the vivarium at Unseen University and handled by the first-year students, so that if they kill one of them, not too much education has been wasted.

I use them daily! tongue

Offline

#809 2013-03-31 19:10:13

TeoBigusGeekus
#! Die Hard
From: /Greece/Kastoria
Registered: 2012-04-28
Posts: 963

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

The position and size of the images is controlled by your conkyrc; by the "image" command specifically.
Take this one

${image $HOME/Accuweather_Conky_Int_Images/last_17.png -p 110,510 -s 90x54}

for example.
It will place the last_17.png image on your conky at position (-p) 110 (x coordinate), 510 (y coordinate). The image will be of size (-s) 90x54.

The images' positions in the bundled conkyrc are perfect for my monitor and resolution. For yours, you'll have to make some adjustments yourself.


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

#810 2013-03-31 19:23:14

zubcho81
#! CrunchBanger
From: Sofia, Bulgaria
Registered: 2012-08-12
Posts: 209

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

^Thanks! Everything is working perfectly now. I'm happy.  8o


Dried frog pills
As their name suggests, these are pills made chiefly from frogs, specifically the extremely poisonous ones that live in the vivarium at Unseen University and handled by the first-year students, so that if they kill one of them, not too much education has been wasted.

I use them daily! tongue

Offline

#811 2013-03-31 19:25:27

TeoBigusGeekus
#! Die Hard
From: /Greece/Kastoria
Registered: 2012-04-28
Posts: 963

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

Good to know!


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

#812 2013-04-19 13:26:21

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

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

Hey Teo, check this out ... your 1d_accuweather_rss - out of Gibraltar Spain - on a light plane cockpit panel:

conkpit - if he meant cockpit I'm not going to complain because conkpit works really well here.  big_smile


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#813 2013-04-19 19:48:10

TeoBigusGeekus
#! Die Hard
From: /Greece/Kastoria
Registered: 2012-04-28
Posts: 963

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

Sector11 wrote:

Hey Teo, check this out ... your 1d_accuweather_rss - out of Gibraltar Spain - on a light plane cockpit panel:

conkpit - if he meant cockpit I'm not going to complain because conkpit works really well here.  big_smile

Smart idea! Thanks for mentioning Sector11.


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

#814 2013-04-19 22:30:18

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

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

TeoBigusGeekus wrote:

Smart idea! Thanks for mentioning Sector11.

You're welcome, he had to come and grab the new script, his was old and stopped working.


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#815 2013-04-21 12:51:26

morfik
Member
Registered: 2013-04-21
Posts: 25

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

I'm using two scripts --  1b1_accuweather_images and 1c_accuweather_images_hourly . I had to modify them, and now they look like this:

35442.png

It isn't finished yet but I wanted to ask if is there a possibility to add moon phases to those scripts? I noticed there is "moon rise" and "moon set" in 1b1_accuweather_images but there is no moon.

I've used this script http://ubuntuforums.org/showthread.php?t=869328 before, and then I found yours, and I wanted to migrate from my concyforecast. Everything was fine until the moment when I saw there is no moon phases in my current script. So, do you plan using moon phases in your scripts?

As to the ubuntu concyforecast script -- https://dl.dropboxusercontent.com/u/375 … ons.tar.gz -- those are the moon icons from it. Maybe they could help with something.

Offline

#816 2013-04-21 13:32:49

TeoBigusGeekus
#! Die Hard
From: /Greece/Kastoria
Registered: 2012-04-28
Posts: 963

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

Unfortunately no morfik.
Accuweather's moon phase support is quite poor and, most importantly, it requires downloading one more page with the 3 ones already downloaded (astronomy links). This would make the script 33% slower for little gain information wise.

EDIT: If moon phases are so important for you, you could have a look at script #4 (weather.com).

Last edited by TeoBigusGeekus (2013-04-21 13:34:38)


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

#817 2013-04-21 23:12:54

morfik
Member
Registered: 2013-04-21
Posts: 25

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

I tried to look at the #4 script, and I got this:

morfik:~$ export LC_MESSAGES=C
morfik:~$ conky -c ~/Conky_WeatherCom_metric/.conkyrc_weather_com_metric &
[1] 27099
morfik:~$ Conky: desktop window (24b) is root window
Conky: window type - override
Conky: drawing to created window (0x3e00001)
Conky: drawing to double buffer
wget: no process found
--2013-04-22 00:54:11--  http://www.weather.com/weather/today/Zyrardow+PLXX2296:1:PL
Resolving www.weather.com (www.weather.com)... 66.171.231.89, 66.171.231.15
Connecting to www.weather.com (www.weather.com)|66.171.231.89|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `/home/morfik/Conky_WeatherCom_metric/RightNow/raw_rn'

    [  <=>                                             ] 234.123      671K/s   in 0,3s    

2013-04-22 00:54:12 (671 KB/s) - `/home/morfik/Conky_WeatherCom_metric/RightNow/raw_rn' saved [234123]

--2013-04-22 00:54:12--  http://www.weather.com/weather/today/Zyrardow+PLXX2296:1:PL
Resolving www.weather.com (www.weather.com)... 66.171.231.15, 66.171.231.89
Connecting to www.weather.com (www.weather.com)|66.171.231.15|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `/home/morfik/Conky_WeatherCom_metric/Today/raw_td'

    [  <=>                                             ] 234.123      836K/s   in 0,3s    

2013-04-22 00:54:12 (836 KB/s) - `/home/morfik/Conky_WeatherCom_metric/Today/raw_td' saved [234123]

--2013-04-22 00:54:12--  http://www.weather.com/weather/today/Zyrardow+PLXX2296:1:PL
Resolving www.weather.com (www.weather.com)... 66.171.231.89, 66.171.231.15
Connecting to www.weather.com (www.weather.com)|66.171.231.89|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `/home/morfik/Conky_WeatherCom_metric/10days/raw_10'

    [  <=>                                             ] 234.123      853K/s   in 0,3s    

2013-04-22 00:54:12 (853 KB/s) - `/home/morfik/Conky_WeatherCom_metric/10days/raw_10' saved [234123]

rm: cannot remove `/home/morfik/Conky_WeatherCom_metric/10days/10days_OK': No such file or directory
cp: omitting directory `/home/morfik/Conky_WeatherCom_metric/weather_com_images/'
cp: omitting directory `/home/morfik/Conky_WeatherCom_metric/weather_com_images/'
cp: omitting directory `/home/morfik/Conky_WeatherCom_metric/weather_com_images/'
cp: omitting directory `/home/morfik/Conky_WeatherCom_metric/weather_com_images/'
cp: omitting directory `/home/morfik/Conky_WeatherCom_metric/weather_com_images/'
cp: omitting directory `/home/morfik/Conky_WeatherCom_metric/weather_com_images/'
cp: omitting directory `/home/morfik/Conky_WeatherCom_metric/weather_com_images/'
cp: omitting directory `/home/morfik/Conky_WeatherCom_metric/weather_com_images/'
cp: omitting directory `/home/morfik/Conky_WeatherCom_metric/weather_com_images/'
cp: omitting directory `/home/morfik/Conky_WeatherCom_metric/weather_com_images/'
cp: omitting directory `/home/morfik/Conky_WeatherCom_metric/weather_com_images/'
cp: omitting directory `/home/morfik/Conky_WeatherCom_metric/weather_com_images/'
wget: no process found
--2013-04-22 00:54:13--  http://www.weather.com/weather/today/Zyrardow+PLXX2296:1:PL
Resolving www.weather.com (www.weather.com)... 66.171.231.89, 66.171.231.15
Connecting to www.weather.com (www.weather.com)|66.171.231.89|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `/home/morfik/Conky_WeatherCom_metric/RightNow/raw_rn'

    [  <=>                                             ] 234.123      805K/s   in 0,3s    

2013-04-22 00:54:13 (805 KB/s) - `/home/morfik/Conky_WeatherCom_metric/RightNow/raw_rn' saved [234123]

--2013-04-22 00:54:13--  http://www.weather.com/weather/today/Zyrardow+PLXX2296:1:PL
Resolving www.weather.com (www.weather.com)... 66.171.231.15, 66.171.231.89
Connecting to www.weather.com (www.weather.com)|66.171.231.15|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `/home/morfik/Conky_WeatherCom_metric/Today/raw_td'

    [  <=>                                             ] 234.123      644K/s   in 0,4s    

2013-04-22 00:54:14 (644 KB/s) - `/home/morfik/Conky_WeatherCom_metric/Today/raw_td' saved [234123]

--2013-04-22 00:54:14--  http://www.weather.com/weather/today/Zyrardow+PLXX2296:1:PL
Resolving www.weather.com (www.weather.com)... 66.171.231.15, 66.171.231.89
Connecting to www.weather.com (www.weather.com)|66.171.231.15|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `/home/morfik/Conky_WeatherCom_metric/10days/raw_10'

    [  <=>                                             ] 234.123      834K/s   in 0,3s    

2013-04-22 00:54:14 (834 KB/s) - `/home/morfik/Conky_WeatherCom_metric/10days/raw_10' saved [234123]

rm: cannot remove `/home/morfik/Conky_WeatherCom_metric/10days/10days_OK': No such file or directory
cp: omitting directory `/home/morfik/Conky_WeatherCom_metric/weather_com_images/'
cp: omitting directory `/home/morfik/Conky_WeatherCom_metric/weather_com_images/'
cp: omitting directory `/home/morfik/Conky_WeatherCom_metric/weather_com_images/'
cp: omitting directory `/home/morfik/Conky_WeatherCom_metric/weather_com_images/'
cp: omitting directory `/home/morfik/Conky_WeatherCom_metric/weather_com_images/'
cp: omitting directory `/home/morfik/Conky_WeatherCom_metric/weather_com_images/'
cp: omitting directory `/home/morfik/Conky_WeatherCom_metric/weather_com_images/'
cp: omitting directory `/home/morfik/Conky_WeatherCom_metric/weather_com_images/'
cp: omitting directory `/home/morfik/Conky_WeatherCom_metric/weather_com_images/'
cp: omitting directory `/home/morfik/Conky_WeatherCom_metric/weather_com_images/'
cp: omitting directory `/home/morfik/Conky_WeatherCom_metric/weather_com_images/'
cp: omitting directory `/home/morfik/Conky_WeatherCom_metric/weather_com_images/'
Conky: Unable to load image '/home/morfik/Conky_WeatherCom_metric/TD.png'
Conky: Unable to load image '/home/morfik/Conky_WeatherCom_metric/TD.png'
Conky: Unable to load image '/home/morfik/Conky_WeatherCom_metric/TD.png'
Conky: Unable to load image '/home/morfik/Conky_WeatherCom_metric/TD.png'

It looks like this:

2239bac3fda1c348cf9ade78d06351e016.png

Also I have one question concerning two weather conky window starting at a time. On archlinux, I came across a strange behavior -- sometimes one of the scripts isn't fully loaded. I think it's because of these lines:

kill -STOP $(pidof conky)
killall wget

I have a script which receive my external ip, and it also gets killed sometimes. Below is the ip script:

#!/bin/bash
myip="$(wget http://checkip.dyndns.org -q -O - | sed 's/.*ss:\ //;s/<\/b.*//')"
echo $myip

So as you can see, there also wget is used.

I'm not good at coding or programing, so I really don't know how to fix this. Do you have any ideas?

Offline

#818 2013-04-22 19:16:08

TeoBigusGeekus
#! Die Hard
From: /Greece/Kastoria
Registered: 2012-04-28
Posts: 963

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

Weather.com has changed everything again.
I'm working on it...


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

#819 2013-04-22 19:29:06

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

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

They must have "TeoBigusGeekus" weather radar that detects number of calls from your scripts and changes at certain levels just to keep you on your toes.  Those little  ]:D 's


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

#820 2013-04-22 20:04:11

TeoBigusGeekus
#! Die Hard
From: /Greece/Kastoria
Registered: 2012-04-28
Posts: 963

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

Sector11 wrote:

They must have "TeoBigusGeekus" weather radar that detects number of calls from your scripts and changes at certain levels just to keep you on your toes.  Those little  ]:D 's

...and what a mess they've made this time...  mad


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

#821 2013-04-22 20:05:43

VastOne
#! Ranger
From: V-Ger
Registered: 2011-04-26
Posts: 10,165
Website

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

^ Sorry to hear that Teo, should you need any help please let me know


VSIDO | Words That Build Or Destroy

I dev VSIDO

Offline

#822 2013-04-22 20:21:19

TeoBigusGeekus
#! Die Hard
From: /Greece/Kastoria
Registered: 2012-04-28
Posts: 963

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

VastOne wrote:

^ Sorry to hear that Teo, should you need any help please let me know

Thank you very much VastOne, I appreciate it.
This time they've completely changed their layout and they've merged their Right-Now page with the Today-Tonight one.
This means that the script will now need to load only 2 pages instead of 3 - as long as I get there...  wink

Patience is all I ask.


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

#823 2013-04-23 20:23:33

TeoBigusGeekus
#! Die Hard
From: /Greece/Kastoria
Registered: 2012-04-28
Posts: 963

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

USA script:

#!/bin/bash

#put your 10 day weather.com address here
#address10="http://www.weather.com/weather/tenday/Los+Angeles+CA+USCA0638:1:US"
address10="http://www.weather.com/weather/tenday/Chantilly+VA+20151:4:US"

addr_today=$(echo $address10|sed 's/tenday/today/')

kill -STOP $(pidof conky)
killall wget

wget --user-agent="Firefox" -O $HOME/Conky_WeatherCom/Today/raw_td $addr_today
wget --user-agent="Firefox" -O $HOME/Conky_WeatherCom/10days/raw_10 $address10

rm $HOME/Conky_WeatherCom/10days/10days_OK

if [[ -s $HOME/Conky_WeatherCom/Today/raw_td ]]; then
	#############################
	# Right now, Today, Tonight #
	#############################
	grep Updated $HOME/Conky_WeatherCom/Today/raw_td > $HOME/Conky_WeatherCom/updated
	sed -i -e '/Right Now/,/Close Weather Details/!d' -e '/wx-social/d' $HOME/Conky_WeatherCom/Today/raw_td
	sed -i '/\/wxicon\/\|&deg;\|wx-phrase\|wx-label\|"wx-data"\|wx-wind-label\|wx-text\|in$\|am\|pm\|wx-moonphase-label/!d' $HOME/Conky_WeatherCom/Today/raw_td
	sed -i -e 's/\r//g' -e 's/^.*\/wxicon\/120\///g' -e 's/\.png.*$/\.png/g' -e 's/^.*fahrenheit">//g' -e 's/^.*temperature">//g' $HOME/Conky_WeatherCom/Today/raw_td 
	sed -i -e 's/^.*wx-label">//g' -e 's/<\/h6>.*$//g' -e '/wx-data">$/d' -e 's/^.*wx-data">//g' -e 's/^.*wx-text">//g' $HOME/Conky_WeatherCom/Today/raw_td
	sed -i -e '/barometric-pressure\|wx-astro-title/d' -e 's/^.*wx-moonphase-label">//g' -e 's/^.*wx-wind-label">//g' $HOME/Conky_WeatherCom/Today/raw_td
	sed -i -e 's/^.*wx-phrase ">//g' -e 's/^.*<dd>//g' -e 's/<.*&deg;.*$//g' -e "s/<span class=.*'>//g" -e 's/<span class=.*">//g' $HOME/Conky_WeatherCom/Today/raw_td
	sed -i -e 's/^<\/span>//g' -e 's/<\/span>$//g' -e 's/<\/div>$//g' -e 's/<\/p>$//g' -e 's/<\/dd>$//g' -e 's/<\/span>$//g' -e 's/&deg;$//g' $HOME/Conky_WeatherCom/Today/raw_td

	image=$(sed -n 1p $HOME/Conky_WeatherCom/Today/raw_td)
    cp $HOME/Conky_WeatherCom/weather_com_images/$image $HOME/Conky_WeatherCom/now.png
    
    image=$(sed -n 2p $HOME/Conky_WeatherCom/Today/raw_td)
    cp $HOME/Conky_WeatherCom/weather_com_images/$image $HOME/Conky_WeatherCom/TD.png

	image=$(sed -n 3p $HOME/Conky_WeatherCom/Today/raw_td)
    cp $HOME/Conky_WeatherCom/weather_com_images/$image $HOME/Conky_WeatherCom/TN.png
fi

if [[ -s $HOME/Conky_WeatherCom/10days/raw_10 ]]; then
	#############
	#  10 days  #
	#############
	grep Updated $HOME/Conky_WeatherCom/10days/raw_10 >> $HOME/Conky_WeatherCom/updated
	sed -i '/"wx-daypart"/,/Print 10 Day Forecast/!d' $HOME/Conky_WeatherCom/10days/raw_10
	sed -i -e '/^[ \t]*$/d' -e 's/\r//g' -e '/^$/d' -e 's/^[ \t]*//g' -e '/Average\|Record/d' $HOME/Conky_WeatherCom/10days/raw_10
	sed -i -e 's/^.*wxicon\/70\///g' -e 's/\.png.*$/\.png/g' $HOME/Conky_WeatherCom/10days/raw_10
	sed -i -e 's/^.*"wx-temp"> \|"wx-temp-alt"> \|"wx-phrase">\|wx-severe">\|<dt>\|<dd>\|<h3>\|<p class=//g' $HOME/Conky_WeatherCom/10days/raw_10
	sed -i -e 's/<sup>&deg;.*$//g' -e 's/<\/p>\|<\/dd>.*$//g' -e 's/<span class=.*$//g' -e '/<\|>\|^$/d' -e 's/ at / /g' $HOME/Conky_WeatherCom/10days/raw_10
	sed -i 's/ mph/mph/g' $HOME/Conky_WeatherCom/10days/raw_10
	
	for (( i=2; i<=65; i+=7 ))
	    do
	        image=$(sed -n ${i}p $HOME/Conky_WeatherCom/10days/raw_10)
	        cp $HOME/Conky_WeatherCom/weather_com_images/$image $HOME/Conky_WeatherCom/10_${i}.png
	    done
fi

line_count=$(cat $HOME/Conky_WeatherCom/10days/raw_10|wc -l)
if [[ $line_count == 70 ]]; then
	touch $HOME/Conky_WeatherCom/10days/10days_OK
fi

if [[ -s $HOME/Conky_WeatherCom/updated ]]; then
	##################
	#  Update times  #
	##################
	sed -i -e 's/^.*last-updated">//g' -e 's/^.*Updated: //g' -e 's/<.*$//g' $HOME/Conky_WeatherCom/updated
fi

kill -CONT $(pidof conky)

USA conkyrc:

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager
own_window_colour brown

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# fiddle with window
use_spacer right
use_xft yes

# Update interval in seconds
update_interval 3

# Minimum size of text area
minimum_size 355 500
maximum_width 355

override_utf8_locale yes

# Draw shades?
draw_shades yes

# Text stuff
draw_outline yes # amplifies text if yes
draw_borders no
#font freesans -12
xftfont Arial:size=9
uppercase no # set to yes if you want all text to be in uppercase

# Stippled borders?
stippled_borders 3

# border margins
border_inner_margin 9
border_outer_margin 0

# border width
border_width 10

# Default colors and also border colors, grey90 == #e5e5e5
default_color cbcbcb


# Text alignment, other possible values are commented
alignment top_left
#alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
gap_x 10
gap_y 30

imlib_cache_size 0
text_buffer_size 2048
# stuff after 'TEXT' will be formatted on screen

TEXT
${texeci 600 bash $HOME/Conky_WeatherCom/weath_com}${font Arial:size=12}${color ffe595}RIGHT NOW${font}(Upd: ${execpi 600 sed -n '1p' $HOME/Conky_WeatherCom/updated}) ${hr 2}
${font Arial:size=10}${execpi 600 sed -n '8p' $HOME/Conky_WeatherCom/Today/raw_td}${font}${goto 200}${color ffe595}TEMP: $color${alignr}${execpi 600 sed -n '4p' $HOME/Conky_WeatherCom/Today/raw_td}°F (${execpi 600 sed -n '5p' $HOME/Conky_WeatherCom/Today/raw_td}°F)${image $HOME/Conky_WeatherCom/now.png -p 0,30 -s 120x120}
${goto 200}${color ffe595}PAST 24-hr PRECIP: $color${alignr}${execpi 600 sed -n '12p' $HOME/Conky_WeatherCom/Today/raw_td}
${goto 200}${color ffe595}WIND: $color${alignr}${execpi 600 sed -n '18p' $HOME/Conky_WeatherCom/Today/raw_td}
${goto 200}${color ffe595}HUMIDITY: $color${alignr}${execpi 600 sed -n '24p' $HOME/Conky_WeatherCom/Today/raw_td}°F
${goto 200}${color ffe595}UV INDEX: $color${alignr}${execpi 600 sed -n '30p' $HOME/Conky_WeatherCom/Today/raw_td}
${goto 200}${color ffe595}PRESSURE: $color${alignr}${execpi 600 sed -n '40p' $HOME/Conky_WeatherCom/Today/raw_td}
${goto 200}${color ffe595}DEW POINT: $color${alignr}${execpi 600 sed -n '42p' $HOME/Conky_WeatherCom/Today/raw_td}°F
${goto 200}${color ffe595}VISIBILITY: $color${alignr}${execpi 600 sed -n '44p' $HOME/Conky_WeatherCom/Today/raw_td}
${goto 200}${color ffe595}SUN: $color${alignr}${execpi 600 sed -n '45p' $HOME/Conky_WeatherCom/Today/raw_td}/${execpi 600 sed -n '46p' $HOME/Conky_WeatherCom/Today/raw_td}
${goto 200}${color ffe595}MOON: $color${alignr}${execpi 600 sed -n '47p' $HOME/Conky_WeatherCom/Today/raw_td}/${execpi 600 sed -n '48p' $HOME/Conky_WeatherCom/Today/raw_td}
${goto 200}${color ffe595}MOONPHASE: $color${alignr}${execpi 600 sed -n '49p' $HOME/Conky_WeatherCom/Today/raw_td}
${color ffe595}NEXT 6h: $color${execpi 600 sed -n '34p' $HOME/Conky_WeatherCom/Today/raw_td|cut -c1-50}
${execpi 600 sed -n '34p' $HOME/Conky_WeatherCom/Today/raw_td|cut -c51-110}

${font Arial:size=12}${color ffe595}TODAY - TONIGHT ${font}(Upd: ${execpi 600 sed -n '1p' $HOME/Conky_WeatherCom/updated}) ${hr 2}
${font Arial:size=11}${color ffe595}${goto 75}Today${goto 240}Tonight${image $HOME/Conky_WeatherCom/TD.png -p 25,240 -s 100x100}${image $HOME/Conky_WeatherCom/TN.png -p 190,240 -s 100x100}${font}${color}


${goto 155}${execpi 600 sed -n '6p' $HOME/Conky_WeatherCom/Today/raw_td}°F${goto 320}${execpi 600 sed -n '7p' $HOME/Conky_WeatherCom/Today/raw_td}°F



${execpi 600 sed -n '9p' $HOME/Conky_WeatherCom/Today/raw_td}${goto 200}${execpi 600 sed -n '10p' $HOME/Conky_WeatherCom/Today/raw_td}
${color ffe595}${execpi 600 sed -n '13p' $HOME/Conky_WeatherCom/Today/raw_td|tr 'a-z' 'A-Z'} ${color}${execpi 600 sed -n '14p' $HOME/Conky_WeatherCom/Today/raw_td}${goto 200}${color ffe595}${execpi 600 sed -n '15p' $HOME/Conky_WeatherCom/Today/raw_td|tr 'a-z' 'A-Z'} ${color}${execpi 600 sed -n '16p' $HOME/Conky_WeatherCom/Today/raw_td}
${color ffe595}${execpi 600 sed -n '19p' $HOME/Conky_WeatherCom/Today/raw_td|tr 'a-z' 'A-Z'} ${color}${execpi 600 sed -n '20p' $HOME/Conky_WeatherCom/Today/raw_td}${goto 200}${color ffe595}WIND ${color}${execpi 600 sed -n '22p' $HOME/Conky_WeatherCom/Today/raw_td}
${color ffe595}${execpi 600 sed -n '25p' $HOME/Conky_WeatherCom/Today/raw_td|tr 'a-z' 'A-Z'} ${color}${execpi 600 sed -n '26p' $HOME/Conky_WeatherCom/Today/raw_td}${goto 200}${color ffe595}HUMIDITY ${color}${execpi 600 sed -n '28p' $HOME/Conky_WeatherCom/Today/raw_td}
${color ffe595}${execpi 600 sed -n '31p' $HOME/Conky_WeatherCom/Today/raw_td|tr 'a-z' 'A-Z'} ${color}${execpi 600 sed -n '32p' $HOME/Conky_WeatherCom/Today/raw_td}${goto 200}${color ffe595}UV-INDEX ${color}-
${execpi 600 sed -n '36p' $HOME/Conky_WeatherCom/Today/raw_td|cut -c1-30}${goto 200}${execpi 600 sed -n '38p' $HOME/Conky_WeatherCom/Today/raw_td|cut -c1-30}
${execpi 600 sed -n '36p' $HOME/Conky_WeatherCom/Today/raw_td|cut -c31-60}${goto 200}${execpi 600 sed -n '38p' $HOME/Conky_WeatherCom/Today/raw_td|cut -c31-60}
${execpi 600 sed -n '36p' $HOME/Conky_WeatherCom/Today/raw_td|cut -c61-90}${goto 200}${execpi 600 sed -n '38p' $HOME/Conky_WeatherCom/Today/raw_td|cut -c61-90}

${font Arial:size=12}${color ffe595}10 DAYS FORECAST ${font}(Upd: ${execpi 600 sed -n '2p' $HOME/Conky_WeatherCom/updated})${hr 2}
${font Arial:size=11}${color ffe595}${goto 65}${execpi 600 sed -n '1p' $HOME/Conky_WeatherCom/10days/raw_10}${goto 175}${execpi 600 sed -n '8p' $HOME/Conky_WeatherCom/10days/raw_10}${goto 285}${execpi 600 sed -n '15p' $HOME/Conky_WeatherCom/10days/raw_10}${color}${image $HOME/Conky_WeatherCom/10_2.png -p 20,485 -s 70x70}${image $HOME/Conky_WeatherCom/10_9.png -p 130,485 -s 70x70}${image $HOME/Conky_WeatherCom/10_16.png -p 240,485 -s 70x70}

${goto 115}${execpi 600 sed -n '3p' $HOME/Conky_WeatherCom/10days/raw_10}${goto 225}${execpi 600 sed -n '10p' $HOME/Conky_WeatherCom/10days/raw_10}${goto 335}${execpi 600 sed -n '17p' $HOME/Conky_WeatherCom/10days/raw_10}${font}
${goto 116}${execpi 600 sed -n '4p' $HOME/Conky_WeatherCom/10days/raw_10}${goto 226}${execpi 600 sed -n '11p' $HOME/Conky_WeatherCom/10days/raw_10}${goto 336}${execpi 600 sed -n '18p' $HOME/Conky_WeatherCom/10days/raw_10}

${execpi 600 sed -n '5p' $HOME/Conky_WeatherCom/10days/raw_10|cut -c1-18}${goto 135}${execpi 600 sed -n '12p' $HOME/Conky_WeatherCom/10days/raw_10|cut -c1-18}${goto 260}${execpi 600 sed -n '19p' $HOME/Conky_WeatherCom/10days/raw_10|cut -c1-18}
${color ffe595}PRECIP:${color}${execpi 600 sed -n '6p' $HOME/Conky_WeatherCom/10days/raw_10}${goto 135}${color ffe595}PRECIP:${color}${execpi 600 sed -n '13p' $HOME/Conky_WeatherCom/10days/raw_10}${goto 260}${color ffe595}PRECIP:${color}${execpi 600 sed -n '20p' $HOME/Conky_WeatherCom/10days/raw_10}
${color ffe595}WIND:${color}${execpi 600 sed -n '7p' $HOME/Conky_WeatherCom/10days/raw_10}${goto 135}${color ffe595}WIND:${color}${execpi 600 sed -n '14p' $HOME/Conky_WeatherCom/10days/raw_10}${goto 260}${color ffe595}WIND:${color}${execpi 600 sed -n '21p' $HOME/Conky_WeatherCom/10days/raw_10}
${color ffe595}${hr 1}
${font Arial:size=11}${goto 65}${execpi 600 sed -n '22p' $HOME/Conky_WeatherCom/10days/raw_10}${goto 175}${execpi 600 sed -n '29p' $HOME/Conky_WeatherCom/10days/raw_10}${goto 285}${execpi 600 sed -n '36p' $HOME/Conky_WeatherCom/10days/raw_10}${color}${image $HOME/Conky_WeatherCom/10_23.png -p 20,625 -s 70x70}${image $HOME/Conky_WeatherCom/10_30.png -p 130,625 -s 70x70}${image $HOME/Conky_WeatherCom/10_37.png -p 240,625 -s 70x70}

${goto 115}${execpi 600 sed -n '24p' $HOME/Conky_WeatherCom/10days/raw_10}${goto 225}${execpi 600 sed -n '31p' $HOME/Conky_WeatherCom/10days/raw_10}${goto 335}${execpi 600 sed -n '38p' $HOME/Conky_WeatherCom/10days/raw_10}${font}
${goto 116}${execpi 600 sed -n '25p' $HOME/Conky_WeatherCom/10days/raw_10}${goto 226}${execpi 600 sed -n '32p' $HOME/Conky_WeatherCom/10days/raw_10}${goto 336}${execpi 600 sed -n '39p' $HOME/Conky_WeatherCom/10days/raw_10}

${execpi 600 sed -n '26p' $HOME/Conky_WeatherCom/10days/raw_10|cut -c1-18}${goto 135}${execpi 600 sed -n '33p' $HOME/Conky_WeatherCom/10days/raw_10|cut -c1-18}${goto 260}${execpi 600 sed -n '40p' $HOME/Conky_WeatherCom/10days/raw_10|cut -c1-18}
${color ffe595}PRECIP:${color}${execpi 600 sed -n '27p' $HOME/Conky_WeatherCom/10days/raw_10}${goto 135}${color ffe595}PRECIP:${color}${execpi 600 sed -n '34p' $HOME/Conky_WeatherCom/10days/raw_10}${goto 260}${color ffe595}PRECIP:${color}${execpi 600 sed -n '41p' $HOME/Conky_WeatherCom/10days/raw_10}
${color ffe595}WIND:${color}${execpi 600 sed -n '28p' $HOME/Conky_WeatherCom/10days/raw_10}${goto 135}${color ffe595}WIND:${color}${execpi 600 sed -n '35p' $HOME/Conky_WeatherCom/10days/raw_10}${goto 260}${color ffe595}WIND:${color}${execpi 600 sed -n '42p' $HOME/Conky_WeatherCom/10days/raw_10}
${color ffe595}${hr 1}
${font Arial:size=11}${goto 50}${execpi 600 sed -n '43p' $HOME/Conky_WeatherCom/10days/raw_10}${goto 135}${execpi 600 sed -n '50p' $HOME/Conky_WeatherCom/10days/raw_10}${goto 220}${execpi 600 sed -n '57p' $HOME/Conky_WeatherCom/10days/raw_10}${if_existing /home/teo/Conky_WeatherCom/10days/10days_OK}${goto 305}${execpi 600 sed -n '64p' $HOME/Conky_WeatherCom/10days/raw_10}${endif}${color}${image $HOME/Conky_WeatherCom/10_44.png -p 0,765 -s 55x55}${image $HOME/Conky_WeatherCom/10_51.png -p 85,765 -s 55x55}${image $HOME/Conky_WeatherCom/10_58.png -p 170,765 -s 55x55}${if_existing /home/teo/Conky_WeatherCom/10days/10days_OK}${image $HOME/Conky_WeatherCom/10_65.png -p 255,765 -s 55x55}${endif}${font}

${goto 75}${execpi 600 sed -n '45p' $HOME/Conky_WeatherCom/10days/raw_10}${goto 160}${execpi 600 sed -n '52p' $HOME/Conky_WeatherCom/10days/raw_10}${goto 245}${execpi 600 sed -n '59p' $HOME/Conky_WeatherCom/10days/raw_10}${if_existing /home/teo/Conky_WeatherCom/10days/10days_OK}${goto 330}${execpi 600 sed -n '66p' $HOME/Conky_WeatherCom/10days/raw_10}${endif}
${goto 76}${execpi 600 sed -n '45p' $HOME/Conky_WeatherCom/10days/raw_10}${goto 160}${execpi 600 sed -n '53p' $HOME/Conky_WeatherCom/10days/raw_10}${goto 245}${execpi 600 sed -n '60p' $HOME/Conky_WeatherCom/10days/raw_10}${if_existing /home/teo/Conky_WeatherCom/10days/10days_OK}${goto 330}${execpi 600 sed -n '67p' $HOME/Conky_WeatherCom/10days/raw_10}${endif}

${execpi 600 sed -n '47p' $HOME/Conky_WeatherCom/10days/raw_10|cut -c1-12}${goto 95}${execpi 600 sed -n '54p' $HOME/Conky_WeatherCom/10days/raw_10|cut -c1-12}${goto 180}${execpi 600 sed -n '61p' $HOME/Conky_WeatherCom/10days/raw_10|cut -c1-12}${if_existing /home/teo/Conky_WeatherCom/10days/10days_OK}${goto 265}${execpi 600 sed -n '68p' $HOME/Conky_WeatherCom/10days/raw_10|cut -c1-12}${endif}
${execpi 600 sed -n '47p' $HOME/Conky_WeatherCom/10days/raw_10|cut -c13-24}${goto 95}${execpi 600 sed -n '54p' $HOME/Conky_WeatherCom/10days/raw_10|cut -c13-24}${goto 180}${execpi 600 sed -n '61p' $HOME/Conky_WeatherCom/10days/raw_10|cut -c13-24}${if_existing /home/teo/Conky_WeatherCom/10days/10days_OK}${goto 265}${execpi 600 sed -n '68p' $HOME/Conky_WeatherCom/10days/raw_10|cut -c13-24}${endif}
${color ffe595}PR:${color}${execpi 600 sed -n '48p' $HOME/Conky_WeatherCom/10days/raw_10}${goto 95}${color ffe595}PR:${color}${execpi 600 sed -n '55p' $HOME/Conky_WeatherCom/10days/raw_10}${goto 180}${color ffe595}PR:${color}${execpi 600 sed -n '62p' $HOME/Conky_WeatherCom/10days/raw_10}${if_existing /home/teo/Conky_WeatherCom/10days/10days_OK}${goto 265}${color ffe595}PR:${color}${execpi 600 sed -n '69p' $HOME/Conky_WeatherCom/10days/raw_10}${endif}
${color ffe595}W:${color}${execpi 600 sed -n '49p' $HOME/Conky_WeatherCom/10days/raw_10}${goto 95}${color ffe595}W:${color}${execpi 600 sed -n '56p' $HOME/Conky_WeatherCom/10days/raw_10}${goto 180}${color ffe595}W:${color}${execpi 600 sed -n '63p' $HOME/Conky_WeatherCom/10days/raw_10}${if_existing /home/teo/Conky_WeatherCom/10days/10days_OK}${goto 265}${color ffe595}W:${color}${execpi 600 sed -n '70p' $HOME/Conky_WeatherCom/10days/raw_10}${endif}

International script:

#!/bin/bash

#put your 10 day weather.com address here
#address10="http://www.weather.com/weather/tenday/Kastoria+GRXX0292:1:GR"
address10="http://www.weather.com/weather/tenday/Vancouver+CAXX0518:1:CA"

addr_today=$(echo $address10|sed 's/tenday/today/')

kill -STOP $(pidof conky)
killall wget

wget --user-agent="Firefox" --load-cookies $HOME/Conky_WeatherCom_metric/cookie -O $HOME/Conky_WeatherCom_metric/Today/raw_td $addr_today
wget --user-agent="Firefox" --load-cookies $HOME/Conky_WeatherCom_metric/cookie -O $HOME/Conky_WeatherCom_metric/10days/raw_10 $address10

rm $HOME/Conky_WeatherCom_metric/10days/10days_OK

if [[ -s $HOME/Conky_WeatherCom_metric/Today/raw_td ]]; then
	#############################
	# Right now, Today, Tonight #
	#############################
	grep Updated $HOME/Conky_WeatherCom_metric/Today/raw_td > $HOME/Conky_WeatherCom_metric/updated
	sed -i -e '/Right Now$/,/Close Weather Details/!d' -e '/wx-social/d' $HOME/Conky_WeatherCom_metric/Today/raw_td
	sed -i '/\/wxicon\/\|&deg;\|wx-phrase\|wx-label\|"wx-data"\|wx-wind-label\|wx-text\|mb$\|am\|pm\|wx-moonphase-label/!d' $HOME/Conky_WeatherCom_metric/Today/raw_td
	sed -i -e 's/\r//g' -e 's/^.*\/wxicon\/120\///g' -e 's/\.png.*$/\.png/g' -e 's/^.*celsius">//g' -e 's/^.*temperature">//g' $HOME/Conky_WeatherCom_metric/Today/raw_td 
	sed -i -e 's/^.*wx-label">//g' -e 's/<\/h6>.*$//g' -e '/wx-data">$/d' -e 's/^.*wx-data">//g' -e 's/^.*wx-text">//g' $HOME/Conky_WeatherCom_metric/Today/raw_td
	sed -i -e '/barometric-pressure\|wx-astro-title/d' -e 's/^.*wx-moonphase-label">//g' -e 's/^.*wx-wind-label">//g' $HOME/Conky_WeatherCom_metric/Today/raw_td
	sed -i -e 's/^.*wx-phrase ">//g' -e 's/^.*<dd>//g' -e 's/<.*&deg;.*$//g' -e "s/<span class=.*'>//g" -e 's/<span class=.*">//g' $HOME/Conky_WeatherCom_metric/Today/raw_td
	sed -i -e 's/^<\/span>//g' -e 's/<\/span>$//g' -e 's/<\/div>$//g' -e 's/<\/p>$//g' -e 's/<\/dd>$//g' -e 's/<\/span>$//g' -e 's/&deg;$//g' $HOME/Conky_WeatherCom_metric/Today/raw_td

	image=$(sed -n 1p $HOME/Conky_WeatherCom_metric/Today/raw_td)
    cp $HOME/Conky_WeatherCom_metric/weather_com_images/$image $HOME/Conky_WeatherCom_metric/now.png
    
    image=$(sed -n 2p $HOME/Conky_WeatherCom_metric/Today/raw_td)
    cp $HOME/Conky_WeatherCom_metric/weather_com_images/$image $HOME/Conky_WeatherCom_metric/TD.png

	image=$(sed -n 3p $HOME/Conky_WeatherCom_metric/Today/raw_td)
    cp $HOME/Conky_WeatherCom_metric/weather_com_images/$image $HOME/Conky_WeatherCom_metric/TN.png
fi

if [[ -s $HOME/Conky_WeatherCom_metric/10days/raw_10 ]]; then
	#############
	#  10 days  #
	#############
	grep Updated $HOME/Conky_WeatherCom_metric/10days/raw_10 >> $HOME/Conky_WeatherCom_metric/updated
	observed_high=$(grep "Observed High" $HOME/Conky_WeatherCom_metric/10days/raw_10|wc -l)
	sed -i '/"wx-daypart"/,/wx-planmyday10 wx-plan-day/!d' $HOME/Conky_WeatherCom_metric/10days/raw_10
	sed -i -e '/^[ \t]*$/d' -e 's/\r//g' -e '/^$/d' -e 's/^[ \t]*//g' $HOME/Conky_WeatherCom_metric/10days/raw_10
	sed -i -e 's/^.*wxicon\/70\///g' -e 's/\.png.*$/\.png/g' $HOME/Conky_WeatherCom_metric/10days/raw_10
	sed -i -e 's/^.*"wx-temp"> \|"wx-temp-alt"> \|"wx-phrase">\|<dt>\|<dd>\|<h3>\|<p class=//g' $HOME/Conky_WeatherCom_metric/10days/raw_10
	sed -i -e 's/<sup>&deg;.*$//g' -e 's/<\/p>\|<\/dd>.*$//g' -e 's/<span class=.*$//g' -e '/<\|>\|^$/d' -e 's/ at / /g' $HOME/Conky_WeatherCom_metric/10days/raw_10
	sed -i 's/ mph/mph/g' $HOME/Conky_WeatherCom_metric/10days/raw_10
	
	line1=$(sed -n 1p $HOME/Conky_WeatherCom_metric/10days/raw_10|sed 's/ *$//')
	if [[ $line1 == Tonight && $observed_high == 0 ]]; then
		sed -i '3s/$/\n-/' $HOME/Conky_WeatherCom_metric/10days/raw_10
	fi
	
	for (( i=2; i<=65; i+=7 ))
	    do
	        image=$(sed -n ${i}p $HOME/Conky_WeatherCom_metric/10days/raw_10)
	        cp $HOME/Conky_WeatherCom_metric/weather_com_images/$image $HOME/Conky_WeatherCom_metric/10_${i}.png
	    done
fi

line_count=$(cat $HOME/Conky_WeatherCom_metric/10days/raw_10|wc -l)
if [[ $line_count == 70 ]]; then
	touch $HOME/Conky_WeatherCom_metric/10days/10days_OK
fi


if [[ -s $HOME/Conky_WeatherCom_metric/updated ]]; then
	##################
	#  Update times  #
	##################
	sed -i -e 's/^.*updated">//g' -e 's/^.*Updated: //g' -e 's/<.*$//g' -e 's/Local\ Time//g' $HOME/Conky_WeatherCom_metric/updated
fi

kill -CONT $(pidof conky)

International conkyrc:

# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager
own_window_colour brown

# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes

# fiddle with window
use_spacer right
use_xft yes

# Update interval in seconds
update_interval 3

# Minimum size of text area
minimum_size 355 500
maximum_width 355

override_utf8_locale yes

# Draw shades?
draw_shades yes

# Text stuff
draw_outline yes # amplifies text if yes
draw_borders no
#font freesans -12
xftfont Arial:size=9
uppercase no # set to yes if you want all text to be in uppercase

# Stippled borders?
stippled_borders 3

# border margins
border_inner_margin 9
border_outer_margin 0

# border width
border_width 10

# Default colors and also border colors, grey90 == #e5e5e5
default_color cbcbcb


# Text alignment, other possible values are commented
alignment top_left
#alignment top_right
#alignment bottom_left
#alignment bottom_right

# Gap between borders of screen and text
gap_x 10
gap_y 30

imlib_cache_size 0
text_buffer_size 2048
# stuff after 'TEXT' will be formatted on screen

TEXT
${texeci 600 bash $HOME/Conky_WeatherCom_metric/weath_com_metric}${font Arial:size=12}${color ffe595}RIGHT NOW${font}(Upd: ${execpi 600 sed -n '1p' $HOME/Conky_WeatherCom_metric/updated}) ${hr 2}
${font Arial:size=10}${execpi 600 sed -n '8p' $HOME/Conky_WeatherCom_metric/Today/raw_td}${font}${goto 200}${color ffe595}TEMP: $color${alignr}${execpi 600 sed -n '4p' $HOME/Conky_WeatherCom_metric/Today/raw_td}°C (${execpi 600 sed -n '5p' $HOME/Conky_WeatherCom_metric/Today/raw_td}°C)${image $HOME/Conky_WeatherCom_metric/now.png -p 0,30 -s 120x120}
${goto 200}${color ffe595}PAST 24-hr PRECIP: $color${alignr}${execpi 600 sed -n '12p' $HOME/Conky_WeatherCom_metric/Today/raw_td}
${goto 200}${color ffe595}WIND: $color${alignr}${execpi 600 sed -n '18p' $HOME/Conky_WeatherCom_metric/Today/raw_td}
${goto 200}${color ffe595}HUMIDITY: $color${alignr}${execpi 600 sed -n '24p' $HOME/Conky_WeatherCom_metric/Today/raw_td}°C
${goto 200}${color ffe595}UV INDEX: $color${alignr}${execpi 600 sed -n '30p' $HOME/Conky_WeatherCom_metric/Today/raw_td}
${goto 200}${color ffe595}PRESSURE: $color${alignr}${execpi 600 sed -n '40p' $HOME/Conky_WeatherCom_metric/Today/raw_td}
${goto 200}${color ffe595}DEW POINT: $color${alignr}${execpi 600 sed -n '42p' $HOME/Conky_WeatherCom_metric/Today/raw_td}°C
${goto 200}${color ffe595}VISIBILITY: $color${alignr}${execpi 600 sed -n '44p' $HOME/Conky_WeatherCom_metric/Today/raw_td}
${goto 200}${color ffe595}SUN: $color${alignr}${execpi 600 sed -n '45p' $HOME/Conky_WeatherCom_metric/Today/raw_td}/${execpi 600 sed -n '46p' $HOME/Conky_WeatherCom_metric/Today/raw_td}
${goto 200}${color ffe595}MOON: $color${alignr}${execpi 600 sed -n '47p' $HOME/Conky_WeatherCom_metric/Today/raw_td}/${execpi 600 sed -n '48p' $HOME/Conky_WeatherCom_metric/Today/raw_td}
${goto 200}${color ffe595}MOONPHASE: $color${alignr}${execpi 600 sed -n '49p' $HOME/Conky_WeatherCom_metric/Today/raw_td}

${font Arial:size=12}${color ffe595}TODAY - TONIGHT ${font}(Upd: ${execpi 600 sed -n '1p' $HOME/Conky_WeatherCom_metric/updated}) ${hr 2}
${font Arial:size=11}${color ffe595}${goto 75}Today${goto 240}Tonight${image $HOME/Conky_WeatherCom_metric/TD.png -p 25,215 -s 100x100}${image $HOME/Conky_WeatherCom_metric/TN.png -p 190,215 -s 100x100}${font}${color}


${goto 155}${execpi 600 sed -n '6p' $HOME/Conky_WeatherCom_metric/Today/raw_td}°C${goto 320}${execpi 600 sed -n '7p' $HOME/Conky_WeatherCom_metric/Today/raw_td}°C



${execpi 600 sed -n '9p' $HOME/Conky_WeatherCom_metric/Today/raw_td}${goto 200}${execpi 600 sed -n '10p' $HOME/Conky_WeatherCom_metric/Today/raw_td}
${color ffe595}${execpi 600 sed -n '13p' $HOME/Conky_WeatherCom_metric/Today/raw_td|tr 'a-z' 'A-Z'} ${color}${execpi 600 sed -n '14p' $HOME/Conky_WeatherCom_metric/Today/raw_td}${goto 200}${color ffe595}${execpi 600 sed -n '15p' $HOME/Conky_WeatherCom_metric/Today/raw_td|tr 'a-z' 'A-Z'} ${color}${execpi 600 sed -n '16p' $HOME/Conky_WeatherCom_metric/Today/raw_td}
${color ffe595}${execpi 600 sed -n '19p' $HOME/Conky_WeatherCom_metric/Today/raw_td|tr 'a-z' 'A-Z'} ${color}${execpi 600 sed -n '20p' $HOME/Conky_WeatherCom_metric/Today/raw_td}${goto 200}${color ffe595}WIND ${color}${execpi 600 sed -n '22p' $HOME/Conky_WeatherCom_metric/Today/raw_td}
${color ffe595}${execpi 600 sed -n '25p' $HOME/Conky_WeatherCom_metric/Today/raw_td|tr 'a-z' 'A-Z'} ${color}${execpi 600 sed -n '26p' $HOME/Conky_WeatherCom_metric/Today/raw_td}${goto 200}${color ffe595}HUMIDITY ${color}${execpi 600 sed -n '28p' $HOME/Conky_WeatherCom_metric/Today/raw_td}
${color ffe595}${execpi 600 sed -n '31p' $HOME/Conky_WeatherCom_metric/Today/raw_td|tr 'a-z' 'A-Z'} ${color}${execpi 600 sed -n '32p' $HOME/Conky_WeatherCom_metric/Today/raw_td}${goto 200}${color ffe595}UV-INDEX ${color}-
${execpi 600 sed -n '36p' $HOME/Conky_WeatherCom_metric/Today/raw_td|cut -c1-30}${goto 200}${execpi 600 sed -n '38p' $HOME/Conky_WeatherCom_metric/Today/raw_td|cut -c1-30}
${execpi 600 sed -n '36p' $HOME/Conky_WeatherCom_metric/Today/raw_td|cut -c31-60}${goto 200}${execpi 600 sed -n '38p' $HOME/Conky_WeatherCom_metric/Today/raw_td|cut -c31-60}
${execpi 600 sed -n '36p' $HOME/Conky_WeatherCom_metric/Today/raw_td|cut -c61-90}${goto 200}${execpi 600 sed -n '38p' $HOME/Conky_WeatherCom_metric/Today/raw_td|cut -c61-90}

${font Arial:size=12}${color ffe595}10 DAYS FORECAST ${font}(Upd: ${execpi 600 sed -n '2p' $HOME/Conky_WeatherCom_metric/updated})${hr 2}
${font Arial:size=11}${color ffe595}${goto 65}${execpi 600 sed -n '1p' $HOME/Conky_WeatherCom_metric/10days/raw_10}${goto 175}${execpi 600 sed -n '8p' $HOME/Conky_WeatherCom_metric/10days/raw_10}${goto 285}${execpi 600 sed -n '15p' $HOME/Conky_WeatherCom_metric/10days/raw_10}${color}${image $HOME/Conky_WeatherCom_metric/10_2.png -p 20,460 -s 70x70}${image $HOME/Conky_WeatherCom_metric/10_9.png -p 130,460 -s 70x70}${image $HOME/Conky_WeatherCom_metric/10_16.png -p 240,460 -s 70x70}

${goto 115}${execpi 600 sed -n '3p' $HOME/Conky_WeatherCom_metric/10days/raw_10}${goto 225}${execpi 600 sed -n '10p' $HOME/Conky_WeatherCom_metric/10days/raw_10}${goto 335}${execpi 600 sed -n '17p' $HOME/Conky_WeatherCom_metric/10days/raw_10}${font}
${goto 116}${execpi 600 sed -n '4p' $HOME/Conky_WeatherCom_metric/10days/raw_10}${goto 226}${execpi 600 sed -n '11p' $HOME/Conky_WeatherCom_metric/10days/raw_10}${goto 336}${execpi 600 sed -n '18p' $HOME/Conky_WeatherCom_metric/10days/raw_10}

${execpi 600 sed -n '5p' $HOME/Conky_WeatherCom_metric/10days/raw_10|cut -c1-18}${goto 135}${execpi 600 sed -n '12p' $HOME/Conky_WeatherCom_metric/10days/raw_10|cut -c1-18}${goto 260}${execpi 600 sed -n '19p' $HOME/Conky_WeatherCom_metric/10days/raw_10|cut -c1-18}
${color ffe595}PRECIP:${color}${execpi 600 sed -n '6p' $HOME/Conky_WeatherCom_metric/10days/raw_10}${goto 135}${color ffe595}PRECIP:${color}${execpi 600 sed -n '13p' $HOME/Conky_WeatherCom_metric/10days/raw_10}${goto 260}${color ffe595}PRECIP:${color}${execpi 600 sed -n '20p' $HOME/Conky_WeatherCom_metric/10days/raw_10}
${color ffe595}WIND:${color}${execpi 600 sed -n '7p' $HOME/Conky_WeatherCom_metric/10days/raw_10}${goto 135}${color ffe595}WIND:${color}${execpi 600 sed -n '14p' $HOME/Conky_WeatherCom_metric/10days/raw_10}${goto 260}${color ffe595}WIND:${color}${execpi 600 sed -n '21p' $HOME/Conky_WeatherCom_metric/10days/raw_10}
${color ffe595}${hr 1}
${font Arial:size=11}${goto 65}${execpi 600 sed -n '22p' $HOME/Conky_WeatherCom_metric/10days/raw_10}${goto 175}${execpi 600 sed -n '29p' $HOME/Conky_WeatherCom_metric/10days/raw_10}${goto 285}${execpi 600 sed -n '36p' $HOME/Conky_WeatherCom_metric/10days/raw_10}${color}${image $HOME/Conky_WeatherCom_metric/10_23.png -p 20,600 -s 70x70}${image $HOME/Conky_WeatherCom_metric/10_30.png -p 130,600 -s 70x70}${image $HOME/Conky_WeatherCom_metric/10_37.png -p 240,600 -s 70x70}

${goto 115}${execpi 600 sed -n '24p' $HOME/Conky_WeatherCom_metric/10days/raw_10}${goto 225}${execpi 600 sed -n '31p' $HOME/Conky_WeatherCom_metric/10days/raw_10}${goto 335}${execpi 600 sed -n '38p' $HOME/Conky_WeatherCom_metric/10days/raw_10}${font}
${goto 116}${execpi 600 sed -n '25p' $HOME/Conky_WeatherCom_metric/10days/raw_10}${goto 226}${execpi 600 sed -n '32p' $HOME/Conky_WeatherCom_metric/10days/raw_10}${goto 336}${execpi 600 sed -n '39p' $HOME/Conky_WeatherCom_metric/10days/raw_10}

${execpi 600 sed -n '26p' $HOME/Conky_WeatherCom_metric/10days/raw_10|cut -c1-18}${goto 135}${execpi 600 sed -n '33p' $HOME/Conky_WeatherCom_metric/10days/raw_10|cut -c1-18}${goto 260}${execpi 600 sed -n '40p' $HOME/Conky_WeatherCom_metric/10days/raw_10|cut -c1-18}
${color ffe595}PRECIP:${color}${execpi 600 sed -n '27p' $HOME/Conky_WeatherCom_metric/10days/raw_10}${goto 135}${color ffe595}PRECIP:${color}${execpi 600 sed -n '34p' $HOME/Conky_WeatherCom_metric/10days/raw_10}${goto 260}${color ffe595}PRECIP:${color}${execpi 600 sed -n '41p' $HOME/Conky_WeatherCom_metric/10days/raw_10}
${color ffe595}WIND:${color}${execpi 600 sed -n '28p' $HOME/Conky_WeatherCom_metric/10days/raw_10}${goto 135}${color ffe595}WIND:${color}${execpi 600 sed -n '35p' $HOME/Conky_WeatherCom_metric/10days/raw_10}${goto 260}${color ffe595}WIND:${color}${execpi 600 sed -n '42p' $HOME/Conky_WeatherCom_metric/10days/raw_10}
${color ffe595}${hr 1}
${font Arial:size=11}${goto 50}${execpi 600 sed -n '43p' $HOME/Conky_WeatherCom_metric/10days/raw_10}${goto 135}${execpi 600 sed -n '50p' $HOME/Conky_WeatherCom_metric/10days/raw_10}${goto 220}${execpi 600 sed -n '57p' $HOME/Conky_WeatherCom_metric/10days/raw_10}${if_existing /home/teo/Conky_WeatherCom_metric/10days/10days_OK}${goto 305}${execpi 600 sed -n '64p' $HOME/Conky_WeatherCom_metric/10days/raw_10}${endif}${color}${image $HOME/Conky_WeatherCom_metric/10_44.png -p 0,740 -s 55x55}${image $HOME/Conky_WeatherCom_metric/10_51.png -p 85,740 -s 55x55}${image $HOME/Conky_WeatherCom_metric/10_58.png -p 170,740 -s 55x55}${if_existing /home/teo/Conky_WeatherCom_metric/10days/10days_OK}${image $HOME/Conky_WeatherCom_metric/10_65.png -p 255,740 -s 55x55}${endif}${font}

${goto 75}${execpi 600 sed -n '45p' $HOME/Conky_WeatherCom_metric/10days/raw_10}${goto 160}${execpi 600 sed -n '52p' $HOME/Conky_WeatherCom_metric/10days/raw_10}${goto 245}${execpi 600 sed -n '59p' $HOME/Conky_WeatherCom_metric/10days/raw_10}${if_existing /home/teo/Conky_WeatherCom_metric/10days/10days_OK}${goto 330}${execpi 600 sed -n '66p' $HOME/Conky_WeatherCom_metric/10days/raw_10}${endif}
${goto 76}${execpi 600 sed -n '45p' $HOME/Conky_WeatherCom_metric/10days/raw_10}${goto 160}${execpi 600 sed -n '53p' $HOME/Conky_WeatherCom_metric/10days/raw_10}${goto 245}${execpi 600 sed -n '60p' $HOME/Conky_WeatherCom_metric/10days/raw_10}${if_existing /home/teo/Conky_WeatherCom_metric/10days/10days_OK}${goto 330}${execpi 600 sed -n '67p' $HOME/Conky_WeatherCom_metric/10days/raw_10}${endif}

${execpi 600 sed -n '47p' $HOME/Conky_WeatherCom_metric/10days/raw_10|cut -c1-12}${goto 95}${execpi 600 sed -n '54p' $HOME/Conky_WeatherCom_metric/10days/raw_10|cut -c1-12}${goto 180}${execpi 600 sed -n '61p' $HOME/Conky_WeatherCom_metric/10days/raw_10|cut -c1-12}${if_existing /home/teo/Conky_WeatherCom_metric/10days/10days_OK}${goto 265}${execpi 600 sed -n '68p' $HOME/Conky_WeatherCom_metric/10days/raw_10|cut -c1-12}${endif}
${execpi 600 sed -n '47p' $HOME/Conky_WeatherCom_metric/10days/raw_10|cut -c13-24}${goto 95}${execpi 600 sed -n '54p' $HOME/Conky_WeatherCom_metric/10days/raw_10|cut -c13-24}${goto 180}${execpi 600 sed -n '61p' $HOME/Conky_WeatherCom_metric/10days/raw_10|cut -c13-24}${if_existing /home/teo/Conky_WeatherCom_metric/10days/10days_OK}${goto 265}${execpi 600 sed -n '68p' $HOME/Conky_WeatherCom_metric/10days/raw_10|cut -c13-24}${endif}
${color ffe595}PR:${color}${execpi 600 sed -n '48p' $HOME/Conky_WeatherCom_metric/10days/raw_10}${goto 95}${color ffe595}PR:${color}${execpi 600 sed -n '55p' $HOME/Conky_WeatherCom_metric/10days/raw_10}${goto 180}${color ffe595}PR:${color}${execpi 600 sed -n '62p' $HOME/Conky_WeatherCom_metric/10days/raw_10}${if_existing /home/teo/Conky_WeatherCom_metric/10days/10days_OK}${goto 265}${color ffe595}PR:${color}${execpi 600 sed -n '69p' $HOME/Conky_WeatherCom_metric/10days/raw_10}${endif}
${color ffe595}W:${color}${execpi 600 sed -n '49p' $HOME/Conky_WeatherCom_metric/10days/raw_10}${goto 95}${color ffe595}W:${color}${execpi 600 sed -n '56p' $HOME/Conky_WeatherCom_metric/10days/raw_10}${goto 180}${color ffe595}W:${color}${execpi 600 sed -n '63p' $HOME/Conky_WeatherCom_metric/10days/raw_10}${if_existing /home/teo/Conky_WeatherCom_metric/10days/10days_OK}${goto 265}${color ffe595}W:${color}${execpi 600 sed -n '70p' $HOME/Conky_WeatherCom_metric/10days/raw_10}${endif}

I'll leave them for a couple of days; if there are no complaints, I'll put them in the first page's tarball.
This update has been a good move from weather.com, as the chaos that prevailed in their today-tonight page is now gone.
Furthermore, the right_now page has been merged with the today-tonight page, which means that the script will have to download only 2 pages instead of 3.

Looking forward for any feedback.

IzK3Sfcs.jpg

EDIT: @morfik: Remove these lines from the script

kill -STOP $(pidof conky)
....
kill -CONT $(pidof conky)

The first one pauses conky and the second one resumes it. I've put them there because conky didn't have the time to load all the info before showing up on the monitor.
If you run many conkys, the commands will pause and resume the conky with the lowest pid (and not necessarily the one you want).
Try using conky without them and see how it goes.

Last edited by TeoBigusGeekus (2013-04-24 17:38:49)


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

#824 2013-04-23 20:52:20

Sector11
#!'er to BL'er
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 15,667
Website

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

TeoBigusGeekus wrote:

Looking forward for any feedback.

Consider them being played with.  big_smile


·  ↓   ↓   ↓   ↓   ↓   ↓  ·
BunsenLabs Forums now Open for Registration
·  ↑   ↑   ↑   ↑   ↑   ↑  · BL ModSquad

Offline

Help fund CrunchBang, donate to the project!

#825 2013-04-23 21:39:45

morfik
Member
Registered: 2013-04-21
Posts: 25

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

I commented out:

kill -STOP $(pidof conky)
kill -CONT $(pidof conky)

from both scripts, but this doesn't work as expected.

Conkys are loaded, but sometimes there are no values in one of them. See the following pics:

27677.png 42373.png

As to the #4 script, it looks better, but one day is missing:

28586.png

BTW: where is the moon? Is it the only one entry with value "Waxing Gibbous"? I thought it would be an image or something. smile

Offline

Board footer

Powered by FluxBB

Copyright © 2012 CrunchBang Linux.
Proudly powered by Debian. Hosted by Linode.
Debian is a registered trademark of Software in the Public Interest, Inc.
Server: acrobat

Debian Logo