You are not logged in.

#1 2012-04-20 13:36:25

TeoBigusDickus
Member
From: /Greece/Kastoria
Registered: 2010-05-29
Posts: 141

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

Some scripts for displaying a weather forecast on your conky.
They use Accuweather, Weather Underground, National Weather Service (USA) and Weather.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 (1c), to the humongous, larger than life, "I'm a meteorologist" aspect (4).
Check out Conky Companion as well: a graphical app which can help you create your own conkyrc files easily.

>>>>>>>>>>Download the scripts.<<<<<<<<<<
>>>>>>>>>>Download conky companion.<<<<<<<<<<


1a)Accuweather - INTERNATIONAL USERS
If you find the script too heavy or too long, here's a version of it providing only half the info and using half the space.

YrJsi.png

1b)Accuweather - USA USERS

p5yPy.jpg


1c)Accuweather RSS - All users
Awesome suggestion by Sector11: see here.

Kj0tP.jpg


1d1)Accuweather - Images - INTERNATIONAL USERS
Greek, French, Spanish, Hungarian and Portuguese versions included.
Check out Sector11's hybrid conkyrc displaying 2 international cities and 2 US ones: click.
From Sector11 again, an alternative, more compact conkyrc: clickety
daQB7.jpg


1d2)Accuweather - ConkyWeather font - INTERNATIONAL USERS

UbN1R.jpg


1e)Accuweather - Images - USA USERS
Check out Sector11's hybrid conkyrc displaying 2 international cities and 2 US ones: click.
Again from Sector11, "2 US cities in under 800pixels (740 actually)": clicky

1PsW7.jpg


2)WUnderground ICAL - International users

h9aYN.jpg


3)NWS XML - USA users

hJbmA.jpg


4) Weather.com conky script - all users
USA conkyrc:

XhPnW.jpg

International (metric) conkyrc:

rfFJb.jpg

Less monstrous conkyrc by (whom else?) Sector11: see here


Conky companion for the 1d1 and 1e scripts
A graphical app (gtk+2.0) to help you create your own customised conkyrc from the info downloaded by the scripts.

It's not perfectly accurate, but it could save you some time when creating a complicated conkyrc.

It depends on gtk+2.0.

rlztn.jpg

7d5Zw.jpg

hoXoG.jpg

Last edited by TeoBigusDickus (2012-04-22 08:01:08)


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! 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

#2 2012-04-20 15:00:39

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

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

Is weather.com free again? They began to charge 19.90$ per month  some time ago, I think.

Offline

#3 2012-04-20 16:25:48

TeoBigusDickus
Member
From: /Greece/Kastoria
Registered: 2010-05-29
Posts: 141

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

swanson wrote:

Is weather.com free again? They began to charge 19.90$ per month  some time ago, I think.

You're referring to kaivalagi's script; mine takes info directly from the centre page of weather.com.
Unless they decide to go offline, the script will work forever...


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! 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-21 02:29:01

Pres
Member
Registered: 2011-09-12
Posts: 423

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

TeoBigusDickus wrote:
swanson wrote:

Is weather.com free again? They began to charge 19.90$ per month  some time ago, I think.

You're referring to kaivalagi's script; mine takes info directly from the centre page of weather.com.
Unless they decide to go offline, the script will work forever...

Either that or they decide to change something about their site design.

Offline

#5 2012-04-21 07:38:51

TeoBigusDickus
Member
From: /Greece/Kastoria
Registered: 2010-05-29
Posts: 141

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

Pres wrote:
TeoBigusDickus wrote:
swanson wrote:

Is weather.com free again? They began to charge 19.90$ per month  some time ago, I think.

You're referring to kaivalagi's script; mine takes info directly from the centre page of weather.com.
Unless they decide to go offline, the script will work forever...

Either that or they decide to change something about their site design.

In which case I'll just adjust the script...


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! 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

#6 2012-04-21 09:08:32

swanson
Member
From: Sweden
Registered: 2011-02-05
Posts: 759

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

Just tested the 1d2 script, accuweather with font , and it seems very nice! Have to do some tinkering with layout though, to adjust it to my 32" TV and fontsizes around 24 pixels. But that's just fun!

Also, I will try and set the timings for downloads and stuff. By the way, celsius and metrics worked rigth out of the box! Not too common for weather scripts.

Great work! Thanks!

Offline

#7 2012-04-21 10:47:42

TeoBigusDickus
Member
From: /Greece/Kastoria
Registered: 2010-05-29
Posts: 141

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

Thank you very much mate.


Please make Autocad Civil 3d and Archicad work on Linux! Please make Autocad Civil 3d and Archicad work on Linux! Please make Autocad Civil 3d and Archicad work on Linux! Please make Autocad Civil 3d and Archicad work on Linux! 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-21 16:04:02

Sector11
Banned
Registered: 2010-02-25
Posts: 10

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

Multiple cities, what a concept!

1. Two cities using: 1d1)Accuweather - Images - INTERNATIONAL USERS
2. Two cities using: 1e)Accuweather - Images - USA USERS
3. One conky

The beauty of Teo's scripts:

  1. extremely lightweight on CPU resources

  2. configuration: limited (by your imagination)

  3. if there's a shell, Teo's weather is possible

aan55IRR.jpg

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/SanjoTeoBigusDickus
~/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
# http://tiny.cc/s6e4cw
###  Begin Window Settings  ##################################################
# Create own window instead of using desktop (required in nautilus)
own_window yes

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

own_window_type normal #override
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager
#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
# own_window_colour #4d4d4d
own_window_class 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

EDIT Decided since I was here on the blue side I'd use the proper colours!

Last edited by Sector11 (2012-04-21 19:06:13)

Offline

#9 2012-04-21 16:05:03

Sector11
Banned
Registered: 2010-02-25
Posts: 10

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

TeoBigusDickus wrote:

In which case I'll just adjust the script...

Yea, "wget" doesn't care if you've signed up or not.  big_smile

See post below this one.

Last edited by Sector11 (2012-04-21 16:50:46)

Offline

#10 2012-04-21 16:49:36

Sector11
Banned
Registered: 2010-02-25
Posts: 10

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

4) Weather.com conky script - all users

A new layout ... very busy

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!

Last edited by Sector11 (2012-04-21 19:06:47)

Offline

#11 2012-04-21 17:08:47

Sector11
Banned
Registered: 2010-02-25
Posts: 10

Re: Conky weather scripts using Accuweather/WUnderground/NWS/Weather.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.

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

aawUOVq6.jpg

The archive has everything you need (less the fonts) and works from: ~/lowph: lowph.tar.gz

  • ~/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 conky. Post: #967

Last edited by Sector11 (2012-04-21 19:07:12)

Offline

#12 2012-04-21 17:24:32

Sector11
Banned
Registered: 2010-02-25
Posts: 10

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

Sorry for what seems like a flood of posts, but if Teo is moving his weather thread here from the "Orange Side" and supporting it here, I'm bringing my support for his work here as well.

The scripts are powerful, and come with at least one working example.  There are well laid out PDF files that explain everything you need, like:

  1. 1c_Output_of_the_script.pdf

  2. 1c_README.pdf

He has put a LOT of work into these scripts and they deserve to be seen, and appreciated.
So if you create a different layout, as part of a full conky or just a different weather layout, show it off. It might help others having problems.

Me - I know nothing about bash scripts, but I do know a good thing when I see it and I play with layouts.

Last edited by Sector11 (2012-04-21 17:32:51)

Offline

#13 2012-04-21 17:57:54

Sector11
Banned
Registered: 2010-02-25
Posts: 10

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

1e_Accuweather_USA_Images

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

2 US cities in under 800pixels (740 actually)
aavFK2JJ.jpg

Uses three fonts:

Wikipedia wrote:

General

WenQuanYi project was started by Qianqian Fang (Screen name: FangQ; Chinese: 房骞骞), a Chinese biomedical imaging researcher at the Massachusetts General Hospital, in October, 2004.[1][2][3]

Now the fonts of WenQuanYi project are included with of Ubuntu, Fedora, Slackware, Magic Linux and CDLinux. Debian, Gentoo, Mandriva, ArchLinux and Frugalware offer the sources for WenQuanYi fonts.[4] The fonts are among the Chinese fonts officially supported by Wikimedia.[5]

WenQuanYi's website is using Habitat, a Wiki software derived from UseModWiki by Qianqian Fang. It is allowed to create or modify the glyphs online.

So you have it.

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 &
# Scripts by: TeoBigusDickus
# http://tiny.cc/s6e4cw
###  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.

Last edited by Sector11 (2012-04-21 19:07:44)

Offline

#14 2012-04-21 18:11:45

TeoBigusDickus
Member
From: /Greece/Kastoria
Registered: 2010-05-29
Posts: 141

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

@Sector11:
Welcome home brother; thanks again for your kind words and support (for the millionth time).

I've added references to your posts at the first one. Is there a way to link to a post in this forum?

Last edited by TeoBigusDickus (2012-04-21 18:12:30)


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! 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

#15 2012-04-21 18:12:49

Sector11
Banned
Registered: 2010-02-25
Posts: 10

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

1d1)Accuweather - Images - INTERNATIONAL USERS

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

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:

TeoBigusDickus 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}${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
# http://tiny.cc/s6e4cw
##
###  Begin Window Settings  ##################################################
# Create own window instead of using desktop (required in nautilus)
own_window yes

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

own_window_type normal #override
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar,skip_pager
#own_window_hints undecorated,below,sticky,skip_taskbar,skip_pager
# own_window_colour #4d4d4d
own_window_class 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!!

Last edited by Sector11 (2012-04-21 19:08:08)

Offline

#16 2012-04-21 18:41:48

Sector11
Banned
Registered: 2010-02-25
Posts: 10

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

TeoBigusDickus wrote:

@Sector11:
Welcome home brother; thanks again for your kind words and support (for the millionth time).

I've added references to your posts at the first one. Is there a way to link to a post in this forum?

Hey Teo ... Good to be here.

Yea click on Today: blah blah or the date to the top left of a post.

Funny thing happened on the way over here, every conky "I" have in that other not to be mentioned place that was created to support your scripts have been (or will be getting) modified to include:

# Scripts by: TeoBigusDickus
# http://tiny.cc/s6e4cw

I LOVE IT!
Oh yea, seem like my signature changes pointers too!  I wonder how that happened?

Last edited by Sector11 (2012-04-22 15:35:50)

Offline

#17 2012-04-21 18:43:51

TeoBigusDickus
Member
From: /Greece/Kastoria
Registered: 2010-05-29
Posts: 141

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

Sector11 wrote:
TeoBigusDickus wrote:

@Sector11:
Welcome home brother; thanks again for your kind words and support (for the millionth time).

I've added references to your posts at the first one. Is there a way to link to a post in this forum?

Hey Teo ... Good to be here.

Yea click on Today: blah blah or the date to the top left of a post:
http://t.imgbox.com/aazz5L97.jpg


Funny thing happened on the way over here, every conky "I" have in that other not to be mentioned place that was created to support your scripts have been (or will be getting) modified to include:

# Scripts by: TeoBigusDickus
# http://tiny.cc/s6e4cw

I LOVE IT!

Thanks a lot man, I'll update the post immediately.

EDIT: All done, thanks again.

Last edited by TeoBigusDickus (2012-04-21 18:51:04)


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! 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

#18 2012-04-21 19:09:52

Sector11
Banned
Registered: 2010-02-25
Posts: 10

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

TeoBigusDickus wrote:

Thanks a lot man, I'll update the post immediately.

EDIT: All done, thanks again.

More than welcome Teo, this place even feels better!

Offline

#19 2012-04-21 21:11:27

balbecdaze
Member
Registered: 2012-04-21
Posts: 7

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

Hi, your weather conkys look great and the minimal one (1c) looks as if I could squeeze it into the bottom of my modified conky orange (thanks to GNOME-LOOK user hardball), which I've "Minted".

I'm pretty sure I've followed your instructions re folder and file placement and location key finding etc (really simple and easy to understand by the way!) but when I run conky (from terminal) I get:

Conky: forked to background, pid is 6083
kathy@kathy-TravelMate-3260 ~ $
Conky: desktop window (e01c27) is subwindow of root window (ac)
Conky: window type - normal
Conky: drawing to created window (0x2400001)
Conky: drawing to double buffer
wget: no process found
--2012-04-21 22:03:47--  http://rss.accuweather.com/rss/liveweat … GLOUCESTER
Resolving rss.accuweather.com... 93.188.128.33, 93.188.128.23
Connecting to rss.accuweather.com|93.188.128.33|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 873 [text/xml]
Saving to: `/home/kathy/Accuweather_RSS/weather_raw'

100%[======================================>] 873         --.-K/s   in 0s     

2012-04-21 22:03:47 (32.4 MB/s) - `/home/kathy/Accuweather_RSS/weather_raw' saved [873/873]

I'm sure I'm missing something basic!
my $/home/kathy/Accuweather_RSS/weather exists but is still blank.

I would post a screen shot but I don't know how to do it - I'll find that out - meanwhile, any clues? I'm pretty sure I haven't inadvertently changed anything yet conky only writes KASTORIA WEATHER _______________.  I also doubled my text_buffer_size to 4096 just in case.

Reason for edit: poor grammar!

Last edited by balbecdaze (2012-04-21 21:44:48)

Offline

#20 2012-04-21 21:40:56

balbecdaze
Member
Registered: 2012-04-21
Posts: 7

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

scr1.jpg

Woo! I know how to post images! My terminal output:

LXTerminal_Conkyoutput.jpg

If anyone needs any extra info ... please ask!

Moderator edit:  Linked pictures exceed our size policy.  Converted image tags to url tags.

Reason for edit: changed images to thumbnails.

Last edited by balbecdaze (2012-04-21 22:34:48)

Offline

#21 2012-04-22 00:57:06

balbecdaze
Member
Registered: 2012-04-21
Posts: 7

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

Hi Sector11, I'm looking for Gloucester, United Kingdom (Gloucestershire)

Offline

#22 2012-04-22 02:35:34

Sector11
Banned
Registered: 2010-02-25
Posts: 10

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

balbecdaze wrote:

Hi Sector11, I'm looking for Gloucester, United Kingdom (Gloucestershire)

I feel bad, and very red faced.  I was sure I had it, but Teo's is right, it will not work.  I got it to work in my local website, but that doesn't help - it's not an RSS feed.

There has to be a place closer to you than London that you can use.  Wicked, Gloucester isn't some small out of the way village it really 'should' work.

Maybe weather·com, that should work.

http://www.weather.com/weather/5-day/Gloucester+United+Kingdom+UKXX0062

EDIT: It does, but it hauls down a LOT more info than you want.  sad

Last edited by Sector11 (2012-04-22 03:13:20)

Offline

#23 2012-04-22 07:43:16

TeoBigusDickus
Member
From: /Greece/Kastoria
Registered: 2010-05-29
Posts: 141

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

balbecdaze wrote:

Hi Sector11, I'm looking for Gloucester, United Kingdom (Gloucestershire)

You could use 1a.
If you find it too heavy, here's a more lightweight edition of it that downloads info only for the first 5 days:
Script
Conkyrc

Here's Gloucester's forecast with it:
iKRUe.jpg

Last edited by TeoBigusDickus (2012-04-22 07:44:51)


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! 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

#24 2012-04-22 11:28:35

balbecdaze
Member
Registered: 2012-04-21
Posts: 7

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

Thanks for the suggestions, I will try them later and let you know how I get on.

Offline

#25 2012-04-22 15:58:19

balbecdaze
Member
Registered: 2012-04-21
Posts: 7

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

aasXM2Y3.jpg

Thanks Teo and Sector11 - works a treat!

Offline

Board footer

Powered by FluxBB