SEARCH

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

You are not logged in.

#426 2012-09-21 14:01:32

TeoBigusGeekus
#! Junkie
From: /Greece/Kastoria
Registered: 2012-04-28
Posts: 448

Re: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com

ANNOUNCEMENT:

The Accuweather devs came back from their summer holidays full of vigour and programming inspiration, eager to change their USA page once again. Scripts 1b and 1e rebundled - thanks to lwfitz for pointing it out.


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

Be excellent to each other!

#427 2012-09-21 17:10:15

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

Re: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com

TeoBigusGeekus wrote:

ANNOUNCEMENT:

The Accuweather devs came back from their summer holidays full of vigour and programming inspiration, eager to change their USA page once again. Scripts 1b and 1e rebundled - thanks to lwfitz for pointing it out.


YAY it wasnt something I screwed up! Thanks for the quick response buddy.

Offline

#428 2012-09-21 17:12:52

TeoBigusGeekus
#! Junkie
From: /Greece/Kastoria
Registered: 2012-04-28
Posts: 448

Re: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com

You're welcome 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

#429 2012-09-21 17:48:23

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 7,425
Website

Re: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com

TeoBigusGeekus wrote:

ANNOUNCEMENT:

The Accuweather devs came back from their summer holidays full of vigour and programming inspiration, eager to change their USA page once again. Scripts 1b and 1e rebundled - thanks to lwfitz for pointing it out.

bad devs, bad!  Sit devs, sit! Roll over, play dead!
Those guys are like well trained dogs.  lol

Only the accuweather 1b and 1e stuff.  sigh - do you know how many accuweather 1b and 1e scripts I have here?  I have some work cut out.  big_smile

OH well, I was getting bored anyway.

Last edited by Sector11 (2012-09-21 17:50:15)

Offline

#430 2012-09-21 17:50:18

TeoBigusGeekus
#! Junkie
From: /Greece/Kastoria
Registered: 2012-04-28
Posts: 448

Re: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com

They just can't come to terms with the fact that whatever they do I'll be after them...


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

#431 2012-09-21 17:55:34

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

Re: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com

By the way the new scripts work perfect. Thanks again!

Offline

#432 2012-09-21 17:57:59

TeoBigusGeekus
#! Junkie
From: /Greece/Kastoria
Registered: 2012-04-28
Posts: 448

Re: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com

lwfitz wrote:

By the way the new scripts work perfect. Thanks again!

Brilliant; if anything rises, post here again.


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

#433 2012-09-21 19:08:56

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 7,425
Website

Re: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com

TeoBigusGeekus wrote:

They just can't come to terms with the fact that whatever they do I'll be after them...

Maybe I should go tell them  lol

Offline

#434 2012-09-21 19:14:28

TeoBigusGeekus
#! Junkie
From: /Greece/Kastoria
Registered: 2012-04-28
Posts: 448

Re: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com

Sector11 wrote:
TeoBigusGeekus wrote:

They just can't come to terms with the fact that whatever they do I'll be after them...

Maybe I should go tell them  lol

Nah, better not; I'll die of boredom otherwise...


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

#435 2012-09-21 21:38:28

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 7,425
Website

Re: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com

TeoBigusGeekus wrote:
Sector11 wrote:
TeoBigusGeekus wrote:

They just can't come to terms with the fact that whatever they do I'll be after them...

Maybe I should go tell them  lol

Nah, better not; I'll die of boredom otherwise...

Noooooo!!!  One of us being bored is enough.  And I'm it!  big_smile

Offline

#436 2012-09-25 02:05:07

andrewthomas
New Member
Registered: 2012-09-25
Posts: 4

Re: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com

I am setting up the Conky_WeatherCom script and am getting no images. 

Any ideas as to the problem?weatherjq.png

EDIT: the problem was due to mass package updates. 

I just needed to re-build conky's deps (lua, scons, imlib2 & tolua++) along with conky itself, and then all is good

slackwareweatherconky.png

Last edited by andrewthomas (2012-09-30 19:29:14)

Offline

#437 2012-09-25 07:58:29

TeoBigusGeekus
#! Junkie
From: /Greece/Kastoria
Registered: 2012-04-28
Posts: 448

Re: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com

No problems here mate:
D4aqgs.jpg
Can you specify which of the weather.com scripts you're using, as well as your location?

EDIT: Judging by the ${image} strings in your screenshot, my bet is that something's wrong in your .conkyrc.

Last edited by TeoBigusGeekus (2012-09-25 08:04: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

#438 2012-09-25 22:46:13

andrewthomas
New Member
Registered: 2012-09-25
Posts: 4

Re: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com

Thank you for your reply.


Here is the .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
${font Arial:size=12}${color ffe595}RIGHT NOW ${font}${hr 2}${texeci 600 bash $HOME/Conky_WeatherCom/weath_com}
${font Arial:size=10}${execpi 600 sed -n '4p' $HOME/Conky_WeatherCom/RightNow/raw_rn}${font}

${goto 200}${color ffe595}TEMP: $color${alignr}${execpi 600 sed -n '3p' $HOME/Conky_WeatherCom/RightNow/raw_rn}°F (${execpi 600 sed -n '5p' $HOME/Conky_WeatherCom/RightNow/raw_rn}°F)${image $HOME/Conky_WeatherCom/now.png -p 0,30 -s 120x120}
${goto 200}${color ffe595}WIND: $color${alignr}${execpi 600 sed -n '6p' $HOME/Conky_WeatherCom/RightNow/raw_rn} ${execpi 600 sed -n '7p' $HOME/Conky_WeatherCom/RightNow/raw_rn}mph
${goto 200}${color ffe595}HUMIDITY: $color${alignr}${execpi 600 sed -n '8p' $HOME/Conky_WeatherCom/RightNow/raw_rn}
${goto 200}${color ffe595}DEW POINT: $color${alignr}${execpi 600 sed -n '9p' $HOME/Conky_WeatherCom/RightNow/raw_rn}°F
${goto 200}${color ffe595}VISIBILITY: $color${alignr}${execpi 600 sed -n '10p' $HOME/Conky_WeatherCom/RightNow/raw_rn}
${goto 200}${color ffe595}PRESSURE: $color${alignr}${execpi 600 sed -n '11p' $HOME/Conky_WeatherCom/RightNow/raw_rn}
${goto 200}${color ffe595}UV INDEX: $color${alignr}${execpi 600 sed -n '12p' $HOME/Conky_WeatherCom/RightNow/raw_rn}
${font Arial:size=12}${color ffe595}TODAY - TONIGHT ${font}${hr 2}
${font Arial:size=11}${color ffe595}${goto 75}Today${goto 240}Tonight${image $HOME/Conky_WeatherCom/TD.png -p 35,170 -s 100x100}${image $HOME/Conky_WeatherCom/TN.png -p 200,170 -s 100x100}${font}${color}






${color ffe595}TEMP: ${color}${execpi 600 sed -n '2p' $HOME/Conky_WeatherCom/Today/day}°F${goto 195}${color ffe595}TEMP: ${color}${execpi 600 sed -n '2p' $HOME/Conky_WeatherCom/Today/night}°F
${execpi 600 sed -n '3,16p' $HOME/Conky_WeatherCom/Today/final_today}
${font Arial:size=12}${color ffe595}10 DAYS FORECAST ${font}${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,500 -s 70x70}${image $HOME/Conky_WeatherCom/10_9.png -p 130,500 -s 70x70}${image $HOME/Conky_WeatherCom/10_16.png -p 240,500 -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,640 -s 70x70}${image $HOME/Conky_WeatherCom/10_30.png -p 130,640 -s 70x70}${image $HOME/Conky_WeatherCom/10_37.png -p 240,640 -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,780 -s 55x55}${image $HOME/Conky_WeatherCom/10_51.png -p 85,780 -s 55x55}${image $HOME/Conky_WeatherCom/10_58.png -p 170,780 -s 55x55}${if_existing /home/teo/Conky_WeatherCom/10days/10days_OK}${image $HOME/Conky_WeatherCom/10_58.png -p 255,780 -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}

I only altered the address line in weath_com

address10="http://www.weather.com/weather/tenday/Mokena+IL+USIL0786:1:US"

Here is the whole file

#!/bin/bash

#put your 10 day weather.com address here
#address10="http://www.weather.com/weather/tenday/New+York+NY+USNY0996:1:US"
#address10="http://www.weather.com/weather/tenday/Ojmjakon+RSXX0138:1:RS"
#address10="http://www.weather.com/weather/tenday/Kastoria+GRXX0292:1:GR"
address10="http://www.weather.com/weather/tenday/Mokena+IL+USIL0786:1:US"
addr_now=$(echo $address10|sed 's/tenday/right-now/')
addr_today=$(echo $address10|sed 's/tenday/today/')

kill -STOP $(pidof conky)
killall wget

wget --user-agent="Firefox" -O $HOME/Conky_WeatherCom/RightNow/raw_rn $addr_now
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/RightNow/raw_rn ]]; then
    #############
    # Right now #
    #############
    sed -i '/wx-weather-icon wx-hide/,/<div class="wx-next6hr-details ">/!d' $HOME/Conky_WeatherCom/RightNow/raw_rn
    sed -i -e '/^[ \t]*$/d' -e 's/\r//g' $HOME/Conky_WeatherCom/RightNow/raw_rn
    sed -i '/\.png\|&deg;\|weather-phrase\|feels-like\|"wx-temp"\|"wx-value"\|arrow wind-dir-/!d' $HOME/Conky_WeatherCom/RightNow/raw_rn
    sed -i -e 's/^.*wxicon\/120\///g' -e s'/png.*$/png/g' -e 's/^.*"wx-temp">//g' $HOME/Conky_WeatherCom/RightNow/raw_rn
    sed -i -e 's/^.*wx-dir-arrow wind-dir-//g' -e 's/"><\/div>.*$//g' -e 's/<\/span>.*$//g' -e 's/^.*">//g' -e 's/&deg;//g' $HOME/Conky_WeatherCom/RightNow/raw_rn
    image=$(sed -n 1p $HOME/Conky_WeatherCom/RightNow/raw_rn)
    if [[ $(sed -n 6p $HOME/Conky_WeatherCom/RightNow/raw_rn) == "Calm" ]]; then
        sed -i '6s/$/\n/' $HOME/Conky_WeatherCom/RightNow/raw_rn
    fi
    cp $HOME/Conky_WeatherCom/weather_com_images/$image $HOME/Conky_WeatherCom/now.png
fi

if [[ -s $HOME/Conky_WeatherCom/Today/raw_td ]]; then
    #############
    #   Today   #   
    #############
    sed -i '/<div class="wx-daypart/,/<div class="wx-tempgraph wx-module wx-grid3of6/!d' $HOME/Conky_WeatherCom/Today/raw_td
    sed -i -e '/^[ \t]*$/d' -e 's/^[ \t]*//g' -e 's/\r//g' $HOME/Conky_WeatherCom/Today/raw_td
    sed -i -e 's/^.*wx-observed">//g' -e 's/&deg;.*$//g' $HOME/Conky_WeatherCom/Today/raw_td
    sed -i -e 's/^.*wxicon\/120\///g' -e 's/\.png.*$/\.png/g' -e 's/^.*"wx-temp"> //g' $HOME/Conky_WeatherCom/Today/raw_td
    sed -i -e 's/^.*<h3>//g' -e 's/^.*"wx-phrase ">//g' -e 's/^.*<dt>//g' -e 's/^.*<dd>//g' $HOME/Conky_WeatherCom/Today/raw_td
    sed -i -e 's/^.*snowfall-value">//g' -e "s/<span class='wx-firstletter'>//g" -e 's/^.*<strong>//g' $HOME/Conky_WeatherCom/Today/raw_td
    sed -i -e 's/^.*<p class="wx-narrative">//g' -e 's/<sup>//g' -e 's/<\/sup>//g' -e 's/<span class=.*<\/span>//g' $HOME/Conky_WeatherCom/Today/raw_td
    sed -i -e 's/<.*$//g' -e '/^[ \t]*$/d' -e 's/Chance of rain/Chance of rain:/g' $HOME/Conky_WeatherCom/Today/raw_td
    sed -i -e :a -e '/:$/N; s/:\n/: /; ta' $HOME/Conky_WeatherCom/Today/raw_td
    sed -n '1,/Night/p' $HOME/Conky_WeatherCom/Today/raw_td > $HOME/Conky_WeatherCom/Today/day
    sed -n '/Night/,$p' $HOME/Conky_WeatherCom/Today/raw_td > $HOME/Conky_WeatherCom/Today/night
    sed -i '/Day\|Night/d' $HOME/Conky_WeatherCom/Today/{day,night}

    if (( $(cat $HOME/Conky_WeatherCom/Today/day|wc -l)==3 )); then
        line2=$(sed -n 2p $HOME/Conky_WeatherCom/Today/day)
        sed -i '2d' $HOME/Conky_WeatherCom/Today/day
        sed -i 1i$line2 $HOME/Conky_WeatherCom/Today/day
    fi

    day=$(sed -n 1p $HOME/Conky_WeatherCom/Today/day)
    cp $HOME/Conky_WeatherCom/weather_com_images/$day $HOME/Conky_WeatherCom/TD.png
    night=$(sed -n 1p $HOME/Conky_WeatherCom/Today/night)
    cp $HOME/Conky_WeatherCom/weather_com_images/$night $HOME/Conky_WeatherCom/TN.png

    fold -s30 $HOME/Conky_WeatherCom/Today/day > $HOME/Conky_WeatherCom/Today/day1
    sed -i 's/\(^.*: \)\(.*$\)/\$\{color ffe595\}\1\$\{color\}\2/g' $HOME/Conky_WeatherCom/Today/day1
    fold -s30 $HOME/Conky_WeatherCom/Today/night > $HOME/Conky_WeatherCom/Today/night1 
    sed -i 's/\(^.*: \)\(.*$\)/\$\{color ffe595\}\1\$\{color\}\2/g' $HOME/Conky_WeatherCom/Today/night1

    for (( i=1; i<=$(cat $HOME/Conky_WeatherCom/Today/night1|wc -l); i++ ))
        do
             sed -i "${i}s/^/\$\{goto 195\}/" $HOME/Conky_WeatherCom/Today/night1
        done
    paste -d'*' $HOME/Conky_WeatherCom/Today/{day1,night1} > $HOME/Conky_WeatherCom/Today/final_today
    sed -i 's/\*//g' $HOME/Conky_WeatherCom/Today/final_today
    
    j=$(cat $HOME/Conky_WeatherCom/Today/final_today|wc -l)
    if (( $j<16 )); then
        for (( i=1; i<=$(( 16-$j )); i++ ))
            do
                echo '' >> $HOME/Conky_WeatherCom/Today/final_today
            done
    fi
fi

if [[ -s $HOME/Conky_WeatherCom/10days/raw_10 ]]; then
    #############
    #  10 days  #
    #############
    observed_high=$(grep "Observed High" $HOME/Conky_WeatherCom/10days/raw_10|wc -l)
    sed -i '/"wx-daypart"/,/wx-planmyday10 wx-plan-day/!d' $HOME/Conky_WeatherCom/10days/raw_10
    sed -i -e '/^[ \t]*$/d' -e 's/\r//g' -e '/^$/d' -e 's/^[ \t]*//g' $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">\|<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 '/<\|>\|^$/d' -e 's/ at / /g' $HOME/Conky_WeatherCom/10days/raw_10
    sed -i 's/ mph/mph/g' $HOME/Conky_WeatherCom/10days/raw_10
    
    line1=$(sed -n 1p $HOME/Conky_WeatherCom/10days/raw_10|sed 's/ *$//')
    if [[ $line1 == Tonight && $observed_high == 0 ]]; then
        sed -i '3s/$/\n-/' $HOME/Conky_WeatherCom/10days/raw_10
    fi
    
    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

kill -CONT $(pidof conky)

Here is what the directory contains:

[lxde@slack-asus ~]$ ls -al Conky_WeatherCom/
total 244
drwxr-xr-x  6 lxde lxde  4096 Sep 24 20:35 .
drwxr-xr-x 50 lxde lxde  4096 Sep 25 17:27 ..
-rwxr-xr-x  1 lxde lxde  9695 Sep 24 20:36 .conkyrc_weather_com
-rwxr-xr-x  1 lxde lxde  9700 Jun  5 03:16 .conkyrc_weather_com_c_version
-rwxr-xr-x  1 lxde lxde 14149 Sep 25 17:35 10_16.png
-rwxr-xr-x  1 lxde lxde  5238 Sep 25 17:35 10_2.png
-rwxr-xr-x  1 lxde lxde 14149 Sep 25 17:35 10_23.png
-rwxr-xr-x  1 lxde lxde 11173 Sep 25 17:35 10_30.png
-rwxr-xr-x  1 lxde lxde 17772 Sep 25 17:35 10_37.png
-rwxr-xr-x  1 lxde lxde 11173 Sep 25 17:35 10_44.png
-rwxr-xr-x  1 lxde lxde 11173 Sep 25 17:35 10_51.png
-rwxr-xr-x  1 lxde lxde 11173 Sep 25 17:35 10_58.png
-rwxr-xr-x  1 lxde lxde 11173 Sep 25 17:35 10_65.png
-rwxr-xr-x  1 lxde lxde 17772 Sep 25 17:35 10_9.png
drwxr-xr-x  2 lxde lxde  4096 Sep 25 17:35 10days
drwxr-xr-x  2 lxde lxde  4096 Sep 25 17:35 RightNow
-rwxr-xr-x  1 lxde lxde  5238 Sep 25 17:35 TN.png
drwxr-xr-x  2 lxde lxde  4096 Sep 25 17:35 Today
-rwxr-xr-x  1 lxde lxde 17772 Sep 25 17:35 now.png
-rwxr-xr-x  1 lxde lxde  6024 Sep 24 20:30 weath_com
-rw-r--r--  1 lxde lxde 18177 Jun  5 06:09 weath_com_c_version.c
drwxr-xr-x  2 lxde lxde  4096 Sep 24 20:28 weather_com_images
[lxde@slack-asus ~]$ ls -al Conky_WeatherCom/weather_com_images/
total 648
drwxr-xr-x 2 lxde lxde  4096 Sep 24 20:28 .
drwxr-xr-x 6 lxde lxde  4096 Sep 24 20:35 ..
-rwxr-xr-x 1 lxde lxde 14203 Mar 28 07:42 0.png
-rwxr-xr-x 1 lxde lxde 14203 Mar 28 07:42 1.png
-rwxr-xr-x 1 lxde lxde 10917 Mar 28 07:42 10.png
-rwxr-xr-x 1 lxde lxde 10987 Mar 28 07:42 11.png
-rwxr-xr-x 1 lxde lxde 10987 Mar 28 07:42 12.png
-rwxr-xr-x 1 lxde lxde 10188 Mar 28 07:42 13.png
-rwxr-xr-x 1 lxde lxde 12537 Mar 28 07:42 14.png
-rwxr-xr-x 1 lxde lxde  9521 Mar 28 07:42 15.png
-rwxr-xr-x 1 lxde lxde 12537 Mar 28 07:42 16.png
-rwxr-xr-x 1 lxde lxde 14203 Mar 28 07:42 17.png
-rwxr-xr-x 1 lxde lxde 10917 Mar 28 07:42 18.png
-rwxr-xr-x 1 lxde lxde 17741 Mar 28 07:42 19.png
-rwxr-xr-x 1 lxde lxde 14203 Mar 28 07:42 2.png
-rwxr-xr-x 1 lxde lxde 13401 Mar 28 07:42 20.png
-rwxr-xr-x 1 lxde lxde 13401 Mar 28 07:42 21.png
-rwxr-xr-x 1 lxde lxde 13401 Mar 28 07:42 22.png
-rwxr-xr-x 1 lxde lxde  5849 Mar 28 07:42 23.png
-rwxr-xr-x 1 lxde lxde  5849 Mar 28 07:42 24.png
-rwxr-xr-x 1 lxde lxde  1710 Mar 28 07:42 25.png
-rwxr-xr-x 1 lxde lxde  6140 Mar 28 07:42 26.png
-rwxr-xr-x 1 lxde lxde  7462 Mar 28 07:42 27.png
-rwxr-xr-x 1 lxde lxde 17772 Mar 28 07:42 28.png
-rwxr-xr-x 1 lxde lxde  7462 Mar 28 07:42 29.png
-rwxr-xr-x 1 lxde lxde 14203 Mar 28 07:42 3.png
-rwxr-xr-x 1 lxde lxde 17772 Mar 28 07:42 30.png
-rwxr-xr-x 1 lxde lxde  4022 Mar 28 07:42 31.png
-rwxr-xr-x 1 lxde lxde 11173 Mar 28 07:42 32.png
-rwxr-xr-x 1 lxde lxde  5238 Mar 28 07:42 33.png
-rwxr-xr-x 1 lxde lxde 14149 Mar 28 07:42 34.png
-rwxr-xr-x 1 lxde lxde 14203 Mar 28 07:42 35.png
-rwxr-xr-x 1 lxde lxde 17512 Mar 28 07:42 37.png
-rwxr-xr-x 1 lxde lxde 17512 Mar 28 07:42 38.png
-rwxr-xr-x 1 lxde lxde 15595 Mar 28 07:42 39.png
-rwxr-xr-x 1 lxde lxde 14203 Mar 28 07:42 4.png
-rwxr-xr-x 1 lxde lxde 10987 Mar 28 07:42 40.png
-rwxr-xr-x 1 lxde lxde 15573 Mar 28 07:42 41.png
-rwxr-xr-x 1 lxde lxde 18039 Mar 28 07:42 42.png
-rwxr-xr-x 1 lxde lxde 18039 Mar 28 07:42 43.png
-rwxr-xr-x 1 lxde lxde  1710 Mar 28 07:42 44.png
-rwxr-xr-x 1 lxde lxde 11272 Mar 28 07:42 45.png
-rwxr-xr-x 1 lxde lxde 11198 Mar 28 07:42 46.png
-rwxr-xr-x 1 lxde lxde 13502 Mar 28 07:42 47.png
-rwxr-xr-x 1 lxde lxde 13450 Mar 28 07:42 5.png
-rwxr-xr-x 1 lxde lxde 10917 Mar 28 07:42 6.png
-rwxr-xr-x 1 lxde lxde 12641 Mar 28 07:42 7.png
-rwxr-xr-x 1 lxde lxde  8737 Mar 28 07:42 8.png
-rwxr-xr-x 1 lxde lxde  7999 Mar 28 07:42 9.png
[lxde@slack-asus ~]$ ls -al Conky_WeatherCom/Today              
total 32
drwxr-xr-x 2 lxde lxde 4096 Sep 25 17:35 .
drwxr-xr-x 6 lxde lxde 4096 Sep 24 20:35 ..
-rw-r--r-- 1 lxde lxde   29 Sep 25 17:35 day
-rw-r--r-- 1 lxde lxde   29 Sep 25 17:35 day1
-rw-r--r-- 1 lxde lxde  696 Sep 25 17:35 final_today
-rw-r--r-- 1 lxde lxde  273 Sep 25 17:35 night
-rw-r--r-- 1 lxde lxde  669 Sep 25 17:35 night1
-rw-r--r-- 1 lxde lxde  325 Sep 25 17:35 raw_td
[lxde@slack-asus ~]$ ls -al Conky_WeatherCom/RightNow/
total 12
drwxr-xr-x 2 lxde lxde 4096 Sep 25 17:35 .
drwxr-xr-x 6 lxde lxde 4096 Sep 24 20:35 ..
-rw-r--r-- 1 lxde lxde   83 Sep 25 17:35 raw_rn
[lxde@slack-asus ~]$ ls -al Conky_WeatherCom/10days/  
total 12
drwxr-xr-x 2 lxde lxde 4096 Sep 25 17:35 .
drwxr-xr-x 6 lxde lxde 4096 Sep 24 20:35 ..
-rw-r--r-- 1 lxde lxde    0 Sep 25 17:35 10days_OK
-rw-r--r-- 1 lxde lxde  399 Sep 25 17:35 raw_10

Offline

#439 2012-09-26 10:48:46

TeoBigusGeekus
#! Junkie
From: /Greece/Kastoria
Registered: 2012-04-28
Posts: 448

Re: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com

Everything works perfect here with your .conkyrc and your version of the script:
xfxFds.jpg
I'd advise deleting everything, re-downloading everything and trying again.


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

#440 2012-09-27 01:28:32

andrewthomas
New Member
Registered: 2012-09-25
Posts: 4

Re: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com

Yep.  When I used the configuration on my Gentoo install, the images did show up, with the exception of the today image (TD.png)

gentooconku.png

Thanks again for your help.

Offline

#441 2012-09-27 08:16:52

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

Re: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com

Hey TeoBigusGeekus Ive noticed a few errors while starting up the usa_images script again. It seems to start ok but the errors cause it to not update correctly I think. Just so you know buddy.
My output when starting conky:

luke@crunchbang-desktop:~$ ~/Conky/conky_start.sh
WARNING: gnome-keyring:: couldn't connect to: /home/luke/.cache/keyring-BpfGdu/pkcs11: No such file or directory
Conky: desktop window (1800003) is subwindow of root window (28f)
Conky: window type - normal
Conky: drawing to created window (0x1400002)
Conky: drawing to double buffer
luke@crunchbang-desktop:~$ WARNING: gnome-keyring:: couldn't connect to: /home/luke/.cache/keyring-BpfGdu/pkcs11: No such file or directory
Conky: desktop window (1800003) is subwindow of root window (28f)
Conky: window type - normal
Conky: drawing to created window (0x2000002)
Conky: drawing to double buffer
wget: no process found
--2012-09-27 01:08:21--  http://www.accuweather.com/en/us/monrovia-ca/91016/current-weather/91016us?day=1
Resolving www.accuweather.com (www.accuweather.com)... 63.80.242.26, 63.80.242.34
Connecting to www.accuweather.com (www.accuweather.com)|63.80.242.26|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `/home/luke/Accuweather_Conky_USA_Images/curr_cond_raw'

    [  <=>                                  ] 93,226       336K/s   in 0.3s    

2012-09-27 01:08:28 (336 KB/s) - `/home/luke/Accuweather_Conky_USA_Images/curr_cond_raw' saved [93226]

--2012-09-27 01:08:28--  http://www.accuweather.com/en/us/monrovia-ca/91016/daily-weather-forecast/38115_pc
Resolving www.accuweather.com (www.accuweather.com)... 63.80.242.26, 63.80.242.34
Connecting to www.accuweather.com (www.accuweather.com)|63.80.242.26|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `/home/luke/Accuweather_Conky_USA_Images/tod_ton_raw'

    [  <=>                                  ] 97,724       336K/s   in 0.3s    

2012-09-27 01:08:33 (336 KB/s) - `/home/luke/Accuweather_Conky_USA_Images/tod_ton_raw' saved [97724]

--2012-09-27 01:08:33--  http://www.accuweather.com/en/us/monrovia-ca/91016/daily-weather-forecast/38115_pc?day=6
Resolving www.accuweather.com (www.accuweather.com)... 63.80.242.34, 63.80.242.26
Connecting to www.accuweather.com (www.accuweather.com)|63.80.242.34|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `/home/luke/Accuweather_Conky_USA_Images/last_days_raw'

    [  <=>                                  ] 97,463       336K/s   in 0.3s    

2012-09-27 01:08:40 (336 KB/s) - `/home/luke/Accuweather_Conky_USA_Images/last_days_raw' saved [97463]

cp: cannot stat `/home/luke/Accuweather_Conky_USA_Images/Forecast_Images/.png': No such file or directory
cp: cannot stat `/home/luke/Accuweather_Conky_USA_Images/Forecast_Images/.png': No such file or directory
cp: cannot stat `/home/luke/Accuweather_Conky_USA_Images/Forecast_Images/.png': No such file or directory
cp: cannot stat `/home/luke/Accuweather_Conky_USA_Images/Forecast_Images/.png': No such file or directory
cp: cannot stat `/home/luke/Accuweather_Conky_USA_Images/Forecast_Images/.png': No such file or directory
cp: cannot stat `/home/luke/Accuweather_Conky_USA_Images/Forecast_Images/.png': No such file or directory
cp: cannot stat `/home/luke/Accuweather_Conky_USA_Images/Forecast_Images/.png': No such file or directory
cp: cannot stat `/home/luke/Accuweather_Conky_USA_Images/Forecast_Images/.png': No such file or directory
cp: cannot stat `/home/luke/Accuweather_Conky_USA_Images/Forecast_Images/.png': No such file or directory
cp: cannot stat `/home/luke/Accuweather_Conky_USA_Images/Forecast_Images/.png': No such file or directory
cp: cannot stat `/home/luke/Accuweather_Conky_USA_Images/Forecast_Images/.png': No such file or directory
wget: no process found
--2012-09-27 01:08:40--  http://www.accuweather.com/en/us/monrovia-ca/91016/current-weather/91016us?day=1
Resolving www.accuweather.com (www.accuweather.com)... 63.80.242.26, 63.80.242.34
Connecting to www.accuweather.com (www.accuweather.com)|63.80.242.26|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `/home/luke/Accuweather_Conky_USA_Images/curr_cond_raw'

    [  <=>                                  ] 93,327       335K/s   in 0.3s    

2012-09-27 01:08:46 (335 KB/s) - `/home/luke/Accuweather_Conky_USA_Images/curr_cond_raw' saved [93327]

--2012-09-27 01:08:46--  http://www.accuweather.com/en/us/monrovia-ca/91016/daily-weather-forecast/38115_pc
Resolving www.accuweather.com (www.accuweather.com)... 63.80.242.34, 63.80.242.26
Connecting to www.accuweather.com (www.accuweather.com)|63.80.242.34|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `/home/luke/Accuweather_Conky_USA_Images/tod_ton_raw'

    [  <=>                                  ] 97,849       335K/s   in 0.3s    

2012-09-27 01:08:52 (335 KB/s) - `/home/luke/Accuweather_Conky_USA_Images/tod_ton_raw' saved [97849]

--2012-09-27 01:08:52--  http://www.accuweather.com/en/us/monrovia-ca/91016/daily-weather-forecast/38115_pc?day=6
Resolving www.accuweather.com (www.accuweather.com)... 63.80.242.26, 63.80.242.34
Connecting to www.accuweather.com (www.accuweather.com)|63.80.242.26|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: `/home/luke/Accuweather_Conky_USA_Images/last_days_raw'

    [  <=>                                  ] 97,493       335K/s   in 0.3s    

2012-09-27 01:08:57 (335 KB/s) - `/home/luke/Accuweather_Conky_USA_Images/last_days_raw' saved [97493]

cp: cannot stat `/home/luke/Accuweather_Conky_USA_Images/Forecast_Images/.png': No such file or directory
cp: cannot stat `/home/luke/Accuweather_Conky_USA_Images/Forecast_Images/.png': No such file or directory
cp: cannot stat `/home/luke/Accuweather_Conky_USA_Images/Forecast_Images/.png': No such file or directory
cp: cannot stat `/home/luke/Accuweather_Conky_USA_Images/Forecast_Images/.png': No such file or directory
cp: cannot stat `/home/luke/Accuweather_Conky_USA_Images/Forecast_Images/.png': No such file or directory
cp: cannot stat `/home/luke/Accuweather_Conky_USA_Images/Forecast_Images/.png': No such file or directory
cp: cannot stat `/home/luke/Accuweather_Conky_USA_Images/Forecast_Images/.png': No such file or directory
cp: cannot stat `/home/luke/Accuweather_Conky_USA_Images/Forecast_Images/.png': No such file or directory
cp: cannot stat `/home/luke/Accuweather_Conky_USA_Images/Forecast_Images/.png': No such file or directory
cp: cannot stat `/home/luke/Accuweather_Conky_USA_Images/Forecast_Images/.png': No such file or directory
cp: cannot stat `/home/luke/Accuweather_Conky_USA_Images/Forecast_Images/.png': No such file or directory

Btw I downloaded the scripts again in case you updated them but nothing changed.
Heres my weather conky:

##############################################
#  Settings
##############################################
max_specials 10000
max_user_text 15000
background no
use_xft yes
xftfont sans:size=9
xftalpha 1
total_run_times 0
own_window yes
own_window_argb_visual yes
own_window_transparent yes
own_window_type normal
own_window_title conky
own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
double_buffer yes
minimum_size 250
maximum_width 250
draw_shades no
draw_outline no
draw_borders no
draw_graph_borders yes
default_color white
default_shade_color black
default_outline_color white
alignment top_right
gap_x 10
gap_y 15
no_buffers yes
uppercase no
cpu_avg_samples 2
override_utf8_locale yes
text_buffer_size 100000
top_name_width 5
update_interval 1
default_color FFFFFF
temperature_unit fahrenheit


## Set the path to your script here.
lua_load ~/Conky/allcombined.lua
## lua funcions
## background ##################################################################
#${lua draw_bg {corner_radius,x_position,y_position,width,height,color,alpha}}
#note for background: set width=0 - width will be conky window width, set height=0 - height will be conky window height
## gradient bars ###############################################################
#${lua gradbar {x_position,y_position,"conky_object",object_max_value,number_of_divisions,division_width,division_height,division_gap,bg_color,bg_alpha,start_color,start_alpha,mid_color,mid_alpha,end_color,end_alpha}}
## calendar ###############################################################
#${lua luacal {x_position,y_position,"title_font",title_fontsize,title_color,title_alpha,"dates_font",dates_fontsize,dates_color,dates_alpha,"highlight_font",highlight_fontsize,highlight_color,highlight_alpha,"spacer",colum_gap,title_gap,row_gap,start_day}
#note for calendar: start day... 0=sunday, 1=monday ... "spacer" can help align calendar with non fix width fonts
## textured background ###############################################################
#${lua tex_bg {corner_radius,x_position,y_position,width,height,"/path/to/texture.png"}}
## lua draw images ###############################################################
#${lua luaimage {x_position,y_position,width,height,"/path/to/image"}}
#note for images: set width=0 - width will be image width, set height=0 - height will be image height
## lua draw text ###############################################################
#${lua luatext {x_position,y_position,color,alpha,"font",fontsize,"justify"}}
# not for text: justify can be "r" = right, "c" = center, "l" = left

#${lua draw_bg {10,0,0,0,0,0x000000,0.1}}
TEXT
${lua draw_bg {15,0,0,0,0,0x000000,0.5}}
${texeci 500 bash $HOME/Accuweather_Conky_USA_Images/acc_usa_images}${image $HOME/Accuweather_Conky_USA_Images/cc.png -p -30,30 -s 180x108}
${goto 125}${font Ubuntu:size=10}TEMP:${alignr 3}${execpi 600 sed -n '4p' $HOME/Accuweather_Conky_USA_Images/curr_cond}°F (${execpi 600 sed -n '5p' $HOME/Accuweather_Conky_USA_Images/curr_cond}°F)
${goto 125}WIND:${alignr 3}${execpi 600 sed -n '6p' $HOME/Accuweather_Conky_USA_Images/curr_cond} ${execpi 600 sed -n '14p' $HOME/Accuweather_Conky_USA_Images/curr_cond}
${goto 125}HUM:${alignr 3}${execpi 600 sed -n '7p' $HOME/Accuweather_Conky_USA_Images/curr_cond}
#${goto 125}PRESS:${alignr 3}${execpi 600 sed -n '8p' $HOME/Accuweather_Conky_USA_Images/curr_cond}
${goto 125}CLOUDY:${alignr 3}${execpi 600 sed -n '9p' $HOME/Accuweather_Conky_USA_Images/curr_cond}
#${goto 125}UV INDEX:${alignr 10}${execpi 600 sed -n '10p' $HOME/Accuweather_Conky_USA_Images/curr_cond}
#${goto 125}DEW POINT:${alignr 3}${execpi 600 sed -n '11p' $HOME/Accuweather_Conky_USA_Images/curr_cond}
${goto 125}PERCIP:${alignr 3}${execpi 600 sed -n '12p' $HOME/Accuweather_Conky_USA_Images/curr_cond}
${goto 125}VISIB.:${alignr 3}${execpi 600 sed -n '13p' $HOME/Accuweather_Conky_USA_Images/curr_cond}
${goto 125}SUNRISE:${alignr 3}${execpi 600 sed -n '15p' $HOME/Accuweather_Conky_USA_Images/curr_cond}
${goto 125}SUNSET:${alignr 3}${execpi 600 sed -n '16p' $HOME/Accuweather_Conky_USA_Images/curr_cond}

Offline

#442 2012-09-27 10:40:14

TeoBigusGeekus
#! Junkie
From: /Greece/Kastoria
Registered: 2012-04-28
Posts: 448

Re: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com

ANNOUNCEMENT

1e script rebundled - the Accuweather USA page changed again. Thanks again to Iwfitz for discovering it.

...or if you're too lazy to download the lot again, just change line 274 from

sed -i -e 's/ i-alarm.*$//g' $HOME/Accuweather_Conky_USA_Images/tod_ton

to

sed -i -e 's/ i-alarm.*$//g' -e '26d' $HOME/Accuweather_Conky_USA_Images/tod_ton

See? The bastards just added a redundant line in the whole thing, which of course has to be deleted.
No big deal though and sorry for any inconvenience.


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

#443 2012-09-27 10:44:10

TeoBigusGeekus
#! Junkie
From: /Greece/Kastoria
Registered: 2012-04-28
Posts: 448

Re: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com

andrewthomas wrote:

Thanks again for your help.

You're welcome mate.
Monitor its behaviour and post back if it persists; I hope it'll be corrected after the first script update, but you never 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

#444 2012-09-27 20:18:02

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

Re: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com

Awesome thanks again buddy. Ill keep an eye on it and give you an update after I run it for a while.

Offline

#445 2012-09-27 20:21:31

TeoBigusGeekus
#! Junkie
From: /Greece/Kastoria
Registered: 2012-04-28
Posts: 448

Re: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com

lwfitz wrote:

Awesome thanks again buddy. Ill keep an eye on it and give you an update after I run it for a while.

Thank you. Please post back if they resist their fate once again.


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

#446 2012-09-27 22:38:38

andrewthomas
New Member
Registered: 2012-09-25
Posts: 4

Re: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com

TeoBigusGeekus wrote:
andrewthomas wrote:

Thanks again for your help.

You're welcome mate.
Monitor its behaviour and post back if it persists; I hope it'll be corrected after the first script update, but you never know...

I think that if you initially run the script after sunset, then there will be no TD.png image, which makes sense.  Everything is all good with your scripts, I just need to rebuild a bunch of packages on the install that was acting up.

Offline

#447 2012-09-28 09:53:36

TeoBigusGeekus
#! Junkie
From: /Greece/Kastoria
Registered: 2012-04-28
Posts: 448

Re: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com

I admire your courage and patience with Gentoo...


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

#448 2012-09-28 23:33:52

ROB3RT
Member
Registered: 2012-05-10
Posts: 10

Re: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com

Hey man, love these scripts. Just noticed a bug in 1b, where I get:
"Tonight
        <span class="low" style="color:#ffffff;">Lo </span><strong class="temp">56<span>&deg;</span></strong>
Saturday
Sunday
Monday
Tuesday"
in days after outputting the script.
Solid bug. Suggestions on how to fix it, as I haven't come across anyone with this issue yet.


New Here. <3 Openbox and #!. Intermediate Linux user. Simplicity smile

Offline

#449 2012-09-29 08:19:33

TeoBigusGeekus
#! Junkie
From: /Greece/Kastoria
Registered: 2012-04-28
Posts: 448

Re: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com

For god's sake, what are they up to now?
Both 1b and 1e (especially 1e) are completely messed up; will look into it in the evening (greece time).
I think we're on a transitional stage for the accuweather usa page, to say the least.


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

Help fund CrunchBang, donate to the project!

#450 2012-09-29 17:32:05

TeoBigusGeekus
#! Junkie
From: /Greece/Kastoria
Registered: 2012-04-28
Posts: 448

Re: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.com

I run both scripts at about 20:00 and... everything is OK mad

Apparently, when I run them in the (greek) morning, about 11:00, something was different in the USA page.
The layout must be changing in the page around the evening or night (USA time).
I'm gonna wait till late at (greek) night today, to see if I can catch the US evening.
Please have patience.


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

Offline

Board footer

Powered by FluxBB

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

Debian Logo