SEARCH

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

You are not logged in.

#1 2012-04-28 16:53:52

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

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

ABSTRACT

Some scripts for displaying a weather forecast or the moon phases on your conky.
They use Accuweather, Weather Underground, National Weather Service (USA), Weather.com and lunaf.com.
They all rely on the same principle: download a bunch of pages, parse them and isolate the necessary info for conky to find.
There is something for everyone: from the minimalistic (1d), to the humongous, larger than life, "I'm a meteorologist" aspect (4).


POINTS TO NOTICE

  • If you hate my scripts, throw me some hate mail and visit Mr.Peachy's thread. That guy certainly knows his LUA...

  • All the scripts (I think, check it out yourselves) use the command
    killall wget
    at the beginning of the script. The command, which kills all instances of wget, is a reminiscent of an older version of the scripts that used curl instead of wget.
    Curl had the annoying habit of leaving unfinished, zombie processes after its every call; therefore I added a "killall curl" at the beginning of every script.
    Later, I changed curl with wget, so the command became "killall wget"; not that wget behaves like curl, in terms of zombie processes, but better save than sorry...
    If you use wget for downloading, these scripts are gonna kill it; you can either remove the command from the scripts or use curl instead.

  • Users of conky 1.8.1-6 see here. Thanks 42dorian.


ANNOUNCEMENTS

23-3-14: Script 2b updated. It now supports different icons for the moon depending on whether you live in the northern or southern hemisphere as explained in S11's posts here and here.

19-3-14:Script 5 updated. It now supports different icons for the moon depending on whether you live in the northern or southern hemisphere. Awesome catch by S11 as explained in his posts here and here.

15-2-14:2b minor bugs corrected. Thanks to S11 - see this for more info.

12-2-14:New script added: 2b_Wunderground_API. This one uses Weather Underground's API feature and can be used by all users. Treat with tenderness and affection.
Also, I now have a tarball for every script and not a large one containing all of them. It will save you bandwidth in case of updates...

30-1-14:Facelift of the 3_NWS script - new, better conkyrc, some additions in the script itself, etc. Thanks to KrunchTime for his valuable feedback. I hadn't touched this one since 2009-2010 but it still works: if you don't mind its rather Spartan look, you're in the US and you like stability, that's the script to go. By the way, I also tried the 2_WUnderground ICAL script and it still works as well (untouched for some years too). Me thinks that I spend all the time with the crappy Accuweather and Weather sites and I miss the real gems...

21-1-14:Another bug discovered in the 5_Moon script - if the moon is in libra the output gets screwed up. Script rebundled. Once more, thanks to Fortran for his feedback.

16-1-14:Bug discovered in the 1d .conkyrc file - see this post for more info. Thanks for the feedback Grm. Script rebundled.

6-1-14:Bug discovered in the 1b1 and 1b2 scripts that caused a screw up of the Today and Tonight messages whenever a semicolon was present. Scripts rebundled. Thanks to Petro Dawg from UFs who's found the bug and of course to Sector11 for reporting it here.


THE SCRIPTS...

1a)Accuweather_ConkyWeather_Font - 1a_12-2-14

YpfquwF.png

C version included.

Alternative layouts by Sector11, click here and here.


1b1)Accuweather - Images - 1b1_12-2-14

daQB7.jpg
LzuIZ.jpg

If you want two or more cities in the same conkyrc, check out Sector11's post here.


1b2)Accuweather - ConkyWeather font - 1b2_12-2-14

UbN1R.jpg


1c)Accuweather Hourly Forecast - 1c_12-2-14

iQPXxsP.jpg


1d)Accuweather RSS - 1d_12-2-14

Kj0tP.jpg

Check out Sector11's alternative suggestion here.


2a)WUnderground ICAL - International users - 2a_12-2-14

h9aYN.jpg


2b)WUnderground API - All users - 2b_23-3-14

0TTzeYht.jpg

A full proposal by S11 combining this script and 5 (Moon phases), as well as a weather clock-chronograph.
Check it out.
Another minimal approach (by S11 again) here. This one's text only - love it.


3)NWS XML - USA users - 3_12-2-14

hJbmA.jpg


4) Weather.com conky script - all users - 4_12-2-14

PUiTVcO.png

Check out Sector11's awesome weather clock here.
Awesome job from Doruletz: HTC Clock and weather forecast - see here.


5) Moon phases' script - 5_19-3-14

For all you obsessed with the moon, werewolves or LUNAtics.

4G1bRC6t.png

Sector11 has put together a hybrid conkyrc, joining the weather.com and the moon ones. He's also put together a script that does the job of 4 and 5 together. Check it out here.

A full proposal, again by S11, combining this script and 2b (Wunderground API), as well as a weather clock-chronograph.
Check it out.

Last edited by TeoBigusGeekus (2014-03-23 17:51:09)


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!

#2 2012-04-28 17:03:48

VastOne
#! Ranger
From: #! Fringe Division
Registered: 2011-04-26
Posts: 10,163
Website

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

Incredible work and results Teo.

Glad to see you here at CrunchBang, your journey has been a long and fortuitous one!


VSIDO | SolusOS

Words That Build Or Destroy

Offline

#3 2012-04-28 17:09:05

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

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

VastOne wrote:

Incredible work and results Teo.

Glad to see you here at CrunchBang, your journey has been a long and fortuitous one!

Thank you very much for the warm welcome VastOne; as I said in the other thread, I hope that this is the beginning of a beautiful friendship!


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

#4 2012-04-28 17:55:30

rhowaldt
#!*$%:)
Registered: 2011-03-09
Posts: 4,396

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

whew, nice! very nice. again, welcome to the community!

Offline

#5 2012-04-28 18:03:34

falldown
#! Samurai
Registered: 2011-09-01
Posts: 1,726

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

Welcome to the darkside Teo!!
I lurk on the "other forum" and have seen your work.
Glad to have you and your talents here! big_smile

Last edited by falldown (2012-04-28 18:36:37)

Offline

#6 2012-04-28 18:43:16

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 11,496

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

Lovely work Teo!

Have you had a look at parsing the hourly forecast page?  I'm a cyclocommuter, and I rely on the hourly forecasts to know whether I'll need my weatherproof gear for my commute.  (Though this time of year weather.com's forecasts become particularly unreliable in my area.)


Yes; as a matter of fact, I am a cop.  Why do you ask? cool
I'm a moderator here.  How are we doing?  Feedback is encouraged.

Offline

#7 2012-04-28 18:56:46

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

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

@rhowaldt & falldown
Thanks for your kind words mates; it sure feels cozy here.

@pvsage
Do you mean an hourly forecast for all days, or just today?
Would accuweather's one interest you?

Last edited by TeoBigusGeekus (2012-04-28 18:57:01)


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

#8 2012-04-28 19:01:44

VastOne
#! Ranger
From: #! Fringe Division
Registered: 2011-04-26
Posts: 10,163
Website

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

^ Cozy?  big_smile

Sure is busting the image of us being elitist, goth loving prigs who only seem to know shades of black and gray...


VSIDO | SolusOS

Words That Build Or Destroy

Offline

#9 2012-04-28 19:02:09

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 11,496

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

Accuweather does look interesting, though I've never considered it for an hourly forecast.  I probably should look at it and see if it trends any better than weather.com.

Since the hourly forecast is something I look at for a daily commute, just the current forecast (e.g. the 12 hours on the weather.com/weather/hourbyhour/{zipcode} page) would be splendid.

EDIT:  I see accuweather puts its chance of rain forecast on a separate page...this is the part I'm most interested in.

Last edited by pvsage (2012-04-28 19:06:38)


Yes; as a matter of fact, I am a cop.  Why do you ask? cool
I'm a moderator here.  How are we doing?  Feedback is encouraged.

Offline

#10 2012-04-28 19:03:12

VastOne
#! Ranger
From: #! Fringe Division
Registered: 2011-04-26
Posts: 10,163
Website

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

^ Accuweather is the best I have found...  Just an FYI


VSIDO | SolusOS

Words That Build Or Destroy

Offline

#11 2012-04-28 19:18:31

falldown
#! Samurai
Registered: 2011-09-01
Posts: 1,726

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

Intellicast has a very nice hourly weather page..
929ef0187384088.jpg
EDIT: sorry gents not meaning to pull this away from the original topic.

Last edited by falldown (2012-04-28 19:19:52)

Offline

#12 2012-04-28 20:25:28

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 9,948
Website

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

I've been supporting Teo's scripts for a while.  Took all my posts over to the "Blue" side from the "Orange" side and now I'll be posting them here on "The DarkSide" - and we has cookies too!

Posts are copy/pasted from the Orange side since "Dust Bin" on the Blue side means "take out the trash" only this time they tossed out something extremely valuable to the conky community and Linux in general.

OK, enough of my rambling, lets get on with it....

Been a while, I'm slowly getting back into things. Here's a modified version of the default

1d1) Accuweather - Images - INTERNATIONAL USERS

It's more compact, fits smaller screens - but I like it on my screen regardless.  Text for "conditions" other than right now have been removed and the "images" have been resized "180x180" making them easier to change the size in the conky itself.

aau63kjg.jpg

The conky: ~/AccuW/AccuW.conky

## killall conky && conky -c ~/AccuW/AccuW.conky &
# Scripts by: TeoBigusDickus
# [url]http://tiny.cc/s6e4cw[/url]
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type normal #override
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager

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

# fiddle with window
use_spacer right
use_xft yes

# Update interval in seconds
update_interval 3

# Minimum size of text area
minimum_size 285 0
maximum_width 285

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 WenQuanYi Micro Hei Mono:bold:size=8
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 10

imlib_cache_size 0

default_color ffffff
color1 ffe595

# stuff after 'TEXT' will be formatted on screen
TEXT
${color1}WEATHER (CPU Avg: ${cpu}) ${hr}${color}\
${texeci 500 bash /home/sector11/AccuW/acc_int_images}\
${image /home/sector11/AccuW/cc.png -p 10,25 -s 100x100}
${execpi 600 sed -n '1p' /home/sector11/AccuW/messages}
               ${font Zekton:bold:size=12}${execpi 600 sed -n '29p' /home/sector11/AccuW/curr_cond}°     ${execpi 600 sed -n '30p' /home/sector11/AccuW/curr_cond}°${font}

                ${color1}WIND: ${color}${execpi 600 sed -n '31p' /home/sector11/AccuW/curr_cond} ${execpi 600 sed -n '32p' /home/sector11/AccuW/curr_cond}
                 ${color1}HUM: ${color}${execpi 600 sed -n '33p' /home/sector11/AccuW/curr_cond}
                  ${color1}DP: ${color}${execpi 600 sed -n '37p' /home/sector11/AccuW/curr_cond}°
                  ${color1}PR: ${color}${execpi 600 sed -n '34p' /home/sector11/AccuW/curr_cond}
                 ${color1}VIS: ${color}${execpi 600 sed -n '38p' /home/sector11/AccuW/curr_cond}
${color1}UVI: ${color}${execpi 600 sed -n '36p' /home/sector11/AccuW/curr_cond}\
${goto 134}${color1}CLOUD: ${color}${execpi 600 sed -n '35p' /home/sector11/AccuW/curr_cond}
${color1}Sunrise:  ${color}${execpi 600 sed -n '39p' /home/sector11/AccuW/curr_cond}\
${goto 160} ${color1}Sunset: ${color}${execpi 600 sed -n '40p' /home/sector11/AccuW/curr_cond}
${color1}Moonrise: ${color}${execpi 600 sed -n '41p' /home/sector11/AccuW/curr_cond}\
${goto 160}${color1}Moonset: ${color}${execpi 600 sed -n '42p' /home/sector11/AccuW/curr_cond}
${hr 1}
 ${color1}TODAY${color} P: ${execpi 600 sed -n '28p' /home/sector11/AccuW/first_days}${goto 180}${color1}TONIGHT${color} P: ${color}${execpi 600 sed -n '33p' /home/sector11/AccuW/first_days}\
${image /home/sector11/AccuW/tod.png -p 10,190 -s 70x70}\
${image /home/sector11/AccuW/ton.png -p 170,190 -s 70x70}

           ${execpi 600 sed -n '26p' /home/sector11/AccuW/first_days}°\
${goto 260}${execpi 600 sed -n '31p' /home/sector11/AccuW/first_days}°

           ${execpi 600 sed -n '27p' /home/sector11/AccuW/first_days}°\
${goto 260}${execpi 600 sed -n '32p' /home/sector11/AccuW/first_days}°

${hr 1}
 ${color1}${execpi 600 sed -n '5p' /home/sector11/AccuW/first_days}\
${goto 115}${execpi 600 sed -n '10p' /home/sector11/AccuW/first_days}\
${goto 210}${execpi 600 sed -n '15p' /home/sector11/AccuW/first_days}${color}\
${image /home/sector11/AccuW/6.png -p 8,280 -s 50x50}\
${image /home/sector11/AccuW/11.png -p 100,280 -s 50x50}\
${image /home/sector11/AccuW/16.png -p 195,280 -s 50x50}

        ${execpi 600 sed -n '8p' /home/sector11/AccuW/first_days}°\
${goto 170}${execpi 600 sed -n '13p' /home/sector11/AccuW/first_days}°\
${goto 265}${execpi 600 sed -n '18p' /home/sector11/AccuW/first_days}°
        ${execpi 600 sed -n '9p' /home/sector11/AccuW/first_days}°\
${goto 170}${execpi 600 sed -n '14p' /home/sector11/AccuW/first_days}°\
${goto 265}${execpi 600 sed -n '19p' /home/sector11/AccuW/first_days}°

 ${color1}${execpi 600 sed -n '20p' /home/sector11/AccuW/first_days}\
${goto 115}${execpi 600 sed -n '1p' /home/sector11/AccuW/last_days}\
${goto 210}${execpi 600 sed -n '6p' /home/sector11/AccuW/last_days}${color}\
${image /home/sector11/AccuW/21.png -p 8,345 -s 50x50}\
${image /home/sector11/AccuW/last_2.png -p 100,345 -s 50x50}\
${image /home/sector11/AccuW/last_7.png -p 195,345 -s 50x50}

        ${execpi 600 sed -n '23p' /home/sector11/AccuW/first_days}°\
${goto 170}${execpi 600 sed -n '4p' /home/sector11/AccuW/last_days}°\
${goto 265}${execpi 600 sed -n '9p' /home/sector11/AccuW/last_days}°
        ${execpi 600 sed -n '24p' /home/sector11/AccuW/first_days}°\
${goto 170}${execpi 600 sed -n '5p' /home/sector11/AccuW/last_days}°\
${goto 265}${execpi 600 sed -n '10p' /home/sector11/AccuW/last_days}°

 ${color1}${execpi 600 sed -n '11p' /home/sector11/AccuW/last_days}\
${goto 115}${execpi 600 sed -n '16p' /home/sector11/AccuW/last_days}\
${goto 210}${execpi 600 sed -n '21p' /home/sector11/AccuW/last_days}${color}\
${image /home/sector11/AccuW/last_12.png -p 8,410 -s 50x50}\
${image /home/sector11/AccuW/last_17.png -p 100,410 -s 50x50}\
${image /home/sector11/AccuW/last_22.png -p 195,410 -s 50x50}

        ${execpi 600 sed -n '14p' /home/sector11/AccuW/last_days}°\
${goto 170}${execpi 600 sed -n '19p' /home/sector11/AccuW/last_days}°\
${goto 265}${execpi 600 sed -n '24p' /home/sector11/AccuW/last_days}°
        ${execpi 600 sed -n '15p' /home/sector11/AccuW/last_days}°\
${goto 170}${execpi 600 sed -n '20p' /home/sector11/AccuW/last_days}°\
${goto 265}${execpi 600 sed -n '25p' /home/sector11/AccuW/last_days}°

everything you need, images and all are in: AccuW.tar.gz.  Extract that to ~/ and after changing /home/sector11/ to /home/your_name/ in:

/home/sector11/AccuW/acc_int_images
/home/sector11/AccuW/AccuW.conky

run:

conky -c ~/AccuW/AccuW.conky &

Have fun ... good to be back!

Last edited by Sector11 (2012-04-29 00:44:35)


#! Conky » Archive | Interactive LUA | Weather WUN | v9000 | Teo's x5 Scripts | YAWS | Conky PitStop
OHCG'er | StartPage | BBQ Linux                  #! Moderator

Online

#13 2012-04-28 20:26:29

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 9,948
Website

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

Here's an 800px high vertical conky based on Teo's hard work:

1d1)Accuweather - Images - INTERNATIONAL USERS

This one works right out of the box - changing "paths" of course as per Teo's instructions, and C to F if you're a °F user

aae06bHN.jpg

The conky:

## killall conky && conky -c ~/Accu_W/AccuW.conky &
# Vertical Weather
# By Sector11 -  26 March 2012
# Scripts by: TeoBigusDickus
# [url]http://tiny.cc/s6e4cw[/url]

background no
own_window yes
own_window_type normal
own_window_transparent yes
own_window_hints below,skip_taskbar,skip_pager,undecorated
####### on all desktops, uncoment below, comment above #############
# own_window_hints below,sticky,skip_taskbar,skip_pager,undecorated
own_window_title Vertical Weather
own_window_class Vertical Weather


# Graphics
double_buffer yes
use_spacer right # left right or none
override_utf8_locale yes
use_xft yes
xftfont WenQuanYi Micro Hei Mono:bold:size=7
## Get the font
## sudo apt-get install ttf-wqy-microhei
xftalpha 1.0 
update_interval 1
uppercase no  # set to yes if you want all text to be in uppercase
stippled_borders 0
# border_inner_margin 0
border_width 0
default_outline_color black
default_shade_color black
draw_borders no
draw_graph_borders no
draw_outline yes  # amplifies text if yes
draw_shades yes  # shadecolor black

# Colors
default_color DCDCDC #Gainsboro
color0 7FFF00 #Chartreuse
color1 FFA07A #LightSalmon
color2 FF8C00 #Darkorange
color3 778899 #LightSlateGrey
color4 FFD700 #Gold
color5 FFDEAD #NavajoWhite
color6 00BFFF #DeepSkyBlue
#    colours below used by colorize script
color7 48D1CC #MediumTurquoise
color8 FFFF00 #Yellow
color9 FF6969 #redish FF0000 #Red


no_buffers yes  # Subtract file system buffers from used memory?
short_units yes
pad_percents 2

# Layout
alignment tl  # Aligned position on screen: tl, tr, tm, bl, br, bm, ml, mr
gap_x 0 # left-right
gap_y 220 # up-down
imlib_cache_size 0
minimum_size 65 0
maximum_width 65

text_buffer_size 5120

border_inner_margin 0
border_outer_margin 0
## --------------------------------------------------
### 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
### Valid range is 0-255, where 0 is 0% opacity, and 255 is 100% opacity.
## own_window_argb_value 200
## -----------------------------------------------------


TEXT
${color8}  Buenos${texeci 500 bash /home/sector11/Accu_W/acc_int_images}
  Aires${color}
${image /home/sector11/Accu_W/cc.png -p 0,20 -s 65x39}



 ${execpi 600 sed -n '29p' /home/sector11/Accu_W/curr_cond}°${goto 37}${execpi 600 sed -n '30p' /home/sector11/Accu_W/curr_cond}°
${hr}
   ${color8}Today${color}${image /home/sector11/Accu_W/tod.png -p 0,90 -s 65x39}




 ${execpi 600 sed -n '26p' /home/sector11/Accu_W/first_days}°${goto 37}${execpi 600 sed -n '27p' /home/sector11/Accu_W/first_days}°
  ${color3}Tonight${image /home/sector11/Accu_W/ton.png -p 0,150 -s 65x39}




 ${execpi 600 sed -n '31p' /home/sector11/Accu_W/first_days}°${goto 37}${execpi 600 sed -n '32p' /home/sector11/Accu_W/first_days}°${color}
${hr}
 ${font WenQuanYi Micro Hei Mono:bold:size=6}${color8}${execpi 600 sed -n '5p' /home/sector11/Accu_W/first_days}${font}${color}${font}\
${image /home/sector11/Accu_W/6.png -p 0,220 -s 65x39}




 ${execpi 600 sed -n '8p' /home/sector11/Accu_W/first_days}°${goto 37}${execpi 600 sed -n '9p' /home/sector11/Accu_W/first_days}°
 ${font WenQuanYi Micro Hei Mono:bold:size=6}${color8}${execpi 600 sed -n '10p' /home/sector11/Accu_W/first_days}${color}${font}\
${image /home/sector11/Accu_W/11.png -p 0,280 -s 65x39}




 ${execpi 600 sed -n '13p' /home/sector11/Accu_W/first_days}°${goto 37}${execpi 600 sed -n '14p' /home/sector11/Accu_W/first_days}°
 ${font WenQuanYi Micro Hei Mono:bold:size=6}${color8}${execpi 600 sed -n '15p' /home/sector11/Accu_W/first_days}${color}${font}\
${image /home/sector11/Accu_W/16.png -p 0,340 -s 65x39}




 ${execpi 600 sed -n '18p' /home/sector11/Accu_W/first_days}°${goto 37}${execpi 600 sed -n '19p' /home/sector11/Accu_W/first_days}°
 ${font WenQuanYi Micro Hei Mono:bold:size=6}${color8}${execpi 600 sed -n '20p' /home/sector11/Accu_W/first_days}${color}${font}\
${image /home/sector11/Accu_W/21.png -p 0,400 -s 65x39}




 ${execpi 600 sed -n '23p' /home/sector11/Accu_W/first_days}°${goto 37}${execpi 600 sed -n '24p' /home/sector11/Accu_W/first_days}°
 ${font WenQuanYi Micro Hei Mono:bold:size=6}${color8}${execpi 600 sed -n '1p' /home/sector11/Accu_W/last_days}${color}${font}\
${image /home/sector11/Accu_W/last_2.png -p 0,460 -s 65x39}




 ${execpi 600 sed -n '4p' /home/sector11/Accu_W/last_days}°${goto 37}${execpi 600 sed -n '5p' /home/sector11/Accu_W/last_days}°
 ${font WenQuanYi Micro Hei Mono:bold:size=6}${color8}${execpi 600 sed -n '6p' /home/sector11/Accu_W/last_days}${color}${font}\
${image /home/sector11/Accu_W/last_7.png -p 0,520 -s 65x39}




 ${execpi 600 sed -n '9p' /home/sector11/Accu_W/last_days}°${goto 37}${execpi 600 sed -n '10p' /home/sector11/Accu_W/last_days}°
 ${font WenQuanYi Micro Hei Mono:bold:size=6}${color8}${execpi 600 sed -n '11p' /home/sector11/Accu_W/last_days}${color}${font}\
${image /home/sector11/Accu_W/last_12.png -p 0,580 -s 65x39}




 ${execpi 600 sed -n '14p' /home/sector11/Accu_W/last_days}°${goto 37}${execpi 600 sed -n '15p' /home/sector11/Accu_W/last_days}°
 ${font WenQuanYi Micro Hei Mono:bold:size=6}${color8}${execpi 600 sed -n '16p' /home/sector11/Accu_W/last_days}${color}${font}\
${image /home/sector11/Accu_W/last_17.png -p 0,640 -s 65x39}




  ${execpi 600 sed -n '19p' /home/sector11/Accu_W/last_days}°${goto 37}${execpi 600 sed -n '20p' /home/sector11/Accu_W/last_days}°
 ${font WenQuanYi Micro Hei Mono:bold:size=6}${color8}${execpi 600 sed -n '21p' /home/sector11/Accu_W/last_days}${color}${font}\
${image /home/sector11/Accu_W/last_22.png -p 0,700 -s 65x39}




 ${execpi 600 sed -n '24p' /home/sector11/Accu_W/last_days}°${goto 37}${execpi 600 sed -n '25p' /home/sector11/Accu_W/last_days}°

NOTE:
Using blank lines and [spacebar] for spaces where ever I can as it's been noted that an over use of ${voffset}, ${offset} and ${goto} commands chew up CPU resources.  These are small conkys designed for the small screens on netbooks and notebooks that may have lower amounts of memory.

Last edited by Sector11 (2012-04-29 00:40:19)


#! Conky » Archive | Interactive LUA | Weather WUN | v9000 | Teo's x5 Scripts | YAWS | Conky PitStop
OHCG'er | StartPage | BBQ Linux                  #! Moderator

Online

#14 2012-04-28 20:27:35

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 9,948
Website

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

Scheech!!!!  No sooner get it finish and someone decides to redo my wallpaper

And wouldn't you know it, there's someone adjusting a rain cloud already! lol

1d1) Accuweather - Images - INTERNATIONAL USERS - 10 Days

aadT2bIw.jpg

Everything is right out of the box except for one little fix: if you want the time fetched you need to follow these instructions:

TeoBigusGeekus wrote:

Open the script and add this

date +%T > /path/to/the/script/folder/time_updated

before the last kill command.
Open conkyrc and change this line

${font Arial:size=12}${color ffe595}WEATHER ${font}${hr 2}$color${texeci 500 bash /home/teo/Accuweather_Conky_Int_Images/acc_int_images}

to

${texeci 500 bash /home/teo/Accuweather_Conky_Int_Images/acc_int_images}${font Arial:size=12}${color ffe595}WEATHER - Updated at ${execpi 500 sed -n '1p' /home/teo/Accuweather_Conky_Int_Images/time_updated}°C${font}${hr 2}$color

Replace the /home/teo/,etc with the script's path.

Other than that ... the conky (change the paths to your setup):

## killall conky && conky -c ~/AccuW_10/AccuW_10.conkyrc &
# Scripts by: TeoBigusDickus
# [url]http://tiny.cc/s6e4cw[/url]
##
###  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 Horizontal Accuweather International
own_window_title Horizontal Accuweather International

### 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 640 0 ## width, height
maximum_width 640  ## width, usually a good idea to equal minimum width

gap_x 10 ### left &right
gap_y 10 ### up & down

alignment top_left
####################################################  End Window Settings  ###
###  Font Settings  ##########################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes
xftfont Anonymous Pro:size=9

# 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 DAA520 #Goldenrod  FFFFF0 #Ivory
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
#####################################################  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 none

# 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 #800

## ${image ~/Conky/images/red_1.png -p 0,15 -s 67x40}

TEXT
${color6}${time %d %b %Y} Fetched @ ${execpi 500 sed -n '1p' /home/sector11/AccuW_10/time_updated}${color}\
${texeci 500 bash /home/sector11/AccuW_10/acc_int_images}\
${image /home/sector11/AccuW_10/cc.png -p 0,15 -s 67x40}\
${goto 250}${color6}Today${color}${image /home/sector11/AccuW_10/tod.png -p 230,15 -s 67x40}

           ${font Digital dream Skew Narrow:bold:size=16}${color7}${execpi 600 sed -n '29p' /home/sector11/AccuW_10/curr_cond}\
${goto 140}${color6}${execpi 600 sed -n '30p' /home/sector11/AccuW_10/curr_cond}${font}${color}
${font Zekton:size=14}${color3}${execpi 600 sed -n '1p' /home/sector11/AccuW_10/messages}${color}${font}\
${goto 238}${color2}${execpi 600 sed -n '26p' /home/sector11/AccuW_10/first_days}°${goto 277}${color6}${execpi 600 sed -n '27p' /home/sector11/AccuW_10/first_days}°${color}
${goto 238}Rain? ${execpi 600 sed -n '28p' /home/sector11/AccuW_10/first_days}
${color}Wind:  ${color3}${execpi 600 sed -n '31p' /home/sector11/AccuW_10/curr_cond} ${execpi 600 sed -n '32p' /home/sector11/AccuW_10/curr_cond}\
${goto 250}${color6}Night${color}${image /home/sector11/AccuW_10/ton.png -p 230,105 -s 67x40}
${color}Hum:   ${color3}${execpi 600 sed -n '33p' /home/sector11/AccuW_10/curr_cond}${goto 140}${color}DP:  ${color3}${execpi 600 sed -n '37p' /home/sector11/AccuW_10/curr_cond}°
${color}PR:    ${color3}${execpi 600 sed -n '34p' /home/sector11/AccuW_10/curr_cond}${goto 140}${color}Vis: ${color3}${execpi 600 sed -n '38p' /home/sector11/AccuW_10/curr_cond}
${color}Cloud: ${color3}${execpi 600 sed -n '35p' /home/sector11/AccuW_10/curr_cond}${goto 140}${color}UVI: ${color3}${execpi 600 sed -n '36p' /home/sector11/AccuW_10/curr_cond}${color}

 ${color}Sun: ${color8}${execpi 600 sed -n '39p' /home/sector11/AccuW_10/curr_cond}${goto 140}${color3}${execpi 600 sed -n '40p' /home/sector11/AccuW_10/curr_cond}${color}${goto 238}${color2}${execpi 600 sed -n '31p' /home/sector11/AccuW_10/first_days}°${goto 277}${color6}${execpi 600 sed -n '32p' /home/sector11/AccuW_10/first_days}°${color}
${color}Moon: ${color8}${execpi 600 sed -n '41p' /home/sector11/AccuW_10/curr_cond}${goto 140}${color3}${execpi 600 sed -n '42p' /home/sector11/AccuW_10/curr_cond}${color}       Rain? ${color}${execpi 600 sed -n '33p' /home/sector11/AccuW_10/first_days}
${voffset -175}${goto 320}${execpi 600 sed -n '5p' /home/sector11/AccuW_10/first_days}${goto 432}${execpi 600 sed -n '10p' /home/sector11/AccuW_10/first_days}${goto 544}${execpi 600 sed -n '15p' /home/sector11/AccuW_10/first_days}${color}\
${image /home/sector11/AccuW_10/6.png -p 312,15 -s 67x40}\
${image /home/sector11/AccuW_10/11.png -p 423,15 -s 67x40}\
${image /home/sector11/AccuW_10/16.png -p 538,15 -s 67x40}
${goto 390}${color2}${execpi 600 sed -n '8p' /home/sector11/AccuW_10/first_days}°${goto 500}${execpi 600 sed -n '13p' /home/sector11/AccuW_10/first_days}°${goto 614}${execpi 600 sed -n '18p' /home/sector11/AccuW_10/first_days}°${color}

${goto 390}${color6}${execpi 600 sed -n '9p' /home/sector11/AccuW_10/first_days}°${goto 500}${execpi 600 sed -n '14p' /home/sector11/AccuW_10/first_days}°${goto 614}${execpi 600 sed -n '19p' /home/sector11/AccuW_10/first_days}°${color}

${goto 320}${execpi 600 sed -n '20p' /home/sector11/AccuW_10/first_days}${goto 432}${execpi 600 sed -n '1p' /home/sector11/AccuW_10/last_days}${goto 544}${execpi 600 sed -n '6p' /home/sector11/AccuW_10/last_days}${color}\
${image /home/sector11/AccuW_10/21.png -p 312,80 -s 67x40}\
${image /home/sector11/AccuW_10/last_2.png -p 423,80 -s 67x40}\
${image /home/sector11/AccuW_10/last_7.png -p 538,80 -s 67x40}
${goto 390}${color2}${execpi 600 sed -n '23p' /home/sector11/AccuW_10/first_days}°${goto 500}${execpi 600 sed -n '4p' /home/sector11/AccuW_10/last_days}°${goto 614}${execpi 600 sed -n '9p' /home/sector11/AccuW_10/last_days}°${color}

${goto 390}${color6}${execpi 600 sed -n '24p' /home/sector11/AccuW_10/first_days}°${goto 500}${execpi 600 sed -n '5p' /home/sector11/AccuW_10/last_days}°${goto 614}${execpi 600 sed -n '10p' /home/sector11/AccuW_10/last_days}°${color}

${goto 320}${execpi 600 sed -n '11p' /home/sector11/AccuW_10/last_days}${goto 432}${execpi 600 sed -n '16p' /home/sector11/AccuW_10/last_days}${goto 544}${execpi 600 sed -n '21p' /home/sector11/AccuW_10/last_days}\
${image /home/sector11/AccuW_10/last_12.png -p 312,145 -s 67x40}\
${image /home/sector11/AccuW_10/last_17.png -p 423,145 -s 67x40}\
${image /home/sector11/AccuW_10/last_22.png -p 538,145 -s 67x40}
${goto 390}${color2}${execpi 600 sed -n '14p' /home/sector11/AccuW_10/last_days}°${goto 500}${execpi 600 sed -n '19p' /home/sector11/AccuW_10/last_days}°${goto 614}${execpi 600 sed -n '24p' /home/sector11/AccuW_10/last_days}°${color}

${goto 390}${color6}${execpi 600 sed -n '15p' /home/sector11/AccuW_10/last_days}°${goto 500}${execpi 600 sed -n '20p' /home/sector11/AccuW_10/last_days}°${goto 614}${execpi 600 sed -n '25p' /home/sector11/AccuW_10/last_days}°${color}

EDIT: Oh yea, that same guy fixed the FRIDAYDAY & MONDAYDAY booboo seen in the screenshot!!
That was done on purpose to check for spacing for Wednesday.


#! Conky » Archive | Interactive LUA | Weather WUN | v9000 | Teo's x5 Scripts | YAWS | Conky PitStop
OHCG'er | StartPage | BBQ Linux                  #! Moderator

Online

#15 2012-04-28 20:29:38

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 9,948
Website

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

1d1) Accuweather - Images - INTERNATIONAL USERS: Multiple cities!

Here's a new concept - two or more cities c/w Date and Time.

aautAehV.jpg<<-- old | new -->> aalDPtjo.jpg

The New one: The conky is the same height and only 5 pixels wider - mainly because if the Moonrise and Moonset times needed more space.

My directory structure looks like this:

  • ~/AccuW_2/accuw.conky

  • ~/AccuW_2/BsAs

  • ~/AccuW_2/BsAs/acc_int_images

  • ~/AccuW_2/BsAs/Forecast_Images

  • ~/AccuW_2/London

  • ~/AccuW_2/London/acc_int_images

  • ~/AccuW_2/London/Forecast_Images

Each of the 'acc_int_images' scripts have been modified to use the directory they are in and each section of the conky looks for the weather information in the directory concerned.  I suppose I could have had the scripts read from a central image directory and write to the city directory, but I was in a hurry and this seemed faster.  Besides, I didn't want to run the risk of trying to copy 1 image to two (or maybe more in the future) locations at the same time.

This part NO LONGER APPLIES - everything else is the same:

This conky uses the 180x180 images found in: AccuW.tar.gz, seen here.  I should convert them to the regular images.

A Project for Tomorrow! - Done!  The conky now uses the images out of the box, I have finally wrapped my teeth around a proper re-sizing method for the conky images command.

This is the updated conky to use the default images:

## killall conky && conky -c ~/AccuW_2/accuw.conky &
# Scripts by: TeoBigusDickus
# [url]http://tiny.cc/s6e4cw[/url]
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type normal #override
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager

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

# fiddle with window
use_spacer right
use_xft yes

# Update interval in seconds
update_interval 5

# Minimum size of text area
minimum_size 290 0
maximum_width 290

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 WenQuanYi Micro Hei Mono:bold:size=8
uppercase no # set to yes if you want all text to be in uppercase

# Stippled borders?
stippled_borders 3

# border margins
border_inner_margin 5

# 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 10

imlib_cache_size 0

default_color ffffff
color1 ffe595

## /home/sector11/AccuW_2/BsAs/acc_int_images
## /home/sector11/AccuW_2/London/acc_int_images

# stuff after 'TEXT' will be formatted on screen
TEXT
${color1}BsAs Arg ${time %a %d/%m/%y %H:%M}${color}\
${texeci 500 bash /home/sector11/AccuW_2/BsAs/acc_int_images}\
${texeci 500 bash /home/sector11/AccuW_2/London/acc_int_images}\
${image /home/sector11/AccuW_2/BsAs/cc.png -p 5,50 -s 110x66}
${execpi 600 sed -n '1p' /home/sector11/AccuW_2/BsAs/messages}
               ${font Zekton:bold:size=12}${execpi 600 sed -n '29p' /home/sector11/AccuW_2/BsAs/curr_cond}°     ${execpi 600 sed -n '30p' /home/sector11/AccuW_2/BsAs/curr_cond}°${font}

                ${color1}WIND: ${color}${execpi 600 sed -n '31p' /home/sector11/AccuW_2/BsAs/curr_cond} ${execpi 600 sed -n '32p' /home/sector11/AccuW_2/BsAs/curr_cond}
                 ${color1}HUM: ${color}${execpi 600 sed -n '33p' /home/sector11/AccuW_2/BsAs/curr_cond}
                  ${color1}DP: ${color}${execpi 600 sed -n '37p' /home/sector11/AccuW_2/BsAs/curr_cond}°
                  ${color1}PR: ${color}${execpi 600 sed -n '34p' /home/sector11/AccuW_2/BsAs/curr_cond}
                 ${color1}VIS: ${color}${execpi 600 sed -n '38p' /home/sector11/AccuW_2/BsAs/curr_cond}
${color1}UVI: ${color}${execpi 600 sed -n '36p' /home/sector11/AccuW_2/BsAs/curr_cond}\
${goto 134}${color1}CLOUD: ${color}${execpi 600 sed -n '35p' /home/sector11/AccuW_2/BsAs/curr_cond}
${color1}Sunrise:  ${color}${execpi 600 sed -n '39p' /home/sector11/AccuW_2/BsAs/curr_cond}\
${goto 160}  ${color1}Sunset: ${color}${execpi 600 sed -n '40p' /home/sector11/AccuW_2/BsAs/curr_cond}
${color1}Moonrise: ${color}${execpi 600 sed -n '41p' /home/sector11/AccuW_2/BsAs/curr_cond}\
${goto 160} ${color1}Moonset: ${color}${execpi 600 sed -n '42p' /home/sector11/AccuW_2/BsAs/curr_cond}
${hr 1}
 ${color1}TODAY${color} P: ${execpi 600 sed -n '28p' /home/sector11/AccuW_2/BsAs/first_days}${goto 180}${color1}TONIGHT${color} P: ${color}${execpi 600 sed -n '33p' /home/sector11/AccuW_2/BsAs/first_days}\
${image /home/sector11/AccuW_2/BsAs/tod.png -p 0,190 -s 110x66}\
${image /home/sector11/AccuW_2/BsAs/ton.png -p 145,190 -s 110x66}

              ${execpi 600 sed -n '26p' /home/sector11/AccuW_2/BsAs/first_days}°\
${goto 272}${execpi 600 sed -n '31p' /home/sector11/AccuW_2/BsAs/first_days}°

              ${execpi 600 sed -n '27p' /home/sector11/AccuW_2/BsAs/first_days}°\
${goto 272}${execpi 600 sed -n '32p' /home/sector11/AccuW_2/BsAs/first_days}°         

${hr}
${color1}London Ont ${tztime Canada/Eastern %a %d/%m/%y %H:%M}${color}\
${image /home/sector11/AccuW_2/London/cc.png -p 10,320 -s 110x66}
${execpi 600 sed -n '1p' /home/sector11/AccuW_2/London/messages}
               ${font Zekton:bold:size=12}${execpi 600 sed -n '29p' /home/sector11/AccuW_2/London/curr_cond}°     ${execpi 600 sed -n '30p' /home/sector11/AccuW_2/London/curr_cond}°${font}

                ${color1}WIND: ${color}${execpi 600 sed -n '31p' /home/sector11/AccuW_2/London/curr_cond} ${execpi 600 sed -n '32p' /home/sector11/AccuW_2/London/curr_cond}
                 ${color1}HUM: ${color}${execpi 600 sed -n '33p' /home/sector11/AccuW_2/London/curr_cond}
                  ${color1}DP: ${color}${execpi 600 sed -n '37p' /home/sector11/AccuW_2/London/curr_cond}°
                  ${color1}PR: ${color}${execpi 600 sed -n '34p' /home/sector11/AccuW_2/London/curr_cond}
                 ${color1}VIS: ${color}${execpi 600 sed -n '38p' /home/sector11/AccuW_2/London/curr_cond}
${color1}UVI: ${color}${execpi 600 sed -n '36p' /home/sector11/AccuW_2/London/curr_cond}\
${goto 134}${color1}CLOUD: ${color}${execpi 600 sed -n '35p' /home/sector11/AccuW_2/London/curr_cond}
${color1}Sunrise:  ${color}${execpi 600 sed -n '39p' /home/sector11/AccuW_2/London/curr_cond}\
${goto 160}  ${color1}Sunset: ${color}${execpi 600 sed -n '40p' /home/sector11/AccuW_2/London/curr_cond}
${color1}Moonrise: ${color}${execpi 600 sed -n '41p' /home/sector11/AccuW_2/London/curr_cond}\
${goto 160} ${color1}Moonset: ${color}${execpi 600 sed -n '42p' /home/sector11/AccuW_2/London/curr_cond}
${hr 1}
 ${color1}TODAY${color} P: ${execpi 600 sed -n '28p' /home/sector11/AccuW_2/London/first_days}${goto 180}${color1}TONIGHT${color} P: ${color}${execpi 600 sed -n '33p' /home/sector11/AccuW_2/London/first_days}\
${image /home/sector11/AccuW_2/London/tod.png -p 0,458 -s 110x66}\
${image /home/sector11/AccuW_2/London/ton.png -p 145,458 -s 110x66}

              ${execpi 600 sed -n '26p' /home/sector11/AccuW_2/London/first_days}°\
${goto 272}${execpi 600 sed -n '31p' /home/sector11/AccuW_2/London/first_days}°

              ${execpi 600 sed -n '27p' /home/sector11/AccuW_2/London/first_days}°\
${goto 272}${execpi 600 sed -n '32p' /home/sector11/AccuW_2/London/first_days}°

${hr 1}

======>>>>>> Multiple cities, what a concept!

Last edited by Sector11 (2012-04-28 20:35:23)


#! Conky » Archive | Interactive LUA | Weather WUN | v9000 | Teo's x5 Scripts | YAWS | Conky PitStop
OHCG'er | StartPage | BBQ Linux                  #! Moderator

Online

#16 2012-04-28 20:43:32

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 9,948
Website

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

1e_Accuweather_USA_Images - 2 cities
Using the latest revision as of: 1 Apr 2012 - Thanks Teo.

2 US cities in under 800pixels (740 actually) created for a friend's laptop.

aavFK2JJ.jpg

Uses three fonts:

Dumbledor 1 Cut Up is used for "Now temp" and "FL temp" if FL is equal to or higher than the "Now temp" and if higher it will also turn red.
Dumbledor 1 Cut Down is used for FL temp when it is cooler than the Now Temp and it will be blue.

Other than that everything is out of the box with some 'slight' changes in the directory structure and calling of the same.

My directory - file structure looks like this:
Directories:

  • $HOME/AccuUSAI/

  • $HOME/AccuUSAI/Driggs

  • $HOME/AccuUSAI/Driggs/Forecast_Images

  • $HOME/AccuUSAI/Austin

  • $HOME/AccuUSAI/Austin/Forecast_Images

Files:

  • $HOME/AccuUSAI/acc_usai.conkyrc

  • $HOME/AccuUSAI/Austin/acc_usa_images

  • $HOME/AccuUSAI/Driggs/acc_usa_images

$HOME/AccuUSAI/acc_usai.conkyrc

# killall conky && conky -c $HOME/AccuUSAI/acc_usai.conkyrc &
# 1e_Accuweather_USA_Images script by TeoBigusGeekus
# [url]http://ubuntuforums.org/showthread.php?t=1156383[/url]
###  Begin Window Settings  ##################################################
# Create own window instead of using desktop
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 Accuweather USA
own_window_title Accuweather USA

### 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 335 0 ## width, height
maximum_width 335  ## width, usually a good idea to equal minimum width

gap_x 10 ### left &right
gap_y 10 ### up & down

alignment top_left
####################################################  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 5 



# stuff after 'TEXT' will be formatted on screen
TEXT
${color0}Driggs, ID - ${tztime US/Mountain %m/%d/%y - %H:%M} ${hr}${color}\
${texeci 500 bash $HOME/AccuUSAI/Driggs/acc_usa_images}\
${texeci 500 bash $HOME/AccuUSAI/Austin/acc_usa_images}\
${image $HOME/AccuUSAI/Driggs/cc.png -p 230,15 -s 67x40}
 ${execpi 600 sed -n '3p' $HOME/AccuUSAI/Driggs/curr_cond}
${font Dumbledor 1 Cut Up:size=20} Now ${execpi 600 sed -n '4p' $HOME/AccuUSAI/Driggs/curr_cond}${goto 140}FL \
${if_match ${execpi 600 sed -n '4p' $HOME/AccuUSAI/Driggs/curr_cond}>${execpi 600 sed -n '5p' $HOME/AccuUSAI/Driggs/curr_cond}}${color6}${font Dumbledor 1 Cut Down:size=20}${execpi 600 sed -n '5p' $HOME/AccuUSAI/Driggs/curr_cond}${color}${else}\
${if_match ${execpi 600 sed -n '4p' $HOME/AccuUSAI/Driggs/curr_cond} < ${execpi 600 sed -n '5p' $HOME/AccuUSAI/Driggs/curr_cond}}${color9}${font Dumbledor 1 Cut Up:size=20}${execpi 600 sed -n '5p' $HOME/AccuUSAI/Driggs/curr_cond}${color}\
${else}${execpi 600 sed -n '5p' $HOME/AccuUSAI/Driggs/curr_cond}${endif}${endif}${font}

 ${color0}Wind:${color}  ${execpi 600 sed -n '6p' $HOME/AccuUSAI/Driggs/curr_cond} ${execpi 600 sed -n '14p' $HOME/AccuUSAI/Driggs/curr_cond}\
${goto 170}${color0}Today    Tonight${color}
 ${color0}Hum:${color}   ${execpi 600 sed -n '7p' $HOME/AccuUSAI/Driggs/curr_cond}${goto 170}${execpi 600 sed -n '28p' $HOME/AccuUSAI/Driggs/tod_ton}\
  ${if_match ${execpi 600 sed -n '28p' $HOME/AccuUSAI/Driggs/tod_ton}>${execpi 600 sed -n '29p' $HOME/AccuUSAI/Driggs/tod_ton}}${color6}${execpi 600 sed -n '29p' $HOME/AccuUSAI/Driggs/tod_ton}${color}${else}\
${if_match ${execpi 600 sed -n '28p' $HOME/AccuUSAI/Driggs/tod_ton}==${execpi 600 sed -n '29p' $HOME/AccuUSAI/Driggs/tod_ton}}${color}${execpi 600 sed -n '29p' $HOME/AccuUSAI/Driggs/tod_ton}${color}${else}\
${color9}${execpi 600 sed -n '29p' $HOME/AccuUSAI/Driggs/tod_ton}${color}${endif}${endif}\
${goto 245}${execpi 600 sed -n '32p' $HOME/AccuUSAI/Driggs/tod_ton}${goto 280}${if_match ${execpi 600 sed -n '32p' $HOME/AccuUSAI/Driggs/tod_ton}>${execpi 600 sed -n '33p' $HOME/AccuUSAI/Driggs/tod_ton}}${color6}${execpi 600 sed -n '33p' $HOME/AccuUSAI/Driggs/tod_ton}${color}${else}\
${if_match ${execpi 600 sed -n '32p' $HOME/AccuUSAI/Driggs/tod_ton}==${execpi 600 sed -n '33p' $HOME/AccuUSAI/Driggs/tod_ton}}${color}${execpi 600 sed -n '32p' $HOME/AccuUSAI/Driggs/tod_ton}${color}${else}\
${color9}${execpi 600 sed -n '33p' $HOME/AccuUSAI/Driggs/tod_ton}${color}${endif}${endif}
 ${color0}Bar:${color}   ${execpi 600 sed -n '8p' $HOME/AccuUSAI/Driggs/curr_cond}\
${image $HOME/AccuUSAI/Driggs/today.png -p 160,90 -p 160,100 -s 67x40}\
${image $HOME/AccuUSAI/Driggs/tonight.png -p 235,90 -p 230,100 -s 67x40}
 ${color0}Cloud:${color} ${execpi 600 sed -n '9p' $HOME/AccuUSAI/Driggs/curr_cond}
 ${color0}UVI:${color}   ${execpi 600 sed -n '10p' $HOME/AccuUSAI/Driggs/curr_cond}0${goto 95}${color0}DP:${color} ${execpi 600 sed -n '11p' $HOME/AccuUSAI/Driggs/curr_cond}
 ${color0}Vis:${color}   ${execpi 600 sed -n '13p' $HOME/AccuUSAI/Driggs/curr_cond}
 ${color0}Am. of Precip (1hr):${color} ${execpi 600 sed -n '12p' $HOME/AccuUSAI/Driggs/curr_cond}
 ${color0}Sunrise:${color} 0${execpi 600 sed -n '15p' $HOME/AccuUSAI/Driggs/curr_cond}${goto 170}${color0}Sunset:${color} ${execpi 600 sed -n '16p' $HOME/AccuUSAI/Driggs/curr_cond}
${hr 1}
   ${color0}${execpi 600 sed -n '6p' $HOME/AccuUSAI/Driggs/tod_ton}${goto 145}${execpi 600 sed -n '11p' $HOME/AccuUSAI/Driggs/tod_ton}${goto 260}${execpi 600 sed -n '16p' $HOME/AccuUSAI/Driggs/tod_ton}${color}
${goto 75}${color9}${execpi 600 sed -n '9p' $HOME/AccuUSAI/Driggs/tod_ton}°${goto 190}${execpi 600 sed -n '14p' $HOME/AccuUSAI/Driggs/tod_ton}°${goto 305}${execpi 600 sed -n '19p' $HOME/AccuUSAI/Driggs/tod_ton}°

${goto 75}${color6}${execpi 600 sed -n '10p' $HOME/AccuUSAI/Driggs/tod_ton}°${goto 190}${execpi 600 sed -n '15p' $HOME/AccuUSAI/Driggs/tod_ton}°${goto 305}${execpi 600 sed -n '20p' $HOME/AccuUSAI/Driggs/tod_ton}°
${image $HOME/AccuUSAI/Driggs/7.png -p 0,195  -s 67x40}\
${image $HOME/AccuUSAI/Driggs/12.png -p 115,195  -s 67x40}\
${image $HOME/AccuUSAI/Driggs/17.png -p 230,195  -s 67x40}
   ${color0}${execpi 600 sed -n '21p' $HOME/AccuUSAI/Driggs/tod_ton}${goto 145}${execpi 600 sed -n '1p' $HOME/AccuUSAI/Driggs/last_days}${goto 260}${execpi 600 sed -n '6p' $HOME/AccuUSAI/Driggs/last_days}${color}
${goto 75}${color9}${execpi 600 sed -n '24p' $HOME/AccuUSAI/Driggs/tod_ton}°${goto 190}${execpi 600 sed -n '4p' $HOME/AccuUSAI/Driggs/last_days}°${goto 305}${execpi 600 sed -n '9p' $HOME/AccuUSAI/Driggs/last_days}°${color}

${goto 75}${color6}${execpi 600 sed -n '25p' $HOME/AccuUSAI/Driggs/tod_ton}°${goto 190}${execpi 600 sed -n '5p' $HOME/AccuUSAI/Driggs/last_days}°${goto 305}${execpi 600 sed -n '10p' $HOME/AccuUSAI/Driggs/last_days}°${color}
${image $HOME/AccuUSAI/Driggs/22.png -p 0,260  -s 67x40}\
${image $HOME/AccuUSAI/Driggs/N2.png -p 115,260  -s 67x40}\
${image $HOME/AccuUSAI/Driggs/N7.png -p 230,260  -s 67x40}
   ${color0}${execpi 600 sed -n '11p' $HOME/AccuUSAI/Driggs/last_days}${goto 145}${execpi 600 sed -n '16p' $HOME/AccuUSAI/Driggs/last_days}${goto 260}${execpi 600 sed -n '21p' $HOME/AccuUSAI/Driggs/last_days}${color}
${goto 75}${color9}${execpi 600 sed -n '14p' $HOME/AccuUSAI/Driggs/last_days}°${goto 190}${execpi 600 sed -n '19p' $HOME/AccuUSAI/Driggs/last_days}°${goto 305}${execpi 600 sed -n '24p' $HOME/AccuUSAI/Driggs/last_days}°${color}

${goto 75}${color6}${execpi 600 sed -n '15p' $HOME/AccuUSAI/Driggs/last_days}°${goto 190}${execpi 600 sed -n '20p' $HOME/AccuUSAI/Driggs/last_days}°${goto 305}${execpi 600 sed -n '25p' $HOME/AccuUSAI/Driggs/last_days}°${color}
${image $HOME/AccuUSAI/Driggs/N12.png -p 0,325  -s 67x40}\
${image $HOME/AccuUSAI/Driggs/N17.png -p 115,325  -s 67x40}\
${image $HOME/AccuUSAI/Driggs/N22.png -p 230,325  -s 67x40}
${color0}Austin, TX - ${tztime US/Central %m/%d/%y - %H:%M} ${hr}${color}\
${image $HOME/AccuUSAI/Austin/cc.png -p 230,395 -s 67x40}
 ${execpi 600 sed -n '3p' $HOME/AccuUSAI/Austin/curr_cond}
${font Dumbledor 1 Cut Up:size=20} Now ${execpi 600 sed -n '4p' $HOME/AccuUSAI/Austin/curr_cond}${goto 140}FL \
${if_match ${execpi 600 sed -n '4p' $HOME/AccuUSAI/Austin/curr_cond}>${execpi 600 sed -n '5p' $HOME/AccuUSAI/Austin/curr_cond}}${color6}${font Dumbledor 1 Cut Down:size=20}${execpi 600 sed -n '5p' $HOME/AccuUSAI/Austin/curr_cond}${color}${else}\
${if_match ${execpi 600 sed -n '4p' $HOME/AccuUSAI/Austin/curr_cond} < ${execpi 600 sed -n '5p' $HOME/AccuUSAI/Austin/curr_cond}}${color9}${font Dumbledor 1 Cut Up:size=20}${execpi 600 sed -n '5p' $HOME/AccuUSAI/Austin/curr_cond}${color}\
${else}${execpi 600 sed -n '5p' $HOME/AccuUSAI/Austin/curr_cond}${endif}${endif}${font}

 ${color0}Wind:${color}  ${execpi 600 sed -n '6p' $HOME/AccuUSAI/Austin/curr_cond} ${execpi 600 sed -n '14p' $HOME/AccuUSAI/Austin/curr_cond}\
${goto 170}${color0}Today    Tonight${color}
 ${color0}Hum:${color}   ${execpi 600 sed -n '7p' $HOME/AccuUSAI/Austin/curr_cond}${goto 170}${execpi 600 sed -n '28p' $HOME/AccuUSAI/Austin/tod_ton}\
  ${if_match ${execpi 600 sed -n '28p' $HOME/AccuUSAI/Austin/tod_ton}>${execpi 600 sed -n '29p' $HOME/AccuUSAI/Austin/tod_ton}}${color6}${execpi 600 sed -n '29p' $HOME/AccuUSAI/Austin/tod_ton}${color}${else}\
${if_match ${execpi 600 sed -n '28p' $HOME/AccuUSAI/Austin/tod_ton}==${execpi 600 sed -n '29p' $HOME/AccuUSAI/Austin/tod_ton}}${color}${execpi 600 sed -n '29p' $HOME/AccuUSAI/Austin/tod_ton}${color}${else}\
${color9}${execpi 600 sed -n '29p' $HOME/AccuUSAI/Austin/tod_ton}${color}${endif}${endif}\
${goto 245}${execpi 600 sed -n '32p' $HOME/AccuUSAI/Austin/tod_ton}${goto 280}${if_match ${execpi 600 sed -n '32p' $HOME/AccuUSAI/Austin/tod_ton}>${execpi 600 sed -n '33p' $HOME/AccuUSAI/Austin/tod_ton}}${color6}${execpi 600 sed -n '33p' $HOME/AccuUSAI/Austin/tod_ton}${color}${else}\
${if_match ${execpi 600 sed -n '32p' $HOME/AccuUSAI/Austin/tod_ton}==${execpi 600 sed -n '33p' $HOME/AccuUSAI/Austin/tod_ton}}${color}${execpi 600 sed -n '32p' $HOME/AccuUSAI/Austin/tod_ton}${color}${else}\
${color9}${execpi 600 sed -n '33p' $HOME/AccuUSAI/Austin/tod_ton}${color}${endif}${endif}
 ${color0}Bar:${color}   ${execpi 600 sed -n '8p' $HOME/AccuUSAI/Austin/curr_cond}\
${image $HOME/AccuUSAI/Austin/today.png -p 160,470 -p 160,100 -s 67x40}\
${image $HOME/AccuUSAI/Austin/tonight.png -p 235,470 -p 230,100 -s 67x40}
 ${color0}Cloud:${color} ${execpi 600 sed -n '9p' $HOME/AccuUSAI/Austin/curr_cond}
 ${color0}UVI:${color}   ${execpi 600 sed -n '10p' $HOME/AccuUSAI/Austin/curr_cond}0${goto 95}${color0}DP:${color} ${execpi 600 sed -n '11p' $HOME/AccuUSAI/Austin/curr_cond}
 ${color0}Vis:${color}   ${execpi 600 sed -n '13p' $HOME/AccuUSAI/Austin/curr_cond}
 ${color0}Am. of Precip (1hr):${color} ${execpi 600 sed -n '12p' $HOME/AccuUSAI/Austin/curr_cond}
 ${color0}Sunrise:${color} 0${execpi 600 sed -n '15p' $HOME/AccuUSAI/Austin/curr_cond}${goto 170}${color0}Sunset:${color} ${execpi 600 sed -n '16p' $HOME/AccuUSAI/Austin/curr_cond}
${hr 1}
   ${color0}${execpi 600 sed -n '6p' $HOME/AccuUSAI/Austin/tod_ton}${goto 145}${execpi 600 sed -n '11p' $HOME/AccuUSAI/Austin/tod_ton}${goto 260}${execpi 600 sed -n '16p' $HOME/AccuUSAI/Austin/tod_ton}${color}
${goto 75}${color9}${execpi 600 sed -n '9p' $HOME/AccuUSAI/Austin/tod_ton}°${goto 190}${execpi 600 sed -n '14p' $HOME/AccuUSAI/Austin/tod_ton}°${goto 305}${execpi 600 sed -n '19p' $HOME/AccuUSAI/Austin/tod_ton}°

${goto 75}${color6}${execpi 600 sed -n '10p' $HOME/AccuUSAI/Austin/tod_ton}°${goto 190}${execpi 600 sed -n '15p' $HOME/AccuUSAI/Austin/tod_ton}°${goto 305}${execpi 600 sed -n '20p' $HOME/AccuUSAI/Austin/tod_ton}°
${image $HOME/AccuUSAI/Austin/7.png -p 0,575  -s 67x40}\
${image $HOME/AccuUSAI/Austin/12.png -p 115,575  -s 67x40}\
${image $HOME/AccuUSAI/Austin/17.png -p 230,575  -s 67x40}
   ${color0}${execpi 600 sed -n '21p' $HOME/AccuUSAI/Austin/tod_ton}${goto 145}${execpi 600 sed -n '1p' $HOME/AccuUSAI/Austin/last_days}${goto 260}${execpi 600 sed -n '6p' $HOME/AccuUSAI/Austin/last_days}${color}
${goto 75}${color9}${execpi 600 sed -n '24p' $HOME/AccuUSAI/Austin/tod_ton}°${goto 190}${execpi 600 sed -n '4p' $HOME/AccuUSAI/Austin/last_days}°${goto 305}${execpi 600 sed -n '9p' $HOME/AccuUSAI/Austin/last_days}°${color}

${goto 75}${color6}${execpi 600 sed -n '25p' $HOME/AccuUSAI/Austin/tod_ton}°${goto 190}${execpi 600 sed -n '5p' $HOME/AccuUSAI/Austin/last_days}°${goto 305}${execpi 600 sed -n '10p' $HOME/AccuUSAI/Austin/last_days}°${color}
${image $HOME/AccuUSAI/Austin/22.png -p 0,640  -s 67x40}\
${image $HOME/AccuUSAI/Austin/N2.png -p 115,640  -s 67x40}\
${image $HOME/AccuUSAI/Austin/N7.png -p 230,640  -s 67x40}
   ${color0}${execpi 600 sed -n '11p' $HOME/AccuUSAI/Austin/last_days}${goto 145}${execpi 600 sed -n '16p' $HOME/AccuUSAI/Austin/last_days}${goto 260}${execpi 600 sed -n '21p' $HOME/AccuUSAI/Austin/last_days}${color}
${goto 75}${color9}${execpi 600 sed -n '14p' $HOME/AccuUSAI/Austin/last_days}°${goto 190}${execpi 600 sed -n '19p' $HOME/AccuUSAI/Austin/last_days}°${goto 305}${execpi 600 sed -n '24p' $HOME/AccuUSAI/Austin/last_days}°${color}

${goto 75}${color6}${execpi 600 sed -n '15p' $HOME/AccuUSAI/Austin/last_days}°${goto 190}${execpi 600 sed -n '20p' $HOME/AccuUSAI/Austin/last_days}°${goto 305}${execpi 600 sed -n '25p' $HOME/AccuUSAI/Austin/last_days}°${color}
${image $HOME/AccuUSAI/Austin/N12.png -p 0,705  -s 67x40}\
${image $HOME/AccuUSAI/Austin/N17.png -p 115,705  -s 67x40}\
${image $HOME/AccuUSAI/Austin/N22.png -p 230,705  -s 67x40}

Obviously the two files:

  • $HOME/AccuUSAI/Austin/acc_usa_images

  • $HOME/AccuUSAI/Driggs/acc_usa_images

will also need to be edited according to Teo's instructions and make sure you get the sub-directory so the files created stay with the proper city.

ie:
$HOME/AccuUSAI/Driggs/
$HOME/AccuUSAI/Austin/

One final thing - don't use the ${tztime} command if displaying your location, use the normal command

ie:

${tztime US/Mountain %m/%d/%y - %H:%M}

would be:

${time %m/%d/%y - %H:%M}

Have fun.


#! Conky » Archive | Interactive LUA | Weather WUN | v9000 | Teo's x5 Scripts | YAWS | Conky PitStop
OHCG'er | StartPage | BBQ Linux                  #! Moderator

Online

#17 2012-04-28 20:48:24

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 9,948
Website

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

Four Cities.

  • Two International Cities - 1d1) Accuweather - Images - INTERNATIONAL USERS

  • Two US Cities - 1e) Accuweather - Images - USA USERS

  • One conky - again built to fit an 800pixel screen

aan55IRR.jpg
... and light on resources too!

Directories and files (check the fonts, it's built for those):

~/Accu_US_INT/acc_us_int.conky
~/Accu_US_INT/Falun
~/Accu_US_INT/Falun/acc_int_images
~/Accu_US_INT/Falun/Forecast_Images
~/Accu_US_INT/Sanjo
~/Accu_US_INT/Sanjo/acc_int_images
~/Accu_US_INT/Sanjo/Forecast_Images
~/Accu_US_INT/Austin
~/Accu_US_INT/Austin/acc_usa_images
~/Accu_US_INT/Austin/Forecast_Images
~/Accu_US_INT/Driggs
~/Accu_US_INT/Driggs/acc_usa_images
~/Accu_US_INT/Driggs/Forecast_Images

~/Accu_US_INT/acc_us_int.conky

# killall conky && conky -c $HOME/Accu_US_INT/acc_us_int.conky &
# Scripts by: TeoBigusDickus
# [url]http://tiny.cc/s6e4cw[/url]
###  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 Accuweather USA INT
own_window_title Accuweather USA INT

### 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 315 0 ## width, height
maximum_width 315  ## width, usually a good idea to equal minimum width

gap_x 10 ### left &right
gap_y 10 ### up & down

alignment top_left
####################################################  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

## Borlange, Sweden - SWXX0105
 # [url]http://www.accuweather.com/en/se/borlange/307405/weather-forecast/307405[/url]
 # ${tztime Europe/Stockholm %m/%d/%y - %H:%M}
## Falun, Sweden - SWXX0166
 # [url]http://www.accuweather.com/en/se/falun/307406/weather-forecast/307406[/url]
 # ${tztime Europe/Stockholm %m/%d/%y - %H:%M}
## Sanjo, Japan - JAXX0077
 # [url]http://www.accuweather.com/en/jp/sanjo/219298/weather-forecast/219298[/url]
 # ${tztime Japan %m/%d/%y - %H:%M}
## Driggs, Idaho - USID0066
 # [url]http://www.accuweather.com/en/us/driggs-id/83422/weather-forecast/332605[/url]
 # ${tztime US/Mountain %m/%d/%y - %H:%M}
## Austin, Texas - USTX0057
 # [url]http://www.accuweather.com/en/us/austin-tx/78701/weather-forecast/351193[/url]
 # ${tztime US/Central %m/%d/%y - %H:%M}
 #
## [url]http://www.accuweather.com/en/us/honolulu-hi/96814/weather-forecast/348211[/url]

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

# stuff after 'TEXT' will be formatted on screen
TEXT
 ${color0}Falun, Sweden${goto 150}${tztime  Europe/Stockholm %a %m/%d/%y - %H:%M}${color}\
${texeci 500 bash $HOME/Accu_US_INT/Falun/acc_int_images}\
${texeci 500 bash $HOME/Accu_US_INT/Sanjo/acc_int_images}\
${texeci 500 bash $HOME/Accu_US_INT/Driggs/acc_usa_images}\
${texeci 500 bash $HOME/Accu_US_INT/Austin/acc_usa_images}\
${image $HOME/Accu_US_INT/Falun/cc.png -p 230,20 -s 67x40}
 ${execpi 600 sed -n '1p' $HOME/Accu_US_INT/Falun/messages}
${font WW Digital:size=20} Now ${execpi 600 sed -n '29p' $HOME/Accu_US_INT/Falun/curr_cond}\
${goto 140}FL ${color2}${execpi 600 sed -n '30p' $HOME/Accu_US_INT/Falun/curr_cond}${font}

 ${color0}Wind:  ${color}${execpi 600 sed -n '31p' $HOME/Accu_US_INT/Falun/curr_cond} ${execpi 600 sed -n '32p' $HOME/Accu_US_INT/Falun/curr_cond}\
${goto 170}${color0}Today    Tonight${color}
 ${color0}Hum:   ${color}${execpi 600 sed -n '33p' $HOME/Accu_US_INT/Falun/curr_cond}\
${goto 170}${execpi 600 sed -n '26p' $HOME/Accu_US_INT/Falun/first_days}\
${goto 210}${color2}${execpi 600 sed -n '27p' $HOME/Accu_US_INT/Falun/first_days}${color}\
${goto 245}${execpi 600 sed -n '31p' $HOME/Accu_US_INT/Falun/first_days}\
${goto 280}${color2}${execpi 600 sed -n '32p' $HOME/Accu_US_INT/Falun/first_days}${color}
 ${color0}Bar:   ${color}${execpi 600 sed -n '34p' $HOME/Accu_US_INT/Falun/curr_cond}\
${image $HOME/Accu_US_INT/Falun/tod.png -p 160,92 -s 67x40}\
${image $HOME/Accu_US_INT/Falun/ton.png -p 240,92 -s 67x40}
 ${color0}Cloud: ${color}${execpi 600 sed -n '35p' $HOME/Accu_US_INT/Falun/curr_cond}
 ${color0}UVI:   ${color}${execpi 600 sed -n '36p' $HOME/Accu_US_INT/Falun/curr_cond}${goto 95}${color0}DP: ${color}${execpi 600 sed -n '37p' $HOME/Accu_US_INT/Falun/curr_cond}F
 ${color0}Vis: ${color}${execpi 600 sed -n '38p' $HOME/Accu_US_INT/Falun/curr_cond}
 ${color0}Sunrise:  ${color}${execpi 600 sed -n '39p' $HOME/Accu_US_INT/Falun/curr_cond}\
${goto 160}  ${color0}Sunset: ${color}${execpi 600 sed -n '40p' $HOME/Accu_US_INT/Falun/curr_cond}
 ${color0}Moonrise: ${color}${execpi 600 sed -n '41p' $HOME/Accu_US_INT/Falun/curr_cond}\
${goto 160} ${color0}Moonset: ${color}${execpi 600 sed -n '42p' $HOME/Accu_US_INT/Falun/curr_cond}
${hr}
 ${color0}Sanjo, Japan${goto 150}${tztime Japan %a %d/%m/%y - %H:%M}${color}\
${image $HOME/Accu_US_INT/Sanjo/cc.png -p 230,210 -s 67x40}
 ${execpi 600 sed -n '1p' $HOME/Accu_US_INT/Sanjo/messages}
${font WW Digital:size=20} Now ${execpi 600 sed -n '29p' $HOME/Accu_US_INT/Sanjo/curr_cond}\
${goto 140}FL ${color2}${execpi 600 sed -n '30p' $HOME/Accu_US_INT/Sanjo/curr_cond}${font}

 ${color0}Wind:  ${color}${execpi 600 sed -n '31p' $HOME/Accu_US_INT/Sanjo/curr_cond} ${execpi 600 sed -n '32p' $HOME/Accu_US_INT/Sanjo/curr_cond}\
${goto 170}${color0}Today    Tonight${color}
 ${color0}Hum:   ${color}${execpi 600 sed -n '33p' $HOME/Accu_US_INT/Sanjo/curr_cond}\
${goto 170}${execpi 600 sed -n '26p' $HOME/Accu_US_INT/Sanjo/first_days}\
${goto 210}${color2}${execpi 600 sed -n '27p' $HOME/Accu_US_INT/Sanjo/first_days}${color}\
${goto 245}${execpi 600 sed -n '31p' $HOME/Accu_US_INT/Sanjo/first_days}\
${goto 280}${color2}${execpi 600 sed -n '32p' $HOME/Accu_US_INT/Sanjo/first_days}${color}
 ${color0}Bar:   ${color}${execpi 600 sed -n '34p' $HOME/Accu_US_INT/Sanjo/curr_cond}\
${image $HOME/Accu_US_INT/Sanjo/tod.png -p 160,280 -s 67x40}\
${image $HOME/Accu_US_INT/Sanjo/ton.png -p 240,280 -s 67x40}
 ${color0}Cloud: ${color}${execpi 600 sed -n '35p' $HOME/Accu_US_INT/Sanjo/curr_cond}
 ${color0}UVI:   ${color}${execpi 600 sed -n '36p' $HOME/Accu_US_INT/Sanjo/curr_cond}${goto 95}${color0}DP: ${color}${execpi 600 sed -n '37p' $HOME/Accu_US_INT/Sanjo/curr_cond}F
 ${color0}Vis: ${color}${execpi 600 sed -n '38p' $HOME/Accu_US_INT/Sanjo/curr_cond}
 ${color0}Sunrise:  ${color}${execpi 600 sed -n '39p' $HOME/Accu_US_INT/Sanjo/curr_cond}\
${goto 160}  ${color0}Sunset: ${color}${execpi 600 sed -n '40p' $HOME/Accu_US_INT/Sanjo/curr_cond}
 ${color0}Moonrise: ${color}${execpi 600 sed -n '41p' $HOME/Accu_US_INT/Sanjo/curr_cond}\
${goto 160} ${color0}Moonset: ${color}${execpi 600 sed -n '42p' $HOME/Accu_US_INT/Sanjo/curr_cond}
${hr}
 ${color0}Driggs, ID${goto 150}${tztime US/Mountain %a %m/%d/%y - %H:%M}${color}\
${texeci 500 bash $HOME/Accu_US_INT/Driggs/acc_usa_images}\
${texeci 500 bash $HOME/Accu_US_INT/Austin/acc_usa_images}\
${image $HOME/Accu_US_INT/Driggs/cc.png -p 230,390 -s 67x40}
 ${execpi 600 sed -n '3p' $HOME/Accu_US_INT/Driggs/curr_cond}
${font WW Digital:size=20} Now ${execpi 600 sed -n '4p' $HOME/Accu_US_INT/Driggs/curr_cond}\
${goto 140}FL ${color2}${execpi 600 sed -n '5p' $HOME/Accu_US_INT/Driggs/curr_cond}${font}

 ${color0}Wind:${color}  ${execpi 600 sed -n '6p' $HOME/Accu_US_INT/Driggs/curr_cond} ${execpi 600 sed -n '14p' $HOME/Accu_US_INT/Driggs/curr_cond}\
${goto 170}${color0}Today    Tonight${color}
 ${color0}Hum:${color}   ${execpi 600 sed -n '7p' $HOME/Accu_US_INT/Driggs/curr_cond}\
${goto 170}${execpi 600 sed -n '28p' $HOME/Accu_US_INT/Driggs/tod_ton}\
${goto 210}${color2}${execpi 600 sed -n '29p' $HOME/Accu_US_INT/Driggs/tod_ton}${color}\
${goto 245}${execpi 600 sed -n '32p' $HOME/Accu_US_INT/Driggs/tod_ton}\
${goto 280}${color2}${execpi 600 sed -n '32p' $HOME/Accu_US_INT/Driggs/tod_ton}${color}
 ${color0}Bar:${color}   ${execpi 600 sed -n '8p' $HOME/Accu_US_INT/Driggs/curr_cond}\
${image $HOME/Accu_US_INT/Driggs/today.png -p 160,470 -p 160,100 -s 67x40}\
${image $HOME/Accu_US_INT/Driggs/tonight.png -p 235,470 -p 230,100 -s 67x40}
 ${color0}Cloud:${color} ${execpi 600 sed -n '9p' $HOME/Accu_US_INT/Driggs/curr_cond}
 ${color0}UVI:${color}   ${execpi 600 sed -n '10p' $HOME/Accu_US_INT/Driggs/curr_cond}${goto 95}${color0}DP:${color} ${execpi 600 sed -n '11p' $HOME/Accu_US_INT/Driggs/curr_cond}
 ${color0}Vis:${color}   ${execpi 600 sed -n '13p' $HOME/Accu_US_INT/Driggs/curr_cond}
 ${color0}Am. of Precip (1hr):${color} ${execpi 600 sed -n '12p' $HOME/Accu_US_INT/Driggs/curr_cond}
 ${color0}Sunrise:${color} 0${execpi 600 sed -n '15p' $HOME/Accu_US_INT/Driggs/curr_cond}${goto 170}${color0}Sunset:${color} ${execpi 600 sed -n '16p' $HOME/Accu_US_INT/Driggs/curr_cond}
${hr}
 ${color0}Austin, TX${goto 150}${tztime US/Central %a %m/%d/%y - %H:%M}${color}\
${image $HOME/Accu_US_INT/Austin/cc.png -p 230,580 -s 67x40}
 ${execpi 600 sed -n '3p' $HOME/Accu_US_INT/Austin/curr_cond}
${font WW Digital:size=20} Now ${execpi 600 sed -n '4p' $HOME/Accu_US_INT/Austin/curr_cond}\
${goto 140}FL ${color2}${execpi 600 sed -n '5p' $HOME/Accu_US_INT/Austin/curr_cond}${font}

 ${color0}Wind:${color}  ${execpi 600 sed -n '6p' $HOME/Accu_US_INT/Austin/curr_cond} ${execpi 600 sed -n '14p' $HOME/Accu_US_INT/Austin/curr_cond}\
${goto 170}${color0}Today    Tonight${color}
 ${color0}Hum:${color}   ${execpi 600 sed -n '7p' $HOME/Accu_US_INT/Austin/curr_cond}\
${goto 170}${execpi 600 sed -n '28p' $HOME/Accu_US_INT/Austin/tod_ton}\
${goto 210}${color2}${execpi 600 sed -n '29p' $HOME/Accu_US_INT/Austin/tod_ton}${color}\
${goto 245}${execpi 600 sed -n '32p' $HOME/Accu_US_INT/Austin/tod_ton}\
${goto 280}${color2}${execpi 600 sed -n '32p' $HOME/Accu_US_INT/Austin/tod_ton}${color}
 ${color0}Bar:${color}   ${execpi 600 sed -n '8p' $HOME/Accu_US_INT/Austin/curr_cond}\
${image $HOME/Accu_US_INT/Austin/today.png -p 160,655 -p 160,100 -s 67x40}\
${image $HOME/Accu_US_INT/Austin/tonight.png -p 235,655 -p 230,100 -s 67x40}
 ${color0}Cloud:${color} ${execpi 600 sed -n '9p' $HOME/Accu_US_INT/Austin/curr_cond}
 ${color0}UVI:${color}   ${execpi 600 sed -n '10p' $HOME/Accu_US_INT/Austin/curr_cond}${goto 95}${color0}DP:${color} ${execpi 600 sed -n '11p' $HOME/Accu_US_INT/Austin/curr_cond}
 ${color0}Vis:${color}   ${execpi 600 sed -n '13p' $HOME/Accu_US_INT/Austin/curr_cond}
 ${color0}Am. of Precip (1hr):${color} ${execpi 600 sed -n '12p' $HOME/Accu_US_INT/Austin/curr_cond}
 ${color0}Sunrise:${color} 0${execpi 600 sed -n '15p' $HOME/Accu_US_INT/Austin/curr_cond}${goto 170}${color0}Sunset:${color} ${execpi 600 sed -n '16p' $HOME/Accu_US_INT/Austin/curr_cond}
${hr}

NOTE:  Do not use the ${tztime} command for your local location

Last edited by Sector11 (2012-04-28 20:51:43)


#! Conky » Archive | Interactive LUA | Weather WUN | v9000 | Teo's x5 Scripts | YAWS | Conky PitStop
OHCG'er | StartPage | BBQ Linux                  #! Moderator

Online

#18 2012-04-28 20:55:05

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 9,948
Website

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

4) Weather.com conky script - all users
A new layout ... very busy - the mega information site!

aak1EACK.jpg

For as large as it is I'm not using all the information that the scripts can get.  Pretty powerful ... and free too!

Spacing was a nightmare.  Had to "hardcode" some results to get actual widths from a lot of commands.

Some examples
UV command split in two lines:

  • first line the value (-- or 1 to 11)

  • the second the text output. Low to Very High (the longest)

The sunrise sunset / moonrise moonset to insure the maximum output

  • M: 00:00-00:00 - the max vs

  • M: 0:00-0:00 - the minimum, with

  • M: 00:00-0:00 or

  • M: 0:00-00:00 being the most common of the 4 outputs

and the forecast temps were hardcoded for three characters, with the ° after the second temp:

-10 / 101°

if we get to 101°C we're in HOT trouble but 101°F is a consideration and lets hope we NEVER see -101 either in F or C we're all popsicles.

Moon phases are reduced in size to allow Waning Crescent or Waning Gibbous, longer than Full or New to fit.

Anyway the conky:

# killall conky && conky -c ~/Conky_WeatherCom/BsAs_conkyrc &
# Scripts by: TeoBigusDickus
# [url]http://tiny.cc/s6e4cw[/url]
###  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 1190 0 ## width, height
maximum_width 1190  ## width, usually a good idea to equal minimum width

gap_x 10 ### left &right
gap_y 10 ### up & down

alignment top_left
####################################################  End Window Settings  ###
###  Font Settings  ##########################################################
# Use Xft (anti-aliased font and stuff)
use_xft yes
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 use: yes
#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, it 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 5

## Borlange, Sweden - SWXX0105
 # [url]http://www.accuweather.com/en/se/borlange/307405/weather-forecast/307405[/url]
 # ${tztime Europe/Stockholm %m/%d/%y - %H:%M}
## Falun, Sweden - SWXX0166
 # [url]http://www.accuweather.com/en/se/falun/307406/weather-forecast/307406[/url]
 # ${tztime Europe/Stockholm %m/%d/%y - %H:%M}
## Sanjo, Japan - JAXX0077
 # [url]http://www.accuweather.com/en/jp/sanjo/219298/weather-forecast/219298[/url]
 # ${tztime Japan %m/%d/%y - %H:%M}
## Driggs, Idaho - USID0066
 # [url]http://www.accuweather.com/en/us/driggs-id/83422/weather-forecast/332605[/url]
 # ${tztime US/Mountain %m/%d/%y - %H:%M}
## Austin, Texas - USTX0057
 # [url]http://www.accuweather.com/en/us/austin-tx/78701/weather-forecast/351193[/url]
 # ${tztime US/Central %m/%d/%y - %H:%M}
 #
## [url]http://www.accuweather.com/en/us/honolulu-hi/96814/weather-forecast/348211[/url]

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

# stuff after 'TEXT' will be formatted on screen
TEXT
${execi 500 bash $HOME/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' $HOME/Conky_WeatherCom/RightNow/days_rn}\
${goto 390}${color0}${execi 600 sed -n '1p' $HOME/Conky_WeatherCom/5days/days}\
${goto 510}${execi 600 sed -n '2p' $HOME/Conky_WeatherCom/5days/days}\
${goto 630}${execi 600 sed -n '3p' $HOME/Conky_WeatherCom/5days/days}\
${goto 750}${execi 600 sed -n '4p' $HOME/Conky_WeatherCom/5days/days}\
${goto 870}${execi 600 sed -n '5p' $HOME/Conky_WeatherCom/5days/days}${color}
${font WW Digital:size=16}         -${execi 600 sed -n '1p' $HOME/Conky_WeatherCom/RightNow/temperatures_rn}°
         ${color2}-${execi 600 sed -n '5p' $HOME/Conky_WeatherCom/RightNow/temperatures_rn}°${color}${font}
${image $HOME/Conky_WeatherCom/r1.png -p 0,25 -s 75x75}

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




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

${goto 390}${color1}M:${execi 600 sed -n '1p' $HOME/Conky_WeatherCom/5days/moonrise}-${execi 600 sed -n '1p' $HOME/Conky_WeatherCom/5days/moonset}\
${goto 510}M:${execi 600 sed -n '2p' $HOME/Conky_WeatherCom/5days/moonrise}-${execi 600 sed -n '2p' $HOME/Conky_WeatherCom/5days/moonset}\
${goto 630}M:${execi 600 sed -n '3p' $HOME/Conky_WeatherCom/5days/moonrise}-${execi 600 sed -n '3p' $HOME/Conky_WeatherCom/5days/moonset}\
${goto 750}M:${execi 600 sed -n '4p' $HOME/Conky_WeatherCom/5days/moonrise}-${execi 600 sed -n '4p' $HOME/Conky_WeatherCom/5days/moonset}\
${goto 870}M:${execi 600 sed -n '5p' $HOME/Conky_WeatherCom/5days/moonrise}-${execi 600 sed -n '5p' $HOME/Conky_WeatherCom/5days/moonset}${color}
${font WenQuanYi Micro Hei Mono:bold:size=7}\
${goto 390}${execi 600 sed -n '2p' $HOME/Conky_WeatherCom/5days/moonphase}\
${goto 510}${execi 600 sed -n '4p' $HOME/Conky_WeatherCom/5days/moonphase}\
${goto 630}${execi 600 sed -n '6p' $HOME/Conky_WeatherCom/5days/moonphase}\
${goto 750}${execi 600 sed -n '8p' $HOME/Conky_WeatherCom/5days/moonphase}\
${goto 870}${execi 600 sed -n '10p' $HOME/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' $HOME/Conky_WeatherCom/10days/days10}\
${goto 510}${execi 600 sed -n '7p' $HOME/Conky_WeatherCom/10days/days10}\
${goto 630}${execi 600 sed -n '8p' $HOME/Conky_WeatherCom/10days/days10}\
${goto 750}${execi 600 sed -n '9p' $HOME/Conky_WeatherCom/10days/days10}\
${goto 870}${execi 600 sed -n '10p' $HOME/Conky_WeatherCom/10days/days10}
${goto 390}${color}${execi 600 sed -n '6p' $HOME/Conky_WeatherCom/10days/temperatures10}°\
${goto 510}${execi 600 sed -n '7p' $HOME/Conky_WeatherCom/10days/temperatures10}°\
${goto 630}${execi 600 sed -n '8p' $HOME/Conky_WeatherCom/10days/temperatures10}°\
${goto 750}${execi 600 sed -n '9p' $HOME/Conky_WeatherCom/10days/temperatures10}°\
${goto 870}${execi 600 sed -n '10p' $HOME/Conky_WeatherCom/10days/temperatures10}°

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


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

Interesting, as will all weather scripts, you can grab as much or as little info as you want.
Well done Teo!


#! Conky » Archive | Interactive LUA | Weather WUN | v9000 | Teo's x5 Scripts | YAWS | Conky PitStop
OHCG'er | StartPage | BBQ Linux                  #! Moderator

Online

#19 2012-04-28 21:05:26

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 9,948
Website

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

1c) Accuweather RSS - All users

I'm back, this time with a full conky using Accuweather RSS - All users mind you it's configured for here & metric. big_smile

I call it:  Hugs are hugs, and out of 3, this is a 5 STAR HUG if I ever saw one!

aawUOVq6.jpg

Works from: ~/lowph: get the file

  • ~/lowph/lowph.conky <<-- this starts it!

  • ~/lowph/ConkyWeather.ttf

  • ~/lowph/.conkyrc_acc_rss

  • ~/lowph/scripts

  • ~/lowph/images <<--- has some extra as well!

  • ~/lowph/Accuweather_RSS

  • ~/lowph/1c_README-INFO

Fonts (not included):

  • LCDMono2

  • digitalk and

  • WenQuanYi Micro Hei Mono

Why lowph, the conky was inspired by his over on ARCH forums.


#! Conky » Archive | Interactive LUA | Weather WUN | v9000 | Teo's x5 Scripts | YAWS | Conky PitStop
OHCG'er | StartPage | BBQ Linux                  #! Moderator

Online

#20 2012-04-28 21:08:24

VastOne
#! Ranger
From: #! Fringe Division
Registered: 2011-04-26
Posts: 10,163
Website

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

@Sector11 - Incredible work and displays..

+ 1,000,000

Thanks for sharing all that!


VSIDO | SolusOS

Words That Build Or Destroy

Offline

#21 2012-04-28 21:16:56

Sector11
77345 ¡#
From: SR11 Cockpit
Registered: 2010-05-05
Posts: 9,948
Website

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

VastOne wrote:

@Sector11 - Incredible work and displays..

+ 1,000,000

Thanks for sharing all that!

Thanks, that's what I've done so far.  have some of Teo's scripts I haven't looked at yet.  So more to do.

Someone nail Teo down, will ya, so we don't have to move again. lol lol lol lol cool
I use the term we 'cuz I go where Teo takes the scripts!

Last edited by Sector11 (2012-04-28 21:17:38)


#! Conky » Archive | Interactive LUA | Weather WUN | v9000 | Teo's x5 Scripts | YAWS | Conky PitStop
OHCG'er | StartPage | BBQ Linux                  #! Moderator

Online

#22 2012-04-29 08:11:33

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

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

pvsage wrote:

Accuweather does look interesting, though I've never considered it for an hourly forecast.  I probably should look at it and see if it trends any better than weather.com.

Since the hourly forecast is something I look at for a daily commute, just the current forecast (e.g. the 12 hours on the weather.com/weather/hourbyhour/{zipcode} page) would be splendid.

EDIT:  I see accuweather puts its chance of rain forecast on a separate page...this is the part I'm most interested in.

Since this is going to be a personalized script, could you give me your location's details?


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

#23 2012-04-29 09:30:38

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 11,496

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

Rsleigh, NC  27603


Yes; as a matter of fact, I am a cop.  Why do you ask? cool
I'm a moderator here.  How are we doing?  Feedback is encouraged.

Offline

#24 2012-04-29 14:53:25

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

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

pvsage wrote:

Rsleigh, NC  27603

Script:

#!/bin/bash

wget -O $HOME/Raleigh_hourly/raw http://www.accuweather.com/en/us/raleigh-nc/27601/weather-accupop/329823

sed -i '/Next 24 Hours/,/Next 24 Hours/!d' $HOME/Raleigh_hourly/raw
egrep -i '<\/th>|height' $HOME/Raleigh_hourly/raw > $HOME/Raleigh_hourly/hourly_precip
sed -i -e 's/^.*height: //g' -e 's/%;.*$/%/g' -e 's/^.*"row">//g' $HOME/Raleigh_hourly/hourly_precip
sed -i -e 's/^.*<th>//g' -e 's/<\/th>.*$//g' -e 's/^.*col">//g' $HOME/Raleigh_hourly/hourly_precip
sed -i -e 's/<span>\|<\/span>//g' -e '/"first"/d' -e 's/<br>\|<br \/>/:/g' $HOME/Raleigh_hourly/hourly_precip

.conkyrc:

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

# 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 200 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 30

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

TEXT
${font Arial:size=11}${color #9CFCFF}Raleigh: Hourly Precipitation${texeci 500 bash $HOME//Raleigh_hourly/raleigh_hourly}${font}
${hr 1}
${goto 100}${execpi 500 sed -n '17p' $HOME/Raleigh_hourly/hourly_precip}${goto 150}${execpi 500 sed -n '26p' $HOME/Raleigh_hourly/hourly_precip}${goto 200}${execpi 500 sed -n '35p' $HOME/Raleigh_hourly/hourly_precip}
${execpi 500 sed -n '1p' $HOME/Raleigh_hourly/hourly_precip}${color}${goto 100}${execpi 500 sed -n '18p' $HOME/Raleigh_hourly/hourly_precip}${goto 150}${execpi 500 sed -n '27p' $HOME/Raleigh_hourly/hourly_precip}${goto 200}${execpi 500 sed -n '36p' $HOME/Raleigh_hourly/hourly_precip}
${color #9CFCFF}${execpi 500 sed -n '2p' $HOME/Raleigh_hourly/hourly_precip}${color}${goto 100}${execpi 500 sed -n '19p' $HOME/Raleigh_hourly/hourly_precip}${goto 150}${execpi 500 sed -n '28p' $HOME/Raleigh_hourly/hourly_precip}${goto 200}${execpi 500 sed -n '37p' $HOME/Raleigh_hourly/hourly_precip}
${color #9CFCFF}${execpi 500 sed -n '3p' $HOME/Raleigh_hourly/hourly_precip}${color}${goto 100}${execpi 500 sed -n '20p' $HOME/Raleigh_hourly/hourly_precip}${goto 150}${execpi 500 sed -n '29p' $HOME/Raleigh_hourly/hourly_precip}${goto 200}${execpi 500 sed -n '38p' $HOME/Raleigh_hourly/hourly_precip}
${color #9CFCFF}${execpi 500 sed -n '4p' $HOME/Raleigh_hourly/hourly_precip}${color}${goto 100}${execpi 500 sed -n '21p' $HOME/Raleigh_hourly/hourly_precip}${goto 150}${execpi 500 sed -n '30p' $HOME/Raleigh_hourly/hourly_precip}${goto 200}${execpi 500 sed -n '39p' $HOME/Raleigh_hourly/hourly_precip}
${color #9CFCFF}${execpi 500 sed -n '5p' $HOME/Raleigh_hourly/hourly_precip}${color}${goto 100}${execpi 500 sed -n '22p' $HOME/Raleigh_hourly/hourly_precip}${goto 150}${execpi 500 sed -n '31p' $HOME/Raleigh_hourly/hourly_precip}${goto 200}${execpi 500 sed -n '40p' $HOME/Raleigh_hourly/hourly_precip}
${color #9CFCFF}${execpi 500 sed -n '6p' $HOME/Raleigh_hourly/hourly_precip}${color}${goto 100}${execpi 500 sed -n '23p' $HOME/Raleigh_hourly/hourly_precip}${goto 150}${execpi 500 sed -n '32p' $HOME/Raleigh_hourly/hourly_precip}${goto 200}${execpi 500 sed -n '41p' $HOME/Raleigh_hourly/hourly_precip}
${color #9CFCFF}${execpi 500 sed -n '7p' $HOME/Raleigh_hourly/hourly_precip}${color}${goto 100}${execpi 500 sed -n '24p' $HOME/Raleigh_hourly/hourly_precip}${goto 150}${execpi 500 sed -n '33p' $HOME/Raleigh_hourly/hourly_precip}${goto 200}${execpi 500 sed -n '42p' $HOME/Raleigh_hourly/hourly_precip}
${color #9CFCFF}${execpi 500 sed -n '8p' $HOME/Raleigh_hourly/hourly_precip}${color}${goto 100}${execpi 500 sed -n '25p' $HOME/Raleigh_hourly/hourly_precip}${goto 150}${execpi 500 sed -n '34p' $HOME/Raleigh_hourly/hourly_precip}${goto 200}${execpi 500 sed -n '43p' $HOME/Raleigh_hourly/hourly_precip}

VE00F.png

Unfortunately, beyond these 12 hours of precipitation forecast, Accuweather asks for a subscription.
I hope that this comes close to what you want.

Last edited by TeoBigusGeekus (2012-05-17 16:35:06)


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

Offline

Be excellent to each other!

#25 2012-04-29 17:56:36

pvsage
Internal Affairs
From: North Carolina
Registered: 2009-10-18
Posts: 11,496

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

Woah, this is GREAT!  Thanks! big_smile


Yes; as a matter of fact, I am a cop.  Why do you ask? cool
I'm a moderator here.  How are we doing?  Feedback is encouraged.

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