SEARCH

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

You are not logged in.

#476 2012-11-22 22:08:45

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

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/Weather.com/Lunaf.com)

If I understand correctly....:
FILE: test

Paikallissää Turku</h1>
 </span>
 <td colspan="1" class="first-day odd-day">
to</span>
<td colspan="6" class="even-day">
pe</span>
<td colspan="4" class="odd-day">
la</span>
<td colspan="2" class="even-day">
su</span>
<td colspan="2" class="odd-day">
ma</span>
<td colspan="2" class="even-day">
ti</span>
<td colspan="1" class="last-day odd-day">
ke</span>
23</span> <-- from here onwards it's times! (second line n the web page) 
02</span>
05</span>
08</span>
11</span>
14</span>
20</span>
02</span>
08</span>

FILE: script

#!/bin/bash
sed -i -e 's/^.*colspan=\"//g' -e 's/\" class=.*$//g' test
extra=0
for i in $(grep -n ^[1-9]$ test)
do
    x=$(echo $i|sed 's/:.*//')
    y=$(echo $i|sed 's/.*://')
    pos=$(( x+extra ))
    for (( j=0; j<y-1; j++ ))
    do
        sed -i "${pos}s/^${y}/${y}\n/" test
    done
    extra=$(( extra+y-1 ))
done

After running the script, the test file becomes thus:

Paikallissää Turku</h1>
 </span>
1
to</span>
6





pe</span>
4



la</span>
2

su</span>
2

ma</span>
2

ti</span>
1
ke</span>
23</span> <-- from here onwards it's times! (second line n the web page) 
02</span>
05</span>
08</span>
11</span>
14</span>
20</span>
02</span>
08</span>

It removes all redundant text in the colspan lines, leaving only the numbers, and then adds number-1 end lines after each one of them.
I hope that it is what you wanted...
(the extra variable exists to account for grep's non recursive behaviour)

EDIT: This could be a one liner. Please humiliate me mercilessly.

Last edited by TeoBigusGeekus (2012-11-22 23:47:39)


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!

#477 2012-11-22 22:22:13

ohnonot
#! Die Hard
Registered: 2012-05-22
Posts: 1,062
Website

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/Weather.com/Lunaf.com)

thanks a lot, the master himself!
ops

this is close, but the empty lines have to come after the weekday (e.g. to</span>), so if it says colspan=2 before the weekday, it should have 1 empty line after the weekday. (2 columns altogether)

i will start working on it immediately, maybe i can come up with sth...

Offline

#478 2012-11-22 22:44:42

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

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/Weather.com/Lunaf.com)

This then?

#!/bin/bash
sed -i -e 's/^.*colspan=\"//g' -e 's/\" class=.*$//g' test
extra=0
for i in $(grep -n ^[1-9]$ test)
do
    x=$(echo $i|sed 's/:.*//')
    y=$(echo $i|sed 's/.*://')
    pos=$(( x+extra+2 ))
    echo $x $y $pos
    for (( j=0; j<y-1; j++ ))
    do
        sed -i "${pos}s/$/\n/" test
    done
    extra=$(( extra+y-1 ))
done

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

#479 2012-11-22 23:03:41

ohnonot
#! Die Hard
Registered: 2012-05-22
Posts: 1,062
Website

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/Weather.com/Lunaf.com)

bingo!
i added one more line to remove all lines that have only 1 digit in it (which isn't needed anymore) andnow the logic is right:

#!/bin/bash
sed -i -e 's/^.*colspan=\"//g' -e 's/\" class=.*$//g' test
extra=0
for i in $(grep -n ^[1-9]$ test)
do
    x=$(echo $i|sed 's/:.*//')
    y=$(echo $i|sed 's/.*://')
    pos=$(( x+extra+1 ))
    echo $x $y $pos
    for (( j=0; j<y-1; j++ ))
    do
        sed -i "${pos}s/$/\n/" test
    done
    extra=$(( extra+y-1 ))
done
sed -i -e '/^[1-9]$/d' test

thank you and good night!

Last edited by ohnonot (2012-11-23 20:44:21)

Offline

#480 2012-11-22 23:06:30

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

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/Weather.com/Lunaf.com)

You're welcome mate; goodnight!


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

#481 2012-11-23 01:16:55

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 11,668
Website

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/Weather.com/Lunaf.com)

Always a pleasure to see you in action Teo ...

problem ...
--- click
fixed....

That's gotta be good!


#! Forum Moderator | To #! or not to #!?  That is the question!
#! Conky = 16 Threads & the Conky Archives | Conky PitStop | OHCG'er
StartPage -  protect your privacy   |   BBQ Linux

Offline

#482 2012-11-23 08:17:50

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

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/Weather.com/Lunaf.com)

Oh hi there Sector11, long time no see!!!
Nice to hear from you...


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

Offline

#483 2012-11-23 14:50:59

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 11,668
Website

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/Weather.com/Lunaf.com)

Yea, too long ... I'm doing this and that and then "life" ... Every time I look at you directories (here) I keep saying, I gotta make a few more.

Before the end of the year.  big_smile

Last edited by Sector11 (2012-11-23 14:55:56)


#! Forum Moderator | To #! or not to #!?  That is the question!
#! Conky = 16 Threads & the Conky Archives | Conky PitStop | OHCG'er
StartPage -  protect your privacy   |   BBQ Linux

Offline

#484 2012-11-23 15:07:22

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

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/Weather.com/Lunaf.com)

Take your time 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

#485 2012-11-23 20:44:00

ohnonot
#! Die Hard
Registered: 2012-05-22
Posts: 1,062
Website

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/Weather.com/Lunaf.com)

hello, i found one more small thing to correct:
i changed
pos=$(( x+extra+2 ))
to
pos=$(( x+extra+1 ))
because sometimes the last blank lines get inserted after the first line with the time.
instead of posting the whole script again i edited my last post.
also take a look here.
thanks and good bye.
smile

Offline

#486 2012-11-23 20:49:34

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

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/Weather.com/Lunaf.com)

The crunchbang forums are going to collect all the conky weather scripts out there...  cool

Last edited by TeoBigusGeekus (2012-11-23 20:49:48)


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

#487 2012-11-24 09:15:49

ohnonot
#! Die Hard
Registered: 2012-05-22
Posts: 1,062
Website

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/Weather.com/Lunaf.com)

hey TBG and all others!
i wanted to draw your attention to one more thing - in your scripts you are always using

kill -STOP $(pidof conky)

but when i have several conkies running that stops all of them so i replaced it with

pkill -STOP -f '.config/conky/itl/conky-itl' 

(the last bit is the weather conky config, which i'm autostarting with "conky -c /home/<yourusername>/.config...... i can't get placeholders or $HOME or ~ to work here. but supposing other people store their conkies in the same way, this is perfectly portable)
(and of course the same with -CONT in the end)

unless there's something else i've missed...

Offline

#488 2012-11-24 11:23:23

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

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/Weather.com/Lunaf.com)

You can remove this bit if you want to.
It is added as a means to give the script some time to collect the necessary info before conky updates; it is quite important for the more complicated/info rich scripts (especially the weather.com one), but it's not that essential for the lighter ones.


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

#489 2012-11-24 12:49:04

ohnonot
#! Die Hard
Registered: 2012-05-22
Posts: 1,062
Website

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/Weather.com/Lunaf.com)

^it can get in the way when the internet connection is slow.
wget has a default timeout of 900s...

Offline

#490 2012-11-27 02:56:25

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 11,668
Website

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/Weather.com/Lunaf.com)

Conky_WeatherCom

abuqTCmv.jpg

OK this use to work, I've been trying since yesterday.  I started with my original scripts. They didn't work so I downloaded the scripts again.
Put them in home as per the PDF ... got nothing, put the in /media/5/conky and ran them from there.  Didn't work.  I've tried both old and new addresses:

#address="http://www.weather.com/weather/5-day/Buenos+Aires+Argentina+ARBA0009"
address="http://www.weather.com/weather/5-day/Buenos+Aires+ARBA0009:1:AR"

Old address got nothing, new address at least show images.  All files in:

  • /media/5/conky/Conky_WeatherCom/5days

  • /media/5/conky/Conky_WeatherCom/10days

  • /media/5/conky/Conky_WeatherCom/RightNow

are 0byte files except:

  • /media/5/conky/Conky_WeatherCom/RightNow/messages_long_rn_metric

it has 168 Bytes

... running from: /media/5/conky/Conky_WeatherCom/BsAs_conkyrc

# ORIG ## killall conky && conky -c ~/Conky_WeatherCom/BsAs_conkyrc &
# killall conky && conky -c /media/5/conky/Conky_WeatherCom/BsAs_conkyrc &
# Scripts by: TeoBigusDickus
# http://tiny.cc/s6e4cw
###  Begin Window Settings  ##################################################
# Create own window instead of using desktop (required in nautilus)
own_window yes

# Use the Xdbe extension? (eliminates flicker)
# It is highly recommended to use own window with this one
# so double buffer won't be so big.
double_buffer yes

own_window_type normal #override
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager
#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
# own_window_colour #4d4d4d
own_window_class weather·com
own_window_title BsAs Arg.

### ARGB can be used for real transparency
### NOTE that a composite manager is required for real transparency.
### This option will not work as desired (in most cases) in conjunction with
### own_window_type override
# own_window_argb_visual yes

### When ARGB visuals are enabled, this use this to modify the alpha value
### Use: own_window_type normal
### Use: own_window_transparent no
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
#own_window_argb_value 150

minimum_size 970 0 ## width, height
maximum_width 970  ## width, usually a good idea to equal minimum width

gap_x 150 ### left &right
gap_y 50 ### up & down

# Aligned position on screen, may be
# top_left, top_middle, top_right or tl, tm, tr
# bottom_left, bottom_middle, bottom_right or bl, bm, br
# middle_left, middle_middle, middle_right or ml, mm, mr

alignment bl
####################################################  End Window Settings  ###
###  Font Settings  ##########################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes
#xftfont Anonymous Pro:size=9
xftfont WenQuanYi Micro Hei Mono:bold:size=8

# Alpha of Xft font. Must be a value at or between 1 and 0 ###
xftalpha 0
# Force UTF8? requires XFT ###
override_utf8_locale yes

draw_shades no #### <<<<<<------------------To see it easier on light screens.
#default_shade_color black

draw_outline no #### <<<<<<---------------- Amplifies text if yes
default_outline_color black

uppercase no
######################################################  End Font Settings  ###
###  Color Settings  #########################################################
default_shade_color gray
default_outline_color black

default_color DCDCDC #Gainsboro
color0 ffe595 #Teo Gold
color1 778899 #LightSlateGrey
color2 FF8C00 #Darkorange
color3 7FFF00 #Chartreuse
color4 FFA07A #LightSalmon
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
color7 00FFFF #Cyan #48D1CC #MediumTurquoise
color8 FFFF00 #Yellow
color9 FF0000 #Red  #A52A2A #DarkRed
#####################################################  End Color Settings  ###
###  Borders Section  ########################################################
draw_borders no
# Stippled borders?
stippled_borders 0
# border margins
border_inner_margin 5
border_outer_margin 0
# border width
border_width 0
# graph borders
draw_graph_borders no
#####################################################  End Borders Secton  ###
###  Miscellaneous Section  ##################################################

# Boolean value, if true, Conky will be forked to background when started.
background no

# Adds spaces around certain objects to stop them from moving other things
# around, this only helps if you are using a mono font
# Options: right, left or none
use_spacer right

# Default and Minimum size is 256 - needs more for single commands that
# "call" a lot of text IE: bash scripts
text_buffer_size 256

# Subtract (file system) buffers from used memory?
no_buffers yes

# change GiB to G and MiB to M
short_units yes

# Like it says, ot pads the decimals on % values
# doesn't seem to work since v1.7.1
pad_percents 2

#   Maximum size of user text buffer, i.e. layout below TEXT line in config file
#  (default is 16384 bytes)
# max_user_text 16384

##############################################  End Miscellaneous Section  ###
###  LUA Settings  ###########################################################
## Above and After TEXT - requires a composite manager or blinks.
##
# lua_load ~/Conky/LUA/draw-bg.lua
#TEXT
#${lua conky_draw_bg 10 0 0 0 0 0x000000 0.6}
#
## ${lua conky_draw_bg corner_radius x_position y_position width height color alpha}
##
## OR Both above TEXT (No composite manager required - no blinking!)
#
#lua_load ~/Conky/LUA/draw-bg.lua
#lua_draw_hook_pre draw_bg 10 0 0 0 0 0x000000 0.5
#
#######################################################  End LUA Settings  ###

# The all important - How often conky refreshes.
# If you have a "Crey" try: 0.2 - smokin' - but watch the CPU useage go UP!
update_interval 1 #15

## ${image ~/Conky/images/red+.png -p 0,15 -s 67x40}
## ${image ~/Conky/images/red+.png -p 165,52 -s 125x75}

# stuff after 'TEXT' will be formatted on screen
TEXT
${execi 500 bash /media/5/conky/Conky_WeatherCom/BsAs_weath_com}\
Buenos Aires Arg.${goto 180}${cpubar cpu0 1,40} ${color0}Next 36 Hours${color} ${cpubar cpu0 1,40}${color}\
${goto 390}${cpubar cpu0 1,230} ${color0}5 Day Forecast${color} ${cpubar cpu0 1,230}
${color0}${time %a %m/%d/%y - %H:%M}  ${execi 600 sed -n '2p' /media/5/conky/Conky_WeatherCom/RightNow/days_rn}\
${goto 390}${color0}${execi 600 sed -n '1p' /media/5/conky/Conky_WeatherCom/5days/days}\
${goto 510}${execi 600 sed -n '2p' /media/5/conky/Conky_WeatherCom/5days/days}\
${goto 630}${execi 600 sed -n '3p' /media/5/conky/Conky_WeatherCom/5days/days}\
${goto 750}${execi 600 sed -n '4p' /media/5/conky/Conky_WeatherCom/5days/days}\
${goto 870}${execi 600 sed -n '5p' /media/5/conky/Conky_WeatherCom/5days/days}${color}
${font WW Digital:size=16}         -${execi 600 sed -n '1p' /media/5/conky/Conky_WeatherCom/RightNow/temperatures_rn}°
         ${color2}-${execi 600 sed -n '5p' /media/5/conky/Conky_WeatherCom/RightNow/temperatures_rn}°${color}${font}
${image /media/5/conky/Conky_WeatherCom/r1.png -p 0,25 -s 75x75}

${font WW Digital:size=16} ${color}${execi 600 sed -n '1p' /media/5/conky/Conky_WeatherCom/RightNow/messages_rn}${font}
${color0}Wind: ${color}${execi 600 sed -n '1p' /media/5/conky/Conky_WeatherCom/RightNow/wind_rn} ${execi 600 sed -n '2p' /media/5/conky/Conky_WeatherCom/RightNow/wind_rn}km/h
${color0}Hum:  ${color}${execi 600 sed -n '1p' /media/5/conky/Conky_WeatherCom/RightNow/humidity_rn}
${color0}DP:   ${color}${execi 600 sed -n '1p' /media/5/conky/Conky_WeatherCom/RightNow/dew_point_rn}°
${color0}Bar:  ${color}${execi 600 sed -n '1p' /media/5/conky/Conky_WeatherCom/RightNow/pressure_rn} mb
${color0}Vis:  ${color}${execi 600 sed -n '1p' /media/5/conky/Conky_WeatherCom/RightNow/visibility_rn} km
${color0}UVI:  ${color}${execi 600 sed -n '1p' /media/5/conky/Conky_WeatherCom/RightNow/uv_rn}
${color0}${execi 600 sed -n '1p' /media/5/conky/Conky_WeatherCom/RightNow/sunr_suns_rn}
      ${color}${execi 600 sed -n '2p' /media/5/conky/Conky_WeatherCom/RightNow/sunr_suns_rn}\
${image /media/5/conky/Conky_WeatherCom/r2.png -p 175,30 -s 65x65}
${voffset -200}${goto 250}${color0}Temp: ${color}${execi 600 sed -n '2p' /media/5/conky/Conky_WeatherCom/RightNow/temperatures_rn}°
${goto 250}${color0}Wind: ${color}${execi 600 sed -n '3p' /media/5/conky/Conky_WeatherCom/RightNow/wind_rn} ${execi 600 sed -n '4p' /media/5/conky/Conky_WeatherCom/RightNow/wind_rn}km/h
${goto 250}${color0}Hum:  ${color}${execi 600 sed -n '2p' /media/5/conky/Conky_WeatherCom/RightNow/humidity_rn}
${goto 250}${color0}UVI:  ${color}${execi 600 sed -n '2p' /media/5/conky/Conky_WeatherCom/RightNow/uv_rn|cut -c1-2}
${goto 250}${color0}  ${color}${execi 600 sed -n '2p' /media/5/conky/Conky_WeatherCom/RightNow/uv_rn|cut -c5-15}
${goto 180}${color3}${execi 600 sed -n '3p' /media/5/conky/Conky_WeatherCom/RightNow/sunr_suns_rn}${color}${execi 600 sed -n '4p' /media/5/conky/Conky_WeatherCom/RightNow/sunr_suns_rn}
${goto 180}${color0}${execi 600 sed -n '3p' /media/5/conky/Conky_WeatherCom/RightNow/days_rn}${color}\
${image /media/5/conky/Conky_WeatherCom/r3.png -p 175,120 -s 65x65}
${goto 250}${color0}Temp: ${color}${execi 600 sed -n '3p' /media/5/conky/Conky_WeatherCom/RightNow/temperatures_rn}°
${goto 250}${color0}Wind: ${color}${execi 600 sed -n '5p' /media/5/conky/Conky_WeatherCom/RightNow/wind_rn} ${execi 600 sed -n '6p' /media/5/conky/Conky_WeatherCom/RightNow/wind_rn}km/h
${goto 250}${color0}Hum:  ${color}${execi 600 sed -n '3p' /media/5/conky/Conky_WeatherCom/RightNow/humidity_rn}
${goto 250}${color0}UVI:  ${color}${execi 600 sed -n '3p' /media/5/conky/Conky_WeatherCom/RightNow/uv_rn|cut -c1-2}
${goto 250}${color0}  ${color}${execi 600 sed -n '3p' /media/5/conky/Conky_WeatherCom/RightNow/uv_rn|cut -c5-15}
${goto 180}${color3}${execi 600 sed -n '5p' /media/5/conky/Conky_WeatherCom/RightNow/sunr_suns_rn}${color}${execi 600 sed -n '6p' /media/5/conky/Conky_WeatherCom/RightNow/sunr_suns_rn}
${goto 180}${color0}${execi 600 sed -n '4p' /media/5/conky/Conky_WeatherCom/RightNow/days_rn}${color}\
${image /media/5/conky/Conky_WeatherCom/r4.png -p 175,210 -s 65x65}
${goto 250}${color0}Temp: ${color}${execi 600 sed -n '4p' /media/5/conky/Conky_WeatherCom/RightNow/temperatures_rn}°
${goto 250}${color0}Wind: ${color}${execi 600 sed -n '7p' /media/5/conky/Conky_WeatherCom/RightNow/wind_rn} ${execi 600 sed -n '8p' /media/5/conky/Conky_WeatherCom/RightNow/wind_rn}km/h
${goto 250}${color0}Hum:  ${color}${execi 600 sed -n '4p' /media/5/conky/Conky_WeatherCom/RightNow/humidity_rn}
${goto 250}${color0}UVI:  ${color}${execi 600 sed -n '4p' /media/5/conky/Conky_WeatherCom/RightNow/uv_rn|cut -c1-2}
${goto 250}${color0}  ${color}${execi 600 sed -n '4p' /media/5/conky/Conky_WeatherCom/RightNow/uv_rn|cut -c5-15}
${goto 180}${color3}${execi 600 sed -n '7p' /media/5/conky/Conky_WeatherCom/RightNow/sunr_suns_rn}${color}${execi 600 sed -n '8p' /media/5/conky/Conky_WeatherCom/RightNow/sunr_suns_rn}
# ... start 5 day forecast ... here ...
${voffset -262}${goto 390}-${execi 600 sed -n '1p' /media/5/conky/Conky_WeatherCom/5days/temperatures}°\
${goto 510}${execi 600 sed -n '2p' /media/5/conky/Conky_WeatherCom/5days/temperatures}°\
${goto 630}${execi 600 sed -n '3p' /media/5/conky/Conky_WeatherCom/5days/temperatures}°\
${goto 750}${execi 600 sed -n '4p' /media/5/conky/Conky_WeatherCom/5days/temperatures}°\
${goto 870}${execi 600 sed -n '5p' /media/5/conky/Conky_WeatherCom/5days/temperatures}°




${goto 390}${execi 600 sed -n '1p' /media/5/conky/Conky_WeatherCom/5days/precipitation|cut -c 11-20}\
${goto 510}${execi 600 sed -n '2p' /media/5/conky/Conky_WeatherCom/5days/precipitation|cut -c 11-20}\
${goto 630}${execi 600 sed -n '3p' /media/5/conky/Conky_WeatherCom/5days/precipitation|cut -c 11-20}\
${goto 750}${execi 600 sed -n '4p' /media/5/conky/Conky_WeatherCom/5days/precipitation|cut -c 11-20}\
${goto 870}${execi 600 sed -n '5p' /media/5/conky/Conky_WeatherCom/5days/precipitation|cut -c 11-20}
${goto 390}${execi 600 sed -n '1p' /media/5/conky/Conky_WeatherCom/5days/wind}\
 ${execi 600 sed -n '2p' /media/5/conky/Conky_WeatherCom/5days/wind}kph\
${goto 510}${execi 600 sed -n '3p' /media/5/conky/Conky_WeatherCom/5days/wind}\
 ${execi 600 sed -n '4p' /media/5/conky/Conky_WeatherCom/5days/wind}kph\
${goto 630}${execi 600 sed -n '5p' /media/5/conky/Conky_WeatherCom/5days/wind}\
 ${execi 600 sed -n '6p' /media/5/conky/Conky_WeatherCom/5days/wind}kph\
${goto 750}${execi 600 sed -n '7p' /media/5/conky/Conky_WeatherCom/5days/wind}\
 ${execi 600 sed -n '8p' /media/5/conky/Conky_WeatherCom/5days/wind}kph\
${goto 870}${execi 600 sed -n '9p' /media/5/conky/Conky_WeatherCom/5days/wind}\
 ${execi 600 sed -n '10p' /media/5/conky/Conky_WeatherCom/5days/wind}kph
${goto 390}Hum: ${execi 600 sed -n '1p' /media/5/conky/Conky_WeatherCom/5days/humidity}\
${goto 510}Hum: ${execi 600 sed -n '2p' /media/5/conky/Conky_WeatherCom/5days/humidity}\
${goto 630}Hum: ${execi 600 sed -n '3p' /media/5/conky/Conky_WeatherCom/5days/humidity}\
${goto 750}Hum: ${execi 600 sed -n '4p' /media/5/conky/Conky_WeatherCom/5days/humidity}\
${goto 870}Hum: ${execi 600 sed -n '5p' /media/5/conky/Conky_WeatherCom/5days/humidity}
${goto 390}UVI: ${execi 600 sed -n '1p' /media/5/conky/Conky_WeatherCom/5days/uv|cut -c1-2}\
${goto 510}UV: ${execi 600 sed -n '2p' /media/5/conky/Conky_WeatherCom/5days/uv|cut -c1-2}\
${goto 630}UV: ${execi 600 sed -n '3p' /media/5/conky/Conky_WeatherCom/5days/uv|cut -c1-2}\
${goto 750}UV: ${execi 600 sed -n '4p' /media/5/conky/Conky_WeatherCom/5days/uv|cut -c1-2}\
${goto 870}UV: ${execi 600 sed -n '5p' /media/5/conky/Conky_WeatherCom/5days/uv|cut -c1-2}
${goto 390} ${execi 600 sed -n '1p' /media/5/conky/Conky_WeatherCom/5days/uv|cut -c4-14}\
${goto 510} ${execi 600 sed -n '2p' /media/5/conky/Conky_WeatherCom/5days/uv|cut -c4-14}\
${goto 630} ${execi 600 sed -n '3p' /media/5/conky/Conky_WeatherCom/5days/uv|cut -c4-14}\
${goto 750} ${execi 600 sed -n '4p' /media/5/conky/Conky_WeatherCom/5days/uv|cut -c4-14}\
${goto 870} ${execi 600 sed -n '5p' /media/5/conky/Conky_WeatherCom/5days/uv|cut -c4-14}
${goto 390}${color8}S:${execi 600 sed -n '1p' /media/5/conky/Conky_WeatherCom/5days/sunrise}-${execi 600 sed -n '1p' /media/5/conky/Conky_WeatherCom/5days/sunset}\
${goto 510}S:${execi 600 sed -n '2p' /media/5/conky/Conky_WeatherCom/5days/sunrise}-${execi 600 sed -n '2p' /media/5/conky/Conky_WeatherCom/5days/sunset}\
${goto 630}S:${execi 600 sed -n '3p' /media/5/conky/Conky_WeatherCom/5days/sunrise}-${execi 600 sed -n '3p' /media/5/conky/Conky_WeatherCom/5days/sunset}\
${goto 750}S:${execi 600 sed -n '4p' /media/5/conky/Conky_WeatherCom/5days/sunrise}-${execi 600 sed -n '4p' /media/5/conky/Conky_WeatherCom/5days/sunset}\
${goto 870}S:${execi 600 sed -n '5p' /media/5/conky/Conky_WeatherCom/5days/sunrise}-${execi 600 sed -n '5p' /media/5/conky/Conky_WeatherCom/5days/sunset}${color}
# first 5 day images
${image /media/5/conky/Conky_WeatherCom/d1.png -p 385,40 -s 50x50}\
${image /media/5/conky/Conky_WeatherCom/d2.png -p 505,40 -s 50x50}\
${image /media/5/conky/Conky_WeatherCom/d3.png -p 625,40 -s 50x50}\
${image /media/5/conky/Conky_WeatherCom/d4.png -p 745,40 -s 50x50}\
${image /media/5/conky/Conky_WeatherCom/d5.png -p 865,40 -s 50x50}
## moon 5 day images
${image /media/5/conky/Conky_WeatherCom/m1.gif -p 385,170 -s 35x35}\
${image /media/5/conky/Conky_WeatherCom/m3.gif -p 505,170 -s 35x35}\
${image /media/5/conky/Conky_WeatherCom/m5.gif -p 625,170 -s 35x35}\
${image /media/5/conky/Conky_WeatherCom/m7.gif -p 745,170 -s 35x35}\
${image /media/5/conky/Conky_WeatherCom/m9.gif -p 865,170 -s 35x35}

${goto 390}${color1}M:${execi 600 sed -n '1p' /media/5/conky/Conky_WeatherCom/5days/moonrise}-${execi 600 sed -n '1p' /media/5/conky/Conky_WeatherCom/5days/moonset}\
${goto 510}M:${execi 600 sed -n '2p' /media/5/conky/Conky_WeatherCom/5days/moonrise}-${execi 600 sed -n '2p' /media/5/conky/Conky_WeatherCom/5days/moonset}\
${goto 630}M:${execi 600 sed -n '3p' /media/5/conky/Conky_WeatherCom/5days/moonrise}-${execi 600 sed -n '3p' /media/5/conky/Conky_WeatherCom/5days/moonset}\
${goto 750}M:${execi 600 sed -n '4p' /media/5/conky/Conky_WeatherCom/5days/moonrise}-${execi 600 sed -n '4p' /media/5/conky/Conky_WeatherCom/5days/moonset}\
${goto 870}M:${execi 600 sed -n '5p' /media/5/conky/Conky_WeatherCom/5days/moonrise}-${execi 600 sed -n '5p' /media/5/conky/Conky_WeatherCom/5days/moonset}${color}
${font WenQuanYi Micro Hei Mono:bold:size=7}\
${goto 390}${execi 600 sed -n '2p' /media/5/conky/Conky_WeatherCom/5days/moonphase}\
${goto 510}${execi 600 sed -n '4p' /media/5/conky/Conky_WeatherCom/5days/moonphase}\
${goto 630}${execi 600 sed -n '6p' /media/5/conky/Conky_WeatherCom/5days/moonphase}\
${goto 750}${execi 600 sed -n '8p' /media/5/conky/Conky_WeatherCom/5days/moonphase}\
${goto 870}${execi 600 sed -n '10p' /media/5/conky/Conky_WeatherCom/5days/moonphase}${font}
${goto 390}${cpubar cpu0 1,236} ${color0}6 to 10 Days${color} ${cpubar cpu0 1,236}
${goto 390}${color0}${execi 600 sed -n '6p' /media/5/conky/Conky_WeatherCom/10days/days10}\
${goto 510}${execi 600 sed -n '7p' /media/5/conky/Conky_WeatherCom/10days/days10}\
${goto 630}${execi 600 sed -n '8p' /media/5/conky/Conky_WeatherCom/10days/days10}\
${goto 750}${execi 600 sed -n '9p' /media/5/conky/Conky_WeatherCom/10days/days10}\
${goto 870}${execi 600 sed -n '10p' /media/5/conky/Conky_WeatherCom/10days/days10}
${goto 390}${color}${execi 600 sed -n '6p' /media/5/conky/Conky_WeatherCom/10days/temperatures10}°\
${goto 510}${execi 600 sed -n '7p' /media/5/conky/Conky_WeatherCom/10days/temperatures10}°\
${goto 630}${execi 600 sed -n '8p' /media/5/conky/Conky_WeatherCom/10days/temperatures10}°\
${goto 750}${execi 600 sed -n '9p' /media/5/conky/Conky_WeatherCom/10days/temperatures10}°\
${goto 870}${execi 600 sed -n '10p' /media/5/conky/Conky_WeatherCom/10days/temperatures10}°

${image /media/5/conky/Conky_WeatherCom/d6.png -p 385,278 -s 50x50}\
${image /media/5/conky/Conky_WeatherCom/d7.png -p 505,278 -s 50x50}\
${image /media/5/conky/Conky_WeatherCom/d8.png -p 625,278 -s 50x50}\
${image /media/5/conky/Conky_WeatherCom/d9.png -p 745,278 -s 50x50}\
${image /media/5/conky/Conky_WeatherCom/d10.png -p 865,278 -s 50x50}


${goto 390}${execi 600 sed -n '6p' /media/5/conky/Conky_WeatherCom/10days/precipitation10}\
${goto 510}${execi 600 sed -n '7p' /media/5/conky/Conky_WeatherCom/10days/precipitation10}\
${goto 630}${execi 600 sed -n '8p' /media/5/conky/Conky_WeatherCom/10days/precipitation10}\
${goto 750}${execi 600 sed -n '9p' /media/5/conky/Conky_WeatherCom/10days/precipitation10}\
${goto 870}${execi 600 sed -n '10p' /media/5/conky/Conky_WeatherCom/10days/precipitation10}
${goto 390}${execi 600 sed -n '6p' /media/5/conky/Conky_WeatherCom/10days/wind10}kph\
${goto 510}${execi 600 sed -n '7p' /media/5/conky/Conky_WeatherCom/10days/wind10}kph\
${goto 630}${execi 600 sed -n '8p' /media/5/conky/Conky_WeatherCom/10days/wind10}kph\
${goto 750}${execi 600 sed -n '9p' /media/5/conky/Conky_WeatherCom/10days/wind10}kph\
${goto 870}${execi 600 sed -n '10p' /media/5/conky/Conky_WeatherCom/10days/wind10}kph

/media/5/conky/Conky_WeatherCom/BsAs_weath_com

#!/bin/bash

#put your 5 day weather.com address here
## address="http://www.weather.com/weather/5-day/Orlando+FL+32832"
#address="http://www.weather.com/weather/5-day/Wyatt+MO+USMO0960"
#address="http://www.weather.com/weather/5-day/Buenos+Aires+Argentina+ARBA0009"
address="http://www.weather.com/weather/5-day/Buenos+Aires+ARBA0009:1:AR"

#Change this variable to any other value than 1 if you don't want metric output
metrification=1

#Sun/Moon Rise/Set correction: set this variable to the difference of the value provided by weather.com
#and the value the script(wget) gives you. For example, if your conky says that the sun rises at 5:00
#and weather.com says that the sun rises at 4:00, make the variable equal to -1
sun_moon_correction=1

## kill -STOP $(pidof conky)
## killall wget

addr_now=$(echo $address|sed 's/5-day/today/')
wget -O /media/5/conky/Conky_WeatherCom/RightNow/raw_rn $addr_now

wget -O /media/5/conky/Conky_WeatherCom/5days/raw $address

addr_10=$(echo $address|sed 's/5-day/tenday/')
wget -O /media/5/conky/Conky_WeatherCom/10days/raw10 $addr_10


if [[ -s /media/5/conky/Conky_WeatherCom/RightNow/raw_rn ]]; then

	#############
	# Right now #
	#############
	sed -i '/twc-col-1 twc-animated-icon/,/twc-forecast-table twc-forecast-links-table/!d' /media/5/conky/Conky_WeatherCom/RightNow/raw_rn

	#file: days_rn
	sed '/twc-forecast-when/!d' /media/5/conky/Conky_WeatherCom/RightNow/raw_rn > /media/5/conky/Conky_WeatherCom/RightNow/days_rn
	sed -i -e 's/^.*">//g' -e 's/<.*$//g' /media/5/conky/Conky_WeatherCom/RightNow/days_rn

	#file: images_rn
	sed '/.png/!d' /media/5/conky/Conky_WeatherCom/RightNow/raw_rn > /media/5/conky/Conky_WeatherCom/RightNow/images_rn
	sed -i -e 's/^.*src="//g' -e 's/".*$//g' -e 's/^.*\///g' /media/5/conky/Conky_WeatherCom/RightNow/images_rn
	for (( i=1; i<=4; i++))
	    do
	        image=$(sed -n ${i}p /media/5/conky/Conky_WeatherCom/RightNow/images_rn)
	        cp /media/5/conky/Conky_WeatherCom/weather_com_images/$image /media/5/conky/Conky_WeatherCom/r${i}.png
	    done

	#file: messages_rn
	sed '/.png/!d' /media/5/conky/Conky_WeatherCom/RightNow/raw_rn > /media/5/conky/Conky_WeatherCom/RightNow/messages_rn
	sed -i -e 's/^.*alt="//g' -e 's/".*$//g' /media/5/conky/Conky_WeatherCom/RightNow/messages_rn

	#file: temperatures_rn
	sed '/"twc-col-1 twc-forecast-temperature"/,/"merch-link"/!d' /media/5/conky/Conky_WeatherCom/RightNow/raw_rn > /media/5/conky/Conky_WeatherCom/RightNow/temperatures_rn
	sed -i -e '/&deg;/!d' -e 's/^.*<strong>//g' -e 's/&deg;.*$//g' /media/5/conky/Conky_WeatherCom/RightNow/temperatures_rn

	#file: precipitation_rn
	sed '/twc-col-1 twc-line-precip/,/"twc-col-1 twc-line-wind"/!d' /media/5/conky/Conky_WeatherCom/RightNow/raw_rn > /media/5/conky/Conky_WeatherCom/RightNow/precipitation_rn
	sed -i -e '/^[ \t]*$/d' -e 's/^.*">//g' -e 's/<strong>//g' -e 's/<\/strong>.*$//g' /media/5/conky/Conky_WeatherCom/RightNow/precipitation_rn
	sed -i -e 's/<br>/ /g' -e 's/<\/span>//g' -e '/<\|Wind/d' -e '/^[ \t]*$/d' -e 's/^[ \t]*//g' -e '/&nbsp/d' /media/5/conky/Conky_WeatherCom/RightNow/precipitation_rn

	#file: wind_rn
	sed '/"twc-col-1 twc-line-wind"/,/twc-col-1 twc-line-nar/!d' /media/5/conky/Conky_WeatherCom/RightNow/raw_rn > /media/5/conky/Conky_WeatherCom/RightNow/wind_rn
	sed -i -e '/^[ \t]*$/d' -e '/</d' -e 's/^[ \t]*//g' -e 's/From //g' -e 's/ .*$//g' -e 's/mph\|km//g' /media/5/conky/Conky_WeatherCom/RightNow/wind_rn

	#file: messages_long_rn
	sed '/"twc-col-1 twc-line-nar"/,/twc-forecast-table twc-last/!d' /media/5/conky/Conky_WeatherCom/RightNow/raw_rn > /media/5/conky/Conky_WeatherCom/RightNow/messages_long_rn
	sed -i -e 's/^.*twc-line-nar ">//g' -e 's/<\/td>.*$//g' -e '/<t\|<\/t/d' -e '/^[ \t]*$/d' -e 's/^[ \t]*//g' -e '/</d' /media/5/conky/Conky_WeatherCom/RightNow/messages_long_rn

	#file: humidity_rn
	sed '/>Humidity:</,/>Dew Point:</!d' /media/5/conky/Conky_WeatherCom/RightNow/raw_rn > /media/5/conky/Conky_WeatherCom/RightNow/humidity_rn
	sed -i -e '/%/!d' -e 's/^.*first">//g' -e 's/^.*<\/span> //g' -e 's/<.*$//g' /media/5/conky/Conky_WeatherCom/RightNow/humidity_rn

	#file: dew_point_rn
	sed '/>Dew Point:</,/>Pressure:</!d' /media/5/conky/Conky_WeatherCom/RightNow/raw_rn > /media/5/conky/Conky_WeatherCom/RightNow/dew_point_rn
	sed -i -e '/&deg;/!d' -e 's/^.*<\/span>//g' -e 's/&deg;.*$//g' /media/5/conky/Conky_WeatherCom/RightNow/dew_point_rn

	#file: pressure_rn
	sed '/>Pressure:</,/>Visibility:</!d' /media/5/conky/Conky_WeatherCom/RightNow/raw_rn > /media/5/conky/Conky_WeatherCom/RightNow/pressure_rn
	sed -i -e '/</d' -e '/^[ \t]*$/d' -e '/in\|mb/d' -e 's/^[ \t]*//g' -e 's/[ \t].*$//g' /media/5/conky/Conky_WeatherCom/RightNow/pressure_rn

	#file: visibility_rn
	sed '/>Visibility:</,/>UV Index:</!d' /media/5/conky/Conky_WeatherCom/RightNow/raw_rn > /media/5/conky/Conky_WeatherCom/RightNow/visibility_rn
	sed -i -e '/</d' -e '/^[ \t]*$/d' -e '/mi\|km/d' -e 's/^[ \t]*//g' -e 's/[ \t].*$//g' /media/5/conky/Conky_WeatherCom/RightNow/visibility_rn

	#file: uv_rn
	sed '/>UV Index:</,/twc-col-1 twc-line-daylight/!d' /media/5/conky/Conky_WeatherCom/RightNow/raw_rn > /media/5/conky/Conky_WeatherCom/RightNow/uv_rn
	sed -i -e '/</d' -e '/^[ \t]*$/d' -e 's/^[ \t]*//g' /media/5/conky/Conky_WeatherCom/RightNow/uv_rn

	#file: sunr_suns_rn
	sed '/twc-col-1 twc-line-daylight/,/<\/table>/!d' /media/5/conky/Conky_WeatherCom/RightNow/raw_rn > /media/5/conky/Conky_WeatherCom/RightNow/sunr_suns_rn
	sed -i -e '/^[ \t]*$/d' -e 's/<strong>/\n/g' -e 's/^.*daylight">//g' -e '/^[ \t]*$/d' /media/5/conky/Conky_WeatherCom/RightNow/sunr_suns_rn
	sed -i -e 's/<\/strong>.*$//g' -e '/</d' -e '/^[ \t]*$/d' -e 's/^[ \t]*//g' /media/5/conky/Conky_WeatherCom/RightNow/sunr_suns_rn
	sed -i -e 's/^.*[a-z][a-z][a-z] [a-z][a-z][a-z] [0-9][0-9] //g' -e 's/:[0-9][0-9] .*$//g' /media/5/conky/Conky_WeatherCom/RightNow/sunr_suns_rn
	for (( i=4; i<=8; i+=2 ))
    do
        whole_time=$(sed -n ${i}p /media/5/conky/Conky_WeatherCom/RightNow/sunr_suns_rn)
        time=$(echo $whole_time|sed 's/:.*$//g')
        time=$((10#$time))
        minutes=$(echo $whole_time|sed 's/^.*:/:/g')
        corrected_time=$(( $time+$sun_moon_correction ))
        if (( corrected_time >= 24 )); then
            ((corrected_time-=24))
        fi
        sed -i $i"s/.*/$corrected_time/" /media/5/conky/Conky_WeatherCom/RightNow/sunr_suns_rn
        sed -i $i"s/$/$minutes/" /media/5/conky/Conky_WeatherCom/RightNow/sunr_suns_rn
    done

fi


if [[ -s /media/5/conky/Conky_WeatherCom/5days/raw ]]; then

	##################
	# 5 day forecast #
	##################
	sed -i '/twc-forecast-table twc-first/,/twc-forecast-table twc-forecast-links-table/!d' /media/5/conky/Conky_WeatherCom/5days/raw

	#file: days
	egrep -i 'Mon |Tue |Wed |Thu |Fri |Sat |Sun ' /media/5/conky/Conky_WeatherCom/5days/raw > /media/5/conky/Conky_WeatherCom/5days/days
	sed -i -e '/</d' -e 's/^[ \t]*//g' -e 's/ .*$//g' /media/5/conky/Conky_WeatherCom/5days/days
	sed -i -e 's/mon/MON/g' -e 's/tue/TUE/g' -e 's/wed/WED/g' -e 's/thu/THU/g' -e 's/fri/FRI/g' -e 's/sat/SAT/g' -e 's/sun/SUN/g' /media/5/conky/Conky_WeatherCom/5days/days

	#file: images
	egrep -i '.png' /media/5/conky/Conky_WeatherCom/5days/raw > /media/5/conky/Conky_WeatherCom/5days/images
	sed -i -e 's/^.*src="//g' -e 's/".*$//g' /media/5/conky/Conky_WeatherCom/5days/images
	sed -i -e 's/^.*\///g' /media/5/conky/Conky_WeatherCom/5days/images

	#file: messages
	sed '/twc-wx-phrase1/,/twc-forecast-temperature-high/!d' /media/5/conky/Conky_WeatherCom/5days/raw > /media/5/conky/Conky_WeatherCom/5days/messages
	sed -i -e '/<t/d' -e '/<\/t/d' -e '/^\t*$/d' -e 's/^\t*//g' /media/5/conky/Conky_WeatherCom/5days/messages

	#file: temperatures
	sed '/twc-forecast-temperature-high/,/twc-col-1 twc-line-precip/!d' /media/5/conky/Conky_WeatherCom/5days/raw > /media/5/conky/Conky_WeatherCom/5days/temperatures
	sed -i -e '/wx-hi\|wx-low/!d' -e 's/^.*<strong>//g' -e 's/^.*low[0-9]">//g' /media/5/conky/Conky_WeatherCom/5days/temperatures
	sed -i -e 's/&deg;.*$//g' -e 's/<\/strong>.*$//g' /media/5/conky/Conky_WeatherCom/5days/temperatures
	for (( i=1; i<=5; i++ ))
		do
			temp=$(sed -n $((i+5))p /media/5/conky/Conky_WeatherCom/5days/temperatures)
			sed -i $i"s/$/ \/ $temp/" /media/5/conky/Conky_WeatherCom/5days/temperatures
		done

	#file: precipitation
	sed '/twc-col-1 twc-line-precip/,/twc-col-1 twc-line-wind/!d' /media/5/conky/Conky_WeatherCom/5days/raw > /media/5/conky/Conky_WeatherCom/5days/precipitation
	sed -i -e '/Chance /!d' -e 's/^.*">//g' -e 's/<\/strong.*$//g' -e 's/<br><strong>/ /g' /media/5/conky/Conky_WeatherCom/5days/precipitation

	#file: wind
	sed '/twc-col-1 twc-line-wind/,/twc-col-1 twc-line-humidity/!d' /media/5/conky/Conky_WeatherCom/5days/raw > /media/5/conky/Conky_WeatherCom/5days/wind
	sed -i -e '/^$/d' -e '/^\t*$/d' -e '/^ *$/d' -e 's/^ *\|^\t*//g' /media/5/conky/Conky_WeatherCom/5days/wind
	sed -i -e '/</d' -e 's/^ *//g' -e 's/ .*$//g' /media/5/conky/Conky_WeatherCom/5days/wind

	#file: humidity
	sed '/twc-col-1 twc-line-humidity/,/UV Index/!d' /media/5/conky/Conky_WeatherCom/5days/raw > /media/5/conky/Conky_WeatherCom/5days/humidity
	sed -i -e '/humidity/!d' -e 's/^.*<strong>//g' -e 's/<\/strong>.*$//g' /media/5/conky/Conky_WeatherCom/5days/humidity

	#file: uv
	sed '/UV Index/,/twc-line-sunrise/!d' /media/5/conky/Conky_WeatherCom/5days/raw > /media/5/conky/Conky_WeatherCom/5days/uv
	sed -i -e '/^$/d' -e '/^\t*$/d' -e '/^ *$/d' -e 's/^ *\|^\t*//g' /media/5/conky/Conky_WeatherCom/5days/uv
	sed -i -e '/</d' /media/5/conky/Conky_WeatherCom/5days/uv

	#file: sunrise
	sed '/twc-line-sunrise/,/twc-line-sunset/!d' /media/5/conky/Conky_WeatherCom/5days/raw > /media/5/conky/Conky_WeatherCom/5days/sunrise
	sed -i -e '/^$/d' -e '/^\t*$/d' -e '/^ *$/d' -e 's/^ *\|^\t*//g' /media/5/conky/Conky_WeatherCom/5days/sunrise
	sed -i -e '/</d' -e 's/^.*[a-z][a-z][a-z] [a-z][a-z][a-z] [0-9][0-9] //g' -e 's/ .*$//g' -e 's/:[0-9][0-9]$//g' /media/5/conky/Conky_WeatherCom/5days/sunrise
	for (( i=1; i<=5; i++ ))
    do
        whole_time=$(sed -n ${i}p /media/5/conky/Conky_WeatherCom/5days/sunrise)
        time=$(echo $whole_time|sed 's/:.*$//g')
        time=$((10#$time))
        minutes=$(echo $whole_time|sed 's/^.*:/:/g')
        corrected_time=$(( $time+$sun_moon_correction ))
        if (( corrected_time >= 24 )); then
            ((corrected_time-=24))
        fi
        sed -i $i"s/.*/$corrected_time/" /media/5/conky/Conky_WeatherCom/5days/sunrise
        sed -i $i"s/$/$minutes/" /media/5/conky/Conky_WeatherCom/5days/sunrise
    done

	#file: sunset
	sed '/twc-line-sunset/,/twc-line-moonrise/!d' /media/5/conky/Conky_WeatherCom/5days/raw > /media/5/conky/Conky_WeatherCom/5days/sunset
	sed -i -e '/^$/d' -e '/^\t*$/d' -e '/^ *$/d' -e 's/^ *\|^\t*//g' /media/5/conky/Conky_WeatherCom/5days/sunset
	sed -i -e '/</d' -e 's/^.*[a-z][a-z][a-z] [a-z][a-z][a-z] [0-9][0-9] //g' -e 's/ .*$//g' -e 's/:[0-9][0-9]$//g' /media/5/conky/Conky_WeatherCom/5days/sunset
	for (( i=1; i<=5; i++ ))
    do
        whole_time=$(sed -n ${i}p /media/5/conky/Conky_WeatherCom/5days/sunset)
        time=$(echo $whole_time|sed 's/:.*$//g')
        time=$((10#$time))
        minutes=$(echo $whole_time|sed 's/^.*:/:/g')
        corrected_time=$(( $time+$sun_moon_correction ))
        if (( corrected_time >= 24 )); then
            ((corrected_time-=24))
        fi
        sed -i $i"s/.*/$corrected_time/" /media/5/conky/Conky_WeatherCom/5days/sunset
        sed -i $i"s/$/$minutes/" /media/5/conky/Conky_WeatherCom/5days/sunset
    done

	#file: moonrise
	sed '/twc-line-moonrise/,/twc-line-moonset/!d' /media/5/conky/Conky_WeatherCom/5days/raw > /media/5/conky/Conky_WeatherCom/5days/moonrise
	sed -i -e '/^$/d' -e '/^\t*$/d' -e '/^ *$/d' -e 's/^ *\|^\t*//g' /media/5/conky/Conky_WeatherCom/5days/moonrise
	sed -i -e '/</d' -e 's/^.*[a-z][a-z][a-z] [a-z][a-z][a-z] [0-9][0-9] //g' -e 's/ .*$//g' -e 's/:[0-9][0-9]$//g' /media/5/conky/Conky_WeatherCom/5days/moonrise
	for (( i=1; i<=5; i++ ))
    do
        whole_time=$(sed -n ${i}p /media/5/conky/Conky_WeatherCom/5days/moonrise)
        time=$(echo $whole_time|sed 's/:.*$//g')
        time=$((10#$time))
        minutes=$(echo $whole_time|sed 's/^.*:/:/g')
        corrected_time=$(( $time+$sun_moon_correction ))
        if (( corrected_time >= 24 )); then
            ((corrected_time-=24))
        fi
        sed -i $i"s/.*/$corrected_time/" /media/5/conky/Conky_WeatherCom/5days/moonrise
        sed -i $i"s/$/$minutes/" /media/5/conky/Conky_WeatherCom/5days/moonrise
    done

	#file: moonset
	sed '/twc-line-moonset/,/twc-col-1 twc-line-daylight twc-moonphase-icon/!d' /media/5/conky/Conky_WeatherCom/5days/raw > /media/5/conky/Conky_WeatherCom/5days/moonset
	sed -i -e '/^$/d' -e '/^\t*$/d' -e '/^ *$/d' -e 's/^ *\|^\t*//g' /media/5/conky/Conky_WeatherCom/5days/moonset
	sed -i -e '/</d' -e 's/^.*[a-z][a-z][a-z] [a-z][a-z][a-z] [0-9][0-9] //g' -e 's/ .*$//g' -e 's/:[0-9][0-9]$//g' /media/5/conky/Conky_WeatherCom/5days/moonset
	for (( i=1; i<=5; i++ ))
    do
        whole_time=$(sed -n ${i}p /media/5/conky/Conky_WeatherCom/5days/moonset)
        time=$(echo $whole_time|sed 's/:.*$//g')
        time=$((10#$time))
        minutes=$(echo $whole_time|sed 's/^.*:/:/g')
        corrected_time=$(( $time+$sun_moon_correction ))
        if (( corrected_time >= 24 )); then
            ((corrected_time-=24))
        fi
        sed -i $i"s/.*/$corrected_time/" /media/5/conky/Conky_WeatherCom/5days/moonset
        sed -i $i"s/$/$minutes/" /media/5/conky/Conky_WeatherCom/5days/moonset
    done


	#file: moonphase
	sed '/twc-col-1 twc-line-daylight twc-moonphase-icon/,/<\/table>/!d' /media/5/conky/Conky_WeatherCom/5days/raw > /media/5/conky/Conky_WeatherCom/5days/moonphase
	sed -i -e '/.gif/!d' -e 's/^.*src="//g' -e 's/" alt="/\n/g' -e 's/".*$//g' -e 's/^.*\///g' /media/5/conky/Conky_WeatherCom/5days/moonphase
	for (( i=1; i<=9; i+=2))
	    do
	        image=$(sed -n ${i}p /media/5/conky/Conky_WeatherCom/5days/moonphase)
	        cp /media/5/conky/Conky_WeatherCom/weather_com_moonphases/$image /media/5/conky/Conky_WeatherCom/m$i.gif
	    done

fi


if [[ -s /media/5/conky/Conky_WeatherCom/10days/raw10 ]]; then

	###################
	# 10 day forecast #
	###################
	sed -i '/twc-forecast-table twc-first/,/twc-forecast-table twc-forecast-links-table/!d' /media/5/conky/Conky_WeatherCom/10days/raw10

	#file: days10
	egrep -i 'Mon |Tue |Wed |Thu |Fri |Sat |Sun ' /media/5/conky/Conky_WeatherCom/10days/raw10 > /media/5/conky/Conky_WeatherCom/10days/days10
	sed -i -e '/</d' -e 's/^\t*//g' -e 's/^ *//g' -e 's/ .*$//g' /media/5/conky/Conky_WeatherCom/10days/days10
	sed -i -e 's/Mon/MON/g' -e 's/Tue/TUE/g' -e 's/Wed/WED/g' -e 's/Thu/THU/g' -e 's/Fri/FRI/g' -e 's/Sat/SAT/g' -e 's/Sun/SUN/g' /media/5/conky/Conky_WeatherCom/10days/days10

	#file: images10
	egrep -i '.png' /media/5/conky/Conky_WeatherCom/10days/raw10 > /media/5/conky/Conky_WeatherCom/10days/images10
	sed -i -e 's/"><\/td>.*$//g' -e 's/^.*\///g' /media/5/conky/Conky_WeatherCom/10days/images10
	for (( i=1; i<=10; i++))
	    do
	        image=$(sed -n ${i}p /media/5/conky/Conky_WeatherCom/10days/images10)
	        cp /media/5/conky/Conky_WeatherCom/weather_com_images/$image /media/5/conky/Conky_WeatherCom/d$i.png
	    done

	#file: messages10
	sed '/"twc-wx-phrase1"/,/"twc-wx-hi1"/!d' /media/5/conky/Conky_WeatherCom/10days/raw10 > /media/5/conky/Conky_WeatherCom/10days/messages10
	sed -i -e '/</d' -e '/^[ \t]*$/d' -e 's/^[ \t]*//g' /media/5/conky/Conky_WeatherCom/10days/messages10

	#file: temperatures10
	sed '/"twc-wx-hi1"/,/twc-forecast-chart twc-forecast-table-second/!d' /media/5/conky/Conky_WeatherCom/10days/raw10 > /media/5/conky/Conky_WeatherCom/10days/temperatures10
	sed -i -e '/</d' -e '/^[ \t]*$/d' -e 's/&deg;//g' -e 's/^[ \t]*//g' -e 's/F//g' /media/5/conky/Conky_WeatherCom/10days/temperatures10
	for (( i=1; i<=10; i++ ))
		do
			temp=$(sed -n $((i+10))p /media/5/conky/Conky_WeatherCom/10days/temperatures10)
			sed -i $i"s/$/ \/ $temp/" /media/5/conky/Conky_WeatherCom/10days/temperatures10
		done
	#file: precipitation10
	sed '/twc-col-1 twc-line-precip/,/twc-col-10 twc-line-precip/!d' /media/5/conky/Conky_WeatherCom/10days/raw10 > /media/5/conky/Conky_WeatherCom/10days/precipitation10
	sed -i -e '/precip/!d' -e 's/^.*precip">//g' -e 's/<\/strong>.*$//g' -e 's/<br><strong>/ /g' /media/5/conky/Conky_WeatherCom/10days/precipitation10

	#file: wind10
	sed '/twc-col-1 twc-line-wind/,/twc-tombstone-bg-container/!d' /media/5/conky/Conky_WeatherCom/10days/raw10 > /media/5/conky/Conky_WeatherCom/10days/wind10
	sed -i -e '/fc-wind-desc/!d' -e 's/^.*<strong>//g' -e 's/<\/strong>.*$//g' -e 's/<br>at<br>/ /g' /media/5/conky/Conky_WeatherCom/10days/wind10

fi


###################################################
# metrification of the output files - requires bc #
###################################################

if (( metrification==1 )); then

	if [[ -s /media/5/conky/Conky_WeatherCom/RightNow/raw_rn && -s /media/5/conky/Conky_WeatherCom/5days/raw && -s /media/5/conky/Conky_WeatherCom/10days/raw10 ]]; then

	#TEMPERATURES: temperatures_rn, temperatures, temperatures10 files

	    for (( i=1; i<=5; i++))
	        do
	            ftemp=$(sed -n ${i}p /media/5/conky/Conky_WeatherCom/RightNow/temperatures_rn)
	            if [ $ftemp -eq $ftemp 2>/dev/null ]; then
	                nom=$(echo "5*($ftemp-32)"|bc)
	                ctemp=$(echo "$nom/9"|bc)
	                rem=$(echo "scale=1;10*($nom%9)"|bc|sed 's/\..*$//')
	                if (( rem<0 )); then
	                    ((rem*=-1))
	                fi
	                if (( rem>=5 && ctemp>0 )); then
	                    ((ctemp++))
	                elif (( rem>=5 && ctemp<0 )); then
	                    ((ctemp--))
	                fi
	                sed -i $i"s/$ftemp/$ctemp/" /media/5/conky/Conky_WeatherCom/RightNow/temperatures_rn
	            fi
	            ftemp=$(sed -n ${i}p /media/5/conky/Conky_WeatherCom/5days/temperatures|sed 's/ \/ .*$//')
	            if [ $ftemp -eq $ftemp 2>/dev/null ]; then
	                nom=$(echo "5*($ftemp-32)"|bc)
	                ctemp=$(echo "$nom/9"|bc)
	                rem=$(echo "scale=1;10*($nom%9)"|bc|sed 's/\..*$//')
	                if (( rem<0)); then
	                    ((rem*=-1))
	                fi
	                if (( rem>=5 && ctemp>0 )); then
	                    ((ctemp++))
	                elif (( rem>=5 && ctemp<0 )); then
	                    ((ctemp--))
	                fi
	                sed -i $i"s/^.* \//$ctemp \//" /media/5/conky/Conky_WeatherCom/5days/temperatures
	            fi
	            ftemp=$(sed -n ${i}p /media/5/conky/Conky_WeatherCom/5days/temperatures|sed 's/^.* \/ //')
	            if [ $ftemp -eq $ftemp 2>/dev/null ]; then
	                nom=$(echo "5*($ftemp-32)"|bc)
	                ctemp=$(echo "$nom/9"|bc)
	                rem=$(echo "scale=1;10*($nom%9)"|bc|sed 's/\..*$//')
	                if (( rem<0)); then
	                    ((rem*=-1))
	                fi
	                if (( rem>=5 && ctemp>0 )); then
	                    ((ctemp++))
	                elif (( rem>=5 && ctemp<0 )); then
	                    ((ctemp--))
	                fi
	                sed -i $i"s/\/ .*$/\/ $ctemp/" /media/5/conky/Conky_WeatherCom/5days/temperatures
	            fi
	    done
	    for (( i=1; i<=10; i++ ))
	        do
	            ftemp=$(sed -n ${i}p /media/5/conky/Conky_WeatherCom/10days/temperatures10|sed 's/ \/ .*$//')
	            if [ $ftemp -eq $ftemp 2>/dev/null ]; then
	                nom=$(echo "5*($ftemp-32)"|bc)
	                ctemp=$(echo "$nom/9"|bc)
	                rem=$(echo "scale=1;10*($nom%9)"|bc|sed 's/\..*$//')
	                if (( rem<0)); then
	                    ((rem*=-1))
	                fi
	                if (( rem>=5 && ctemp>0 )); then
	                    ((ctemp++))
	                elif (( rem>=5 && ctemp<0 )); then
	                    ((ctemp--))
	                fi
	                sed -i $i"s/^.* \//$ctemp \//" /media/5/conky/Conky_WeatherCom/10days/temperatures10
	            fi
	            ftemp=$(sed -n ${i}p /media/5/conky/Conky_WeatherCom/10days/temperatures10|sed 's/^.* \/ //')
	            if [ $ftemp -eq $ftemp 2>/dev/null ]; then
	                nom=$(echo "5*($ftemp-32)"|bc)
	                ctemp=$(echo "$nom/9"|bc)
	                rem=$(echo "scale=1;10*($nom%9)"|bc|sed 's/\..*$//')
	                if (( rem<0)); then
	                    ((rem*=-1))
	                fi
	                if (( rem>=5 && ctemp>0 )); then
	                    ((ctemp++))
	                elif (( rem>=5 && ctemp<0 )); then
	                    ((ctemp--))
	                fi
	                sed -i $i"s/\/ .*$/\/ $ctemp/" /media/5/conky/Conky_WeatherCom/10days/temperatures10
	            fi
	    done

	#WIND SPEED: wind_rn, wind, wind10 files

	    for (( i=2; i<=8; i+=2 ))
	        do
	            mi=$(sed -n ${i}p /media/5/conky/Conky_WeatherCom/RightNow/wind_rn)
	            if [ $mi -eq $mi 2>/dev/null ]; then
	                km=$(echo "($mi*1.609344)/1"|bc)
	                rem=$(echo "10*($(echo "($mi*1.609344)"|bc)-$km)/1"|bc)
	                if (( $rem>5 )); then
	                    ((km++))
	                fi
	                sed -i $i"s/^.*$/$km/" /media/5/conky/Conky_WeatherCom/RightNow/wind_rn
	            fi
	        done
	    for (( i=2; i<=10; i+=2 ))
	        do
	            mi=$(sed -n ${i}p /media/5/conky/Conky_WeatherCom/5days/wind)
	            if [ $mi -eq $mi 2>/dev/null ]; then
	                km=$(echo "($mi*1.609344)/1"|bc)
	                rem=$(echo "10*($(echo "($mi*1.609344)"|bc)-$km)/1"|bc)
	                if (( $rem>5 )); then
	                    ((km++))
	                fi
	                sed -i $i"s/^.*$/$km/" /media/5/conky/Conky_WeatherCom/5days/wind
	            fi
	        done
	    for (( i=1; i<=10; i++ ))
	        do
	            mi=$(sed -n ${i}p /media/5/conky/Conky_WeatherCom/10days/wind10|sed 's/^.* //')
	            if [ $mi -eq $mi 2>/dev/null ]; then
	                km=$(echo "($mi*1.609344)/1"|bc)
	                rem=$(echo "10*($(echo "($mi*1.609344)"|bc)-$km)/1"|bc)
	                if (( $rem>5 )); then
	                    ((km++))
	                fi
	                sed -i $i"s/ .*$/ $km/" /media/5/conky/Conky_WeatherCom/10days/wind10
	            fi
	        done

	#VISIBILITY: visibility_rn file

	        mi=$(sed -n 1p /media/5/conky/Conky_WeatherCom/RightNow/visibility_rn)
	        km=$(echo "scale=2;($mi*1.609344)/1"|bc)
	        sed -i "1s/^.*$/$km/" /media/5/conky/Conky_WeatherCom/RightNow/visibility_rn

	#DEW POINT: dew_point_rn file

	        ftemp=$(sed -n 1p /media/5/conky/Conky_WeatherCom/RightNow/dew_point_rn)
	        if [ $ftemp -eq $ftemp 2>/dev/null ]; then
	            nom=$(echo "5*($ftemp-32)"|bc)
	            ctemp=$(echo "$nom/9"|bc)
	            rem=$(echo "scale=1;10*($nom%9)"|bc|sed 's/\..*$//')
	            if (( rem<0)); then
	                ((rem*=-1))
	            fi
	            if (( rem>=5 && ctemp>0 )); then
	                ((ctemp++))
	            elif (( rem>=5 && ctemp<0 )); then
	                ((ctemp--))
	            fi
	            sed -i "1s/^.*$/$ctemp/" /media/5/conky/Conky_WeatherCom/RightNow/dew_point_rn
	        fi

	#PRESSURE: pressure_rn file

	        in=$(sed -n 1p /media/5/conky/Conky_WeatherCom/RightNow/pressure_rn)
	        mb=$(echo "scale=2;($in*33.864)/1"|bc)
	        sed -i "1s/^.*$/$mb/" /media/5/conky/Conky_WeatherCom/RightNow/pressure_rn

	#PRECIPITATION: precipitation_rn file

	        for (( i=1; i<=10; i++))
	            do
	                pr=$(sed -n ${i}p /media/5/conky/Conky_WeatherCom/RightNow/precipitation_rn|sed '/[0-9]*.[0-9]* in/!d')
	                if [[ $pr != "" ]]; then
	                    pr_in=$(echo $pr|sed 's/ .*$//')
	                    pr_cm=$(echo "scale=2;($pr_in*2.54)/1"|bc)
	                    temp=$(echo "10*$pr_cm/1"|bc)
	                    if (( $temp < 10 && $temp > 0 )); then
	                        sed -i -e ${i}"s/$pr_in/0$pr_cm/" -e ${i}'s/ in / cm /' /media/5/conky/Conky_WeatherCom/RightNow/precipitation_rn
	                    else
	                        sed -i -e ${i}"s/$pr_in/$pr_cm/" -e ${i}'s/ in / cm /' /media/5/conky/Conky_WeatherCom/RightNow/precipitation_rn
	                    fi
	                fi
	            done

	#LONG MESSAGES: messages_long_rn file

			cp /media/5/conky/Conky_WeatherCom/RightNow/messages_long_rn /media/5/conky/Conky_WeatherCom/RightNow/messages_long_rn_metric
			sed -i 's/\..*$/\./g' /media/5/conky/Conky_WeatherCom/RightNow/messages_long_rn_metric

	fi

fi


kill -CONT $(pidof conky)

Terminal output:

 26 Nov 12 | 23:33:13 ~
         $ killall conky && conky -c /media/5/conky/Conky_WeatherCom/BsAs_conkyrc &
[1] 2010

 26 Nov 12 | 23:33:28 ~
         $ Conky: desktop window (322) is root window
Conky: window type - normal
Conky: drawing to created window (0x1000001)
Conky: drawing to double buffer
--2012-11-26 23:33:28--  http://www.weather.com/weather/today/Buenos+Aires+Argentina+ARBA0009
Resolving www.weather.com (www.weather.com)... 200.89.148.88, 200.89.148.90
Connecting to www.weather.com (www.weather.com)|200.89.148.88|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘/media/5/conky/Conky_WeatherCom/RightNow/raw_rn’

    [ <=>                                                                                      ] 189,199     --.-K/s   in 0.09s   

2012-11-26 23:33:28 (1.94 MB/s) - ‘/media/5/conky/Conky_WeatherCom/RightNow/raw_rn’ saved [189199]

--2012-11-26 23:33:28--  http://www.weather.com/weather/5-day/Buenos+Aires+Argentina+ARBA0009
Resolving www.weather.com (www.weather.com)... 200.89.148.90, 200.89.148.88
Connecting to www.weather.com (www.weather.com)|200.89.148.90|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘/media/5/conky/Conky_WeatherCom/5days/raw’

    [ <=>                                                                                      ] 99,319      --.-K/s   in 0.06s   

2012-11-26 23:33:28 (1.55 MB/s) - ‘/media/5/conky/Conky_WeatherCom/5days/raw’ saved [99319]

--2012-11-26 23:33:28--  http://www.weather.com/weather/tenday/Buenos+Aires+Argentina+ARBA0009
Resolving www.weather.com (www.weather.com)... 200.89.148.88, 200.89.148.90
Connecting to www.weather.com (www.weather.com)|200.89.148.88|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘/media/5/conky/Conky_WeatherCom/10days/raw10’

    [ <=>                                                                                      ] 138,101     --.-K/s   in 0.07s   

2012-11-26 23:33:29 (1.82 MB/s) - ‘/media/5/conky/Conky_WeatherCom/10days/raw10’ saved [138101]

cp: omitting directory ‘/media/5/conky/Conky_WeatherCom/weather_com_images/’
cp: omitting directory ‘/media/5/conky/Conky_WeatherCom/weather_com_images/’
cp: omitting directory ‘/media/5/conky/Conky_WeatherCom/weather_com_images/’
cp: omitting directory ‘/media/5/conky/Conky_WeatherCom/weather_com_images/’
cp: omitting directory ‘/media/5/conky/Conky_WeatherCom/weather_com_moonphases/’
cp: omitting directory ‘/media/5/conky/Conky_WeatherCom/weather_com_moonphases/’
cp: omitting directory ‘/media/5/conky/Conky_WeatherCom/weather_com_moonphases/’
cp: omitting directory ‘/media/5/conky/Conky_WeatherCom/weather_com_moonphases/’
cp: omitting directory ‘/media/5/conky/Conky_WeatherCom/weather_com_moonphases/’
cp: omitting directory ‘/media/5/conky/Conky_WeatherCom/weather_com_images/’
cp: omitting directory ‘/media/5/conky/Conky_WeatherCom/weather_com_images/’
cp: omitting directory ‘/media/5/conky/Conky_WeatherCom/weather_com_images/’
cp: omitting directory ‘/media/5/conky/Conky_WeatherCom/weather_com_images/’
cp: omitting directory ‘/media/5/conky/Conky_WeatherCom/weather_com_images/’
cp: omitting directory ‘/media/5/conky/Conky_WeatherCom/weather_com_images/’
cp: omitting directory ‘/media/5/conky/Conky_WeatherCom/weather_com_images/’
cp: omitting directory ‘/media/5/conky/Conky_WeatherCom/weather_com_images/’
cp: omitting directory ‘/media/5/conky/Conky_WeatherCom/weather_com_images/’
cp: omitting directory ‘/media/5/conky/Conky_WeatherCom/weather_com_images/’

This is a plea for help.  yikes I can't believe it doesn't work!


#! Forum Moderator | To #! or not to #!?  That is the question!
#! Conky = 16 Threads & the Conky Archives | Conky PitStop | OHCG'er
StartPage -  protect your privacy   |   BBQ Linux

Offline

#491 2012-11-27 12:19:24

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

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/Weather.com/Lunaf.com)

The address should be

address10="http://www.b.weather.com/weather/tenday/Buenos+Aires+ARBA0009:1:AR"

ie. the 10 day address.
Also, there's no moon phase icon in the new weather.com script. You might have some old versions mixed with the new ones; better delete everything and redownload the script...

Here's Buenos Aires:
3qRHNs.jpg


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

#492 2012-11-27 15:59:07

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 11,668
Website

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/Weather.com/Lunaf.com)

TeoBigusGeekus wrote:

The address should be

address10="http://www.b.weather.com/weather/tenday/Buenos+Aires+ARBA0009:1:AR"

ie. the 10 day address.
Also, there's no moon phase icon in the new weather.com script. You might have some old versions mixed with the new ones; better delete everything and redownload the script...

Here's Buenos Aires:
http://i.imgur.com/3qRHNs.jpg

/&$"- too #(/? many &%$#  old )/&& files %#$ not #!$& enough (($$ time #/=)
abeGEtoP.jpg -->> ops

I have the "new" set of scripts I think what I did was copy the wrong .pdf file over to read. {mumble grumble cuss kick - OUCH!}
... and I know better ... and of course used an old TEO weather.com conky. cry

You know what this means don't you  ... ... ... ... ... ... all those examples I have ... gone, useless not worth a dime ...

HEY!!! Antiques - they could be worth millions!!!!!!

... old, out dated ... wait - that's me!!!

[sigh] OK where's "ZERO"

lol  this will be fun!  wink  I can do this  cool  I've done it before  big_smile

Thanks TEO ... later.

Last edited by Sector11 (2012-11-27 15:59:40)


#! Forum Moderator | To #! or not to #!?  That is the question!
#! Conky = 16 Threads & the Conky Archives | Conky PitStop | OHCG'er
StartPage -  protect your privacy   |   BBQ Linux

Offline

#493 2012-11-27 17:10:25

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 11,668
Website

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/Weather.com/Lunaf.com)

I'd probably have a heart attack if things worked right the first time.  You'd think I was used to this. lol  lol

acvLrZnt.jpg
changed all /home/teo to /home/sector11 in the conky

did a:

killall conky && conky -c /home/sector11/Conky_WeatherCom_metric/conkyrc_weather_com_metric &

three times, it's the generic conky out of the box ... I added draw.bg.lua is all

 27 Nov 12 | 13:51:14 ~
         $ killall conky && conky -c /home/sector11/Conky_WeatherCom_metric/conkyrc_weather_com_metric &
[1] 21199

 27 Nov 12 | 13:51:28 ~
         $ Conky: desktop window (322) is root window
Conky: window type - override
Conky: drawing to created window (0x1000001)
Conky: drawing to double buffer
wget: no process found
--2012-11-27 13:51:28--  http://www.weather.com/weather/right-now/Buenos+Aires+ARBA0009:1:AR
Resolving www.weather.com (www.weather.com)... 200.42.33.106, 200.42.33.112
Connecting to www.weather.com (www.weather.com)|200.42.33.106|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘/home/sector11/Conky_WeatherCom_metric/RightNow/raw_rn’

    [  <=>                                                                 ] 189,523      579KB/s   in 0.3s   

2012-11-27 13:51:29 (579 KB/s) - ‘/home/sector11/Conky_WeatherCom_metric/RightNow/raw_rn’ saved [189523]

--2012-11-27 13:51:29--  http://www.weather.com/weather/today/Buenos+Aires+ARBA0009:1:AR
Resolving www.weather.com (www.weather.com)... 200.42.33.112, 200.42.33.106
Connecting to www.weather.com (www.weather.com)|200.42.33.112|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘/home/sector11/Conky_WeatherCom_metric/Today/raw_td’

    [  <=>                                                                 ] 196,362      630KB/s   in 0.3s   

2012-11-27 13:51:30 (630 KB/s) - ‘/home/sector11/Conky_WeatherCom_metric/Today/raw_td’ saved [196362]

--2012-11-27 13:51:30--  http://www.weather.com/weather/tenday/Buenos+Aires+ARBA0009:1:AR
Resolving www.weather.com (www.weather.com)... 200.42.33.106, 200.42.33.112
Connecting to www.weather.com (www.weather.com)|200.42.33.106|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘/home/sector11/Conky_WeatherCom_metric/10days/raw_10’

    [ <=>                                                                  ] 138,238      813KB/s   in 0.2s   

2012-11-27 13:51:31 (813 KB/s) - ‘/home/sector11/Conky_WeatherCom_metric/10days/raw_10’ saved [138238]

cp: omitting directory ‘/home/sector11/Conky_WeatherCom_metric/weather_com_images/’
cp: omitting directory ‘/home/sector11/Conky_WeatherCom_metric/weather_com_images/’
wget: no process found
--2012-11-27 13:51:31--  http://www.weather.com/weather/right-now/Buenos+Aires+ARBA0009:1:AR
Resolving www.weather.com (www.weather.com)... 200.42.33.106, 200.42.33.112
Connecting to www.weather.com (www.weather.com)|200.42.33.106|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘/home/sector11/Conky_WeatherCom_metric/RightNow/raw_rn’

    [ <=>                                                                  ] 189,523     --.-K/s   in 0.08s   

2012-11-27 13:51:31 (2.21 MB/s) - ‘/home/sector11/Conky_WeatherCom_metric/RightNow/raw_rn’ saved [189523]

--2012-11-27 13:51:31--  http://www.weather.com/weather/today/Buenos+Aires+ARBA0009:1:AR
Resolving www.weather.com (www.weather.com)... 200.42.33.106, 200.42.33.112
Connecting to www.weather.com (www.weather.com)|200.42.33.106|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘/home/sector11/Conky_WeatherCom_metric/Today/raw_td’

    [ <=>                                                                  ] 196,362     --.-K/s   in 0.1s    

2012-11-27 13:51:31 (1.92 MB/s) - ‘/home/sector11/Conky_WeatherCom_metric/Today/raw_td’ saved [196362]

--2012-11-27 13:51:31--  http://www.weather.com/weather/tenday/Buenos+Aires+ARBA0009:1:AR
Resolving www.weather.com (www.weather.com)... 200.42.33.112, 200.42.33.106
Connecting to www.weather.com (www.weather.com)|200.42.33.112|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘/home/sector11/Conky_WeatherCom_metric/10days/raw_10’

    [ <=>                                                                  ] 138,238     --.-K/s   in 0.08s   

2012-11-27 13:51:31 (1.75 MB/s) - ‘/home/sector11/Conky_WeatherCom_metric/10days/raw_10’ saved [138238]

cp: omitting directory ‘/home/sector11/Conky_WeatherCom_metric/weather_com_images/’
cp: omitting directory ‘/home/sector11/Conky_WeatherCom_metric/weather_com_images/’
Conky: Unable to load image '/home/sector11/Conky_WeatherCom_metric/TD.png'
Conky: Unable to load image '/home/sector11/Conky_WeatherCom_metric/TD.png'
Conky: Unable to load image '/home/sector11/Conky_WeatherCom_metric/TD.png'
Conky: Unable to load image '/home/sector11/Conky_WeatherCom_metri

#! Forum Moderator | To #! or not to #!?  That is the question!
#! Conky = 16 Threads & the Conky Archives | Conky PitStop | OHCG'er
StartPage -  protect your privacy   |   BBQ Linux

Offline

#494 2012-11-27 20:34:36

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

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/Weather.com/Lunaf.com)

Yeap, it's the transition to the tonight only forecast. After a certain time, weather.com doesn't provide info for today, only for tonight.
If you run the script again, you'll see that only the tonight's forecast is filled with info.
You must have run it at exactly the time when the page was about to change...


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

#495 2012-11-27 20:55:00

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 11,668
Website

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/Weather.com/Lunaf.com)

TeoBigusGeekus wrote:

Yeap, it's the transition to the tonight only forecast. After a certain time, weather.com doesn't provide info for today, only for tonight.
If you run the script again, you'll see that only the tonight's forecast is filled with info.
You must have run it at exactly the time when the page was about to change...

hahahahahahahahahah trust me...  but still getting the same thing, probably since there is no TD.png it wont continue:

cp: omitting directory ‘/home/sector11/Conky_WeatherCom_metric/weather_com_images/’
cp: omitting directory ‘/home/sector11/Conky_WeatherCom_metric/weather_com_images/’
Conky: Unable to load image '/home/sector11/Conky_WeatherCom_metric/TD.png'
Conky: Unable to load image '/home/sector11/Conky_WeatherCom_metric/TD.png'
Conky: Unable to load image '/home/sector11/Conky_WeatherCom_metric/TD.png'
Conky: Unable to load image '/home/sector11/Conky_WeatherCom_metric/TD.png'

Will try again in the morning.

Last edited by Sector11 (2012-11-27 20:55:39)


#! Forum Moderator | To #! or not to #!?  That is the question!
#! Conky = 16 Threads & the Conky Archives | Conky PitStop | OHCG'er
StartPage -  protect your privacy   |   BBQ Linux

Offline

#496 2012-11-27 21:02:09

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

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/Weather.com/Lunaf.com)

What I'm getting for Buenos Aires right now:
nR1Oas.jpg


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

#497 2012-11-28 13:22:18

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 11,668
Website

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/Weather.com/Lunaf.com)

No idea what to say Teo, I tried it before breakfast, and I have the same results.

Unless you have an idea about:

wget: no process found

found under the no templates to replace means.

Or this: saved 0 B in raw_td

2012-11-28 09:24:27 (1017 KB/s) - ‘/home/sector11/Conky_WeatherCom_metric/Today/raw_td’ saved [190424]

admSODAZ.jpg

terminal output:

 28 Nov 12 | 09:24:06 ~
         $ conky -c /home/sector11/Conky_WeatherCom_metric/conkyrc_weather_com_metric -DD &
[1] 10146

 28 Nov 12 | 09:24:25 ~
         $ DEBUG(0) [../../src/conky.c:5338]: reading contents from config file '/home/sector11/Conky_WeatherCom_metric/conkyrc_weather_com_metric'
DEBUG(1) [../../src/core.c:1225]: no templates to replace
Conky: desktop window (322) is root window
Conky: window type - override
Conky: drawing to created window (0x4000001)
Conky: drawing to double buffer
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
wget: no process found
--2012-11-28 09:24:26--  http://www.weather.com/weather/right-now/Buenos+Aires+ARBA0009:1:AR
Resolving www.weather.com (www.weather.com)... 200.42.33.112, 200.42.33.106
Connecting to www.weather.com (www.weather.com)|200.42.33.112|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘/home/sector11/Conky_WeatherCom_metric/RightNow/raw_rn’

    [  <=>                                                             ] 183,527      570KB/s   in 0.3s   

2012-11-28 09:24:26 (570 KB/s) - ‘/home/sector11/Conky_WeatherCom_metric/RightNow/raw_rn’ saved [183527]

--2012-11-28 09:24:26--  http://www.weather.com/weather/today/Buenos+Aires+ARBA0009:1:AR
Resolving www.weather.com (www.weather.com)... 200.42.33.112, 200.42.33.106
Connecting to www.weather.com (www.weather.com)|200.42.33.112|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘/home/sector11/Conky_WeatherCom_metric/Today/raw_td’

    [ <=>                                                              ] 190,424     1017KB/s   in 0.2s   

2012-11-28 09:24:27 (1017 KB/s) - ‘/home/sector11/Conky_WeatherCom_metric/Today/raw_td’ saved [190424]

--2012-11-28 09:24:27--  http://www.weather.com/weather/tenday/Buenos+Aires+ARBA0009:1:AR
Resolving www.weather.com (www.weather.com)... 200.42.33.106, 200.42.33.112
Connecting to www.weather.com (www.weather.com)|200.42.33.106|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘/home/sector11/Conky_WeatherCom_metric/10days/raw_10’

    [ <=>                                                              ] 130,255      783KB/s   in 0.2s   

2012-11-28 09:24:28 (783 KB/s) - ‘/home/sector11/Conky_WeatherCom_metric/10days/raw_10’ saved [130255]

cp: omitting directory ‘/home/sector11/Conky_WeatherCom_metric/weather_com_images/’
cp: omitting directory ‘/home/sector11/Conky_WeatherCom_metric/weather_com_images/’
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
wget: no process found
--2012-11-28 09:24:28--  http://www.weather.com/weather/right-now/Buenos+Aires+ARBA0009:1:AR
Resolving www.weather.com (www.weather.com)... 200.42.33.112, 200.42.33.106
Connecting to www.weather.com (www.weather.com)|200.42.33.112|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘/home/sector11/Conky_WeatherCom_metric/RightNow/raw_rn’

    [ <=>                                                              ] 183,527     --.-K/s   in 0.07s   

2012-11-28 09:24:28 (2.36 MB/s) - ‘/home/sector11/Conky_WeatherCom_metric/RightNow/raw_rn’ saved [183527]

--2012-11-28 09:24:28--  http://www.weather.com/weather/today/Buenos+Aires+ARBA0009:1:AR
Resolving www.weather.com (www.weather.com)... 200.42.33.106, 200.42.33.112
Connecting to www.weather.com (www.weather.com)|200.42.33.106|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘/home/sector11/Conky_WeatherCom_metric/Today/raw_td’

    [ <=>                                                              ] 190,424     --.-K/s   in 0.08s   

2012-11-28 09:24:28 (2.29 MB/s) - ‘/home/sector11/Conky_WeatherCom_metric/Today/raw_td’ saved [190424]

--2012-11-28 09:24:28--  http://www.weather.com/weather/tenday/Buenos+Aires+ARBA0009:1:AR
Resolving www.weather.com (www.weather.com)... 200.42.33.112, 200.42.33.106
Connecting to www.weather.com (www.weather.com)|200.42.33.112|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]
Saving to: ‘/home/sector11/Conky_WeatherCom_metric/10days/raw_10’

    [ <=>                                                              ] 130,255     --.-K/s   in 0.06s   

2012-11-28 09:24:28 (2.15 MB/s) - ‘/home/sector11/Conky_WeatherCom_metric/10days/raw_10’ saved [130255]

cp: omitting directory ‘/home/sector11/Conky_WeatherCom_metric/weather_com_images/’
cp: omitting directory ‘/home/sector11/Conky_WeatherCom_metric/weather_com_images/’
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(1) [../../src/core.c:1225]: no templates to replace
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/sector11/Conky_WeatherCom_metric/now.png' at (0,30) scaled to 120x120, caching interval set to 0 (with -n opt 0)
Conky: Unable to load image '/home/sector11/Conky_WeatherCom_metric/TD.png'
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/sector11/Conky_WeatherCom_metric/10_2.png' at (20,500) scaled to 70x70, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/sector11/Conky_WeatherCom_metric/10_9.png' at (130,500) scaled to 70x70, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/sector11/Conky_WeatherCom_metric/10_16.png' at (240,500) scaled to 70x70, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/sector11/Conky_WeatherCom_metric/10_23.png' at (20,640) scaled to 70x70, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/sector11/Conky_WeatherCom_metric/10_30.png' at (130,640) scaled to 70x70, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/sector11/Conky_WeatherCom_metric/10_37.png' at (240,640) scaled to 70x70, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/sector11/Conky_WeatherCom_metric/10_44.png' at (0,780) scaled to 55x55, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/sector11/Conky_WeatherCom_metric/10_51.png' at (85,780) scaled to 55x55, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/sector11/Conky_WeatherCom_metric/10_58.png' at (170,780) scaled to 55x55, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/sector11/Conky_WeatherCom_metric/10_58.png' at (255,780) scaled to 55x55, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/sector11/Conky_WeatherCom_metric/now.png' at (0,30) scaled to 120x120, caching interval set to 0 (with -n opt 0)
Conky: Unable to load image '/home/sector11/Conky_WeatherCom_metric/TD.png'
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/sector11/Conky_WeatherCom_metric/10_2.png' at (20,500) scaled to 70x70, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/sector11/Conky_WeatherCom_metric/10_9.png' at (130,500) scaled to 70x70, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/sector11/Conky_WeatherCom_metric/10_16.png' at (240,500) scaled to 70x70, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/sector11/Conky_WeatherCom_metric/10_23.png' at (20,640) scaled to 70x70, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/sector11/Conky_WeatherCom_metric/10_30.png' at (130,640) scaled to 70x70, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/sector11/Conky_WeatherCom_metric/10_37.png' at (240,640) scaled to 70x70, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/sector11/Conky_WeatherCom_metric/10_44.png' at (0,780) scaled to 55x55, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/sector11/Conky_WeatherCom_metric/10_51.png' at (85,780) scaled to 55x55, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/sector11/Conky_WeatherCom_metric/10_58.png' at (170,780) scaled to 55x55, caching interval set to 0 (with -n opt 0)
DEBUG(0) [../../src/imlib2.c:190]: Drawing image '/home/sector11/Conky_WeatherCom_metric/10_58.png' at (255,780) scaled to 55x55, caching interval set to 0 (with -n opt 0)
DEBUG(1) [../../src/core.c:1225]: no templates to replace

NEW THOUGHT:  Are you running conky v1.9.0-2?

Last edited by Sector11 (2012-11-28 13:23:55)


#! Forum Moderator | To #! or not to #!?  That is the question!
#! Conky = 16 Threads & the Conky Archives | Conky PitStop | OHCG'er
StartPage -  protect your privacy   |   BBQ Linux

Offline

#498 2012-11-28 14:01:00

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

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/Weather.com/Lunaf.com)

I'm not sure what's going on with your conky man...
xIMHLs.png


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

#499 2012-11-28 15:04:47

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 11,668
Website

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/Weather.com/Lunaf.com)

TeoBigusGeekus wrote:

I'm not sure what's going on with your conky man...

Me neither, it's the default conky that come with the package, only added the draw-bg.lua and get the same results if I drop that.  sad


#! Forum Moderator | To #! or not to #!?  That is the question!
#! Conky = 16 Threads & the Conky Archives | Conky PitStop | OHCG'er
StartPage -  protect your privacy   |   BBQ Linux

Offline

Be excellent to each other!

#500 2012-11-28 18:03:50

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

Re: Conky weather+moon scripts (Accuw/WUndergr/NWS/Weather.com/Lunaf.com)

Do you have the cookie?
Are you using the correct conkyrc? (not the one intended for the C version)
Can you post your whole script and your whole conkyrc?

EDIT: The wget message is nothing.

Last edited by TeoBigusGeekus (2012-11-28 18:04:15)


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