SEARCH

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

You are not logged in.

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

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

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

# — Conky settings — #

update_interval 1
total_run_times 0
net_avg_samples 2

override_utf8_locale yes

double_buffer yes
no_buffers yes

text_buffer_size 4096
imlib_cache_size 0

temperature_unit celsius

# — Window specifications — #

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

border_inner_margin 0
border_outer_margin 0

minimum_size 350
maximum_width 350

alignment tl

gap_x 20
gap_y 180

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

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

uppercase no
use_spacer right

color1 AAAAAA
color2 666666
color3 0099FF


TEXT

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

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

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

Offline

Be excellent to each other!

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

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

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

Offline

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

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

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

Offline

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

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

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

Hi everybody,

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

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

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

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

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

Thanks !!

Offline

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

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

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

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


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

Offline

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

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

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

Sorry for that...

I thought I had the most recent scripts...

Peace !

Offline

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

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

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

No worries mate!


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

Offline

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

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

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

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

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

# fiddle with window
use_spacer yes
use_xft yes

# Update interval in seconds
update_interval 3

# Minimum size of text area
minimum_size 355 500
maximum_width 357

override_utf8_locale yes

# Draw shades?
draw_shades yes

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

# Stippled borders?
stippled_borders 3

# border margins
border_margin 9

# border width
border_width 10

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

own_window_colour brown
own_window_transparent yes

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

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

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

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

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


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

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

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

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

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

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

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

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

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

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

I use them daily! tongue

Offline

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

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

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

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

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

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

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


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

Offline

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

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

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

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


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

I use them daily! tongue

Offline

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

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

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

Good to know!


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

Offline

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

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

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

Offline

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

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

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


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

Offline

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

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

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

Offline

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

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

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

Offline

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

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

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

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

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

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


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

Offline

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

Offline

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

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

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

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


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

Offline

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

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

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

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

Offline

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

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

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


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

Offline

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

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

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

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

Offline

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

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

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


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

Offline

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

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

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

#!/bin/bash

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

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

kill -STOP $(pidof conky)
killall wget

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

rm $HOME/Conky_WeatherCom/10days/10days_OK

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

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

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

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

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

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

kill -CONT $(pidof conky)

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


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

Offline

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

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

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

Offline

Be excellent to each other!

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

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

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

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

Offline

Board footer

Powered by FluxBB

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

Debian Logo