Next come's a marriage of the two; Accuweather and Wunderground in one
OK, since Accuweather has a bit more data ... I created a conky that uses that data for three days and continues from that point on with Wunderground forecasts. Forecasts change anyway, so it's only a guess. Weathermen lie!!!!!

conky
## killall conky && conky -c ~/TBG/conkyrc_ACCU_WUG
### Begin Window Settings ##################################################
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type override
own_window_transparent yes
own_window_hints below,sticky,skip_taskbar,skip_pager
# own_window_colour brown
own_window_class Conky
own_window_title Accu & WUG Bs As
### 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 0
minimum_size 350 0 ## width, height
maximum_width 310 ## 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=8.5 #monospace: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
draw_outline no
uppercase no
draw_outline no # amplifies text if yes
###################################################### End Font Settings ###
### Color Settings #########################################################
default_shade_color grey
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 width
border_width 0
##################################################### End Borders Secton ###
# 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
# Adds spaces around certain objects to stop them
# from moving other things around.
# only works with mono fonts
use_spacer right
# Arguments are left, right, and none (default)
# Size of the standard text buffer (default is 256 bytes).
# Will allow for more text display per variable.
text_buffer_size 256
# Sets bars size even for bars that do not hace that function
# IE: execbar and execibar
default_bar_size 335 9
# 0 makes Conky run forever
total_run_times 0
cpu_avg_samples 1
net_avg_samples 1
no_buffers yes
# Defaults to 4MiB
# Set to 0 to disable the image cache
# Increase this value if you use $image lots
imlib_cache_size 0
update_interval 3
lua_load ~/Conky/LUA/draw-bg.lua
lua_draw_hook_pre draw_bg
TEXT
${execi 600 bash /home/sector11/accuweather_conky/accuw_script}${execi 600 bash /home/sector11/conky_wunderground2/wunderground-script}${font Orbitron:size=16}${alignc}${time %a. %d %b. %Y}
${alignc}Buenos Aires${font}
${voffset 5}${alignc}${execi 86400 conkyLatLong -i}
${voffset 5}${color6}${font conkyweather:size=30}${execi 600 sed -n '5p' ~/accuweather_conky/images}${font}${color}${goto 90}${voffset -25}${font digitalk:size=30}${execi 600 sed -n '1p' /home/sector11/accuweather_conky/temperatures}${font Orbitron:size=30}°c${font}\
${voffset -20}${goto 220}H: ${font digitalk:bold:size=15}${execpi 600 sed -n '2p' /home/sector11/accuweather_conky/temperatures}${font Orbitron:size=15}°c${font}
${goto 220}L: ${font digitalk:bold:size=15}${execpi 600 sed -n '3p' /home/sector11/accuweather_conky/temperatures}${font Orbitron:size=15}°c${font}
${voffset 5}${execi 600 sed -n '1p' /home/sector11/accuweather_conky/messages|fold -s -w 50}
${font Orbitron:size=16}${execpi 600 sed -n '3p' /home/sector11/accuweather_conky/days}${goto 170}${execpi 600 sed -n '5p' /home/sector11/accuweather_conky/days}${font}
${voffset 5}${color6}${font conkyweather:size=30}${execi 600 sed -n '7p' ~/accuweather_conky/images}${font}${color}${voffset -25}${goto 60}H: ${font digitalk:bold:size=15}${execpi 600 sed -n '4p' /home/sector11/accuweather_conky/temperatures}${font Orbitron:size=15}°c${font}
${goto 60}L: ${font digitalk:bold:size=15}${execpi 600 sed -n '5p' /home/sector11/accuweather_conky/temperatures}${font Orbitron:size=15}°c${font}\
${voffset -27}${goto 170}${color6}${font conkyweather:size=30}${execi 600 sed -n '8p' ~/accuweather_conky/images}${font}${color}${voffset -25}${goto 220}H: ${font digitalk:bold:size=15}${execpi 600 sed -n '6p' /home/sector11/accuweather_conky/temperatures}${font Orbitron:size=15}°c${font}
${goto 220}L: ${font digitalk:bold:size=15}${execpi 600 sed -n '7p' /home/sector11/accuweather_conky/temperatures}${font Orbitron:size=15}°c${font}
${color6}More for Today:${color}
${execi 600 sed -n '3p' /home/sector11/accuweather_conky/messages|fold -s -w 50}
${color6}More for: ${execpi 600 sed -n '3p' /home/sector11/accuweather_conky/days}${color}
${execpi 600 sed -n '5p' /home/sector11/accuweather_conky/messages|fold -s -w 50}
${color6}More for: ${execpi 600 sed -n '5p' /home/sector11/accuweather_conky/days}${color}
${execpi 600 sed -n '7p' /home/sector11/accuweather_conky/messages|fold -s -w 50}
${alignc}${color6}${cpubar cpu2 1,50} More Forecast Information ${cpubar cpu2 1,50}${color}
${color8}${execi 600 sed -n '25p' /home/sector11/conky_wunderground2/messages.wun}${alignr}${color1}${execi 600 sed -n '29p' /home/sector11/conky_wunderground2/messages.wun}${color}
${execi 600 sed -n '27p' /home/sector11/conky_wunderground2/messages.wun}${alignr -10}${execi 600 sed -n '31p' /home/sector11/conky_wunderground2/messages.wun}
${execi 600 sed -n '28p' /home/sector11/conky_wunderground2/messages.wun}${alignr 2}${execi 600 sed -n '32p' /home/sector11/conky_wunderground2/messages.wun}
${voffset -37}${goto 100}${color8}${font conkyweather:size=30}${execi 600 sed -n '9p' /home/sector11/conky_wunderground2/weather_icons}\
${goto 180}${color1}${execi 600 sed -n '11p' /home/sector11/conky_wunderground2/weather_icons}${font}${color}
${execi 600 sed -n '26p' /home/sector11/conky_wunderground2/messages.wun}${alignr}${execi 600 sed -n '30p' /home/sector11/conky_wunderground2/messages.wun}
${hr}
${color8}${execi 600 sed -n '33p' /home/sector11/conky_wunderground2/messages.wun}${alignr}${color1}${execi 600 sed -n '37p' /home/sector11/conky_wunderground2/messages.wun}${color}
${execi 600 sed -n '35p' /home/sector11/conky_wunderground2/messages.wun}${alignr -10}${execi 600 sed -n '39p' /home/sector11/conky_wunderground2/messages.wun}
${execi 600 sed -n '36p' /home/sector11/conky_wunderground2/messages.wun}${alignr 2}${execi 600 sed -n '40p' /home/sector11/conky_wunderground2/messages.wun}
${voffset -37}${goto 100}${color8}${font conkyweather:size=30}${execi 600 sed -n '17p' /home/sector11/conky_wunderground2/weather_icons}\
${goto 180}${color1}${execi 600 sed -n '19p' /home/sector11/conky_wunderground2/weather_icons}${font}${color}
${execi 600 sed -n '34p' /home/sector11/conky_wunderground2/messages.wun}${alignr}${execi 600 sed -n '38p' /home/sector11/conky_wunderground2/messages.wun}
${hr}
${color8}${execi 600 sed -n '41p' /home/sector11/conky_wunderground2/messages.wun}${alignr}${color1}${execi 600 sed -n '45p' /home/sector11/conky_wunderground2/messages.wun}${color}
${execi 600 sed -n '43p' /home/sector11/conky_wunderground2/messages.wun}${alignr -10}${execi 600 sed -n '47p' /home/sector11/conky_wunderground2/messages.wun}
${execi 600 sed -n '44p' /home/sector11/conky_wunderground2/messages.wun}${alignr 2}${execi 600 sed -n '48p' /home/sector11/conky_wunderground2/messages.wun}
${voffset -37}${goto 100}${color8}${font conkyweather:size=30}${execi 600 sed -n '21p' /home/sector11/conky_wunderground2/weather_icons}\
${goto 180}${color1}${execi 600 sed -n '23p' /home/sector11/conky_wunderground2/weather_icons}${font}${color}
${execi 600 sed -n '42p' /home/sector11/conky_wunderground2/messages.wun}${alignr}${execi 600 sed -n '46p' /home/sector11/conky_wunderground2/messages.wun}
${hr}
${color8}${execi 600 sed -n '49p' /home/sector11/conky_wunderground2/messages.wun}${alignr}${color1}${execi 600 sed -n '53p' /home/sector11/conky_wunderground2/messages.wun}${color}
${execi 600 sed -n '51p' /home/sector11/conky_wunderground2/messages.wun}${alignr -10}${execi 600 sed -n '55p' /home/sector11/conky_wunderground2/messages.wun}
${execi 600 sed -n '52p' /home/sector11/conky_wunderground2/messages.wun}${alignr 2}${execi 600 sed -n '56p' /home/sector11/conky_wunderground2/messages.wun}
${voffset -37}${goto 100}${color8}${font conkyweather:size=30}${execi 600 sed -n '25p' /home/sector11/conky_wunderground2/weather_icons}\
${goto 180}${color1}${execi 600 sed -n '27p' /home/sector11/conky_wunderground2/weather_icons}${font}${color}
${execi 600 sed -n '50p' /home/sector11/conky_wunderground2/messages.wun}${alignr}${execi 600 sed -n '54p' /home/sector11/conky_wunderground2/messages.wun}
${if_existing /home/sector11/conky_wunderground2/yes}${hr}
${color8}${execi 600 sed -n '57p' /home/sector11/conky_wunderground2/messages.wun}${alignr}${color1}${execi 600 sed -n '61p' /home/sector11/conky_wunderground2/messages.wun}${color}
${execi 600 sed -n '59p' /home/sector11/conky_wunderground2/messages.wun}${alignr -10}${execi 600 sed -n '63p' /home/sector11/conky_wunderground2/messages.wun}
${execi 600 sed -n '60p' /home/sector11/conky_wunderground2/messages.wun}${alignr 2}${execi 600 sed -n '64p' /home/sector11/conky_wunderground2/messages.wun}
${voffset -37}${goto 100}${color8}${font conkyweather:size=30}${execi 600 sed -n '29p' /home/sector11/conky_wunderground2/weather_icons}\
${goto 180}${color1}${execi 600 sed -n '31p' /home/sector11/conky_wunderground2/weather_icons}${font}${color}
${execi 600 sed -n '58p' /home/sector11/conky_wunderground2/messages.wun}${alignr}${execi 600 sed -n '62p' /home/sector11/conky_wunderground2/messages.wun}
${hr}${else}${hr}
${alignc}No Extra Day${endif}${voffset -160}
draw-bg.lua
--[[ Background by londonali1010 (2009)
VinDSL Background Hack (2010-2011)
This script draws a background to the Conky window. It covers the whole of the Conky window, but you can specify rounded corners, if you wish.
To call this script in Conky, use (assuming you have saved this script to ~/scripts/):
lua_load ~/scripts/draw_bg.lua
lua_draw_hook_pre draw_bg
Changelog:
+ v3.0 VinDSL Hack (01.28.2011) Killed memory leak.
+ v2.4 VinDSL Hack (01.25.2011) Declared all variables in local.
+ v2.3 VinDSL Hack (12.31.2010) Added shading example(s).
+ v2.2 VinDSL Hack (12.30.2010) Cleaned up the code a bit.
+ v2.1 VinDSL Hack (12.24.2010) Added cairo destroy function(s).
+ v2.0 VinDSL Hack (12.21.2010) Added height adjustment variable.
+ v1.0 Original release (07.10.2009)
]]
-- Change these settings to affect your background:
-- "corner_r" is the radius, in pixels, of the rounded corners. If you don't want rounded corners, use 0.
local corner_r = 25
-- Set the colour and transparency (alpha) of your background (0.00 - 0.99).
-- (Light Shading Example)
-- local bg_colour = 0x4d4d4d
-- local bg_alpha = 0.50
-- (Medium Shading Example)
-- local bg_colour = 0x222222
-- local bg_alpha = 0.50
-- (Dark Shading Example)
local bg_colour = 0x000000
local bg_alpha = 0.50
-- local bg_colour = 0x222222
-- local bg_alpha = 0.50
-- Tweaks the height of your background, in pixels. If you don't need to adjust the height, use 0.
-- (Default Setting)
local vindsl_hack_height = 0
-- local vindsl_hack_height = -8
require 'cairo'
local cs, cr = nil
local function rgb_to_r_g_b(colour,alpha)
return ((colour / 0x10000) % 0x100) / 255., ((colour / 0x100) % 0x100) / 255., (colour % 0x100) / 255., alpha
end
function conky_draw_bg()
if conky_window == nil then return end
if cs == nil then cairo_surface_destroy(cs) end
if cr == nil then cairo_destroy(cr) end
local w = conky_window.width
local h = conky_window.height
local v = vindsl_hack_height
local cs = cairo_xlib_surface_create(conky_window.display, conky_window.drawable, conky_window.visual, conky_window.width, conky_window.height)
local cr = cairo_create(cs)
cairo_move_to(cr,corner_r,0)
cairo_line_to(cr,w-corner_r,0)
cairo_curve_to(cr,w,0,w,0,w,corner_r)
cairo_line_to(cr,w,h+v-corner_r)
cairo_curve_to(cr,w,h+v,w,h+v,w-corner_r,h+v)
cairo_line_to(cr,corner_r,h+v)
cairo_curve_to(cr,0,h+v,0,h+v,0,h+v-corner_r)
cairo_line_to(cr,0,corner_r)
cairo_curve_to(cr,0,0,0,0,corner_r,0)
cairo_close_path(cr)
cairo_set_source_rgba(cr,rgb_to_r_g_b(bg_colour,bg_alpha))
cairo_fill(cr)
cairo_surface_destroy(cs)
cairo_destroy(cr)
end
You'll need to visit the first post here: TeoBigusGeekus's HOW TO: Conky weather info using Accuweather/WUnderground/NWS to get the scripts required and read the instructions. DEAD SIMPLE!
Last edited by Sector11 (2011-10-25 00:49:57)