First get the basics of the post from here. Here is a simple script to display weather forecast on your desktop. I'm using yahoo weather to get the xml feed of forecast because it requires no login/registration and can be just use it directly.
You have to customize this script for your city, just you have replace 'Bangalore' with your city and the code w=[your city code that you can find in yahoo weather], that's all.
Conky Configuration File
# UBUNTU-CONKY
# A comprehensive conky script, configured for use on
# Ubuntu / Debian Gnome, without the need for any external scripts.
#
# Based on conky-jc and the default .conkyrc.
background yes
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# fiddle with window
use_spacer yes
use_xft no
# Update interval in seconds
update_interval 3.0
# Minimum size of text area
# minimum_size 80 5
# Draw shades?
draw_shades no
# Text stuff
draw_outline no # amplifies text if yes
draw_borders no
font ms sans
uppercase no # set to yes if you want all text to be in uppercase
# Stippled borders?
stippled_borders 3
# border margins
border_margin 0
# border width
border_width 0
# Default colors and also border colors, grey90 == #e5e5e5
default_color cyan
default_shade_color black
#default_outline_color CCCCCC
own_window_colour white
own_window_transparent yes
# Text alignment, other possible values are commented
#alignment top_left
#alignment top_right
#alignment top_middle
alignment bottom_left
#alignment bottom_right
# Gap between borders of screen and text
gap_x 0
gap_y 0
# stuff after 'TEXT' will be formatted on screen
TEXT
Weather Report [Bangalore]
${color white}${execi 40 curl --silent "http://xml.weather.yahoo.com/forecastrss?w=2295420&u=c" | grep -E '(C
//' -e 's///' -e 's/<\/b>//' -e 's/
//'}
# A comprehensive conky script, configured for use on
# Ubuntu / Debian Gnome, without the need for any external scripts.
#
# Based on conky-jc and the default .conkyrc.
background yes
# Create own window instead of using desktop (required in nautilus)
own_window yes
own_window_type desktop
own_window_transparent yes
own_window_hints undecorated,below,skip_taskbar
# Use double buffering (reduces flicker, may not work for everyone)
double_buffer yes
# fiddle with window
use_spacer yes
use_xft no
# Update interval in seconds
update_interval 3.0
# Minimum size of text area
# minimum_size 80 5
# Draw shades?
draw_shades no
# Text stuff
draw_outline no # amplifies text if yes
draw_borders no
font ms sans
uppercase no # set to yes if you want all text to be in uppercase
# Stippled borders?
stippled_borders 3
# border margins
border_margin 0
# border width
border_width 0
# Default colors and also border colors, grey90 == #e5e5e5
default_color cyan
default_shade_color black
#default_outline_color CCCCCC
own_window_colour white
own_window_transparent yes
# Text alignment, other possible values are commented
#alignment top_left
#alignment top_right
#alignment top_middle
alignment bottom_left
#alignment bottom_right
# Gap between borders of screen and text
gap_x 0
gap_y 0
# stuff after 'TEXT' will be formatted on screen
TEXT
Weather Report [Bangalore]
${color white}${execi 40 curl --silent "http://xml.weather.yahoo.com/forecastrss?w=2295420&u=c" | grep -E '(C
//' -e 's///' -e 's/<\/b>//' -e 's/
//'}
You have to customize this script for your city, just you have replace 'Bangalore' with your city and the code w=[your city code that you can find in yahoo weather], that's all.
Considerably the article is in reality the greatest on this noteworthy topic. I agree with your conclusions and will eagerly look forward to your next updates. Saying thanks will not just be sufficient for the wonderful clarity in your writing. I will immediately grab your rss feed to stay privy of any updates! Tucson Photo Booth Rental
ReplyDelete