Saturday, December 3, 2011

Conky Script to display Weather Forcast on your desktop.

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.



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/
//'}



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.



15 comments:

  1. 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
  2. This is a great blog post. Thank you very much for the fantastic insight and we really appreciate the time you took to write this. Thanks again.
    http://scarprin.info/

    ReplyDelete
  3. Great post and now I know what to do thank you! Actually this Blog post helped me a lot. I hope you continue writing about this kind of entry.http://celabright.com/

    ReplyDelete
  4. I enjoyed reading your nice blog. I see you offer priceless info. Stumbled into this blog by chance but I'm sure glad I clicked on that link. You definitely answered all the questions I've been dying to answer for some time now. Will definitely come back for more of this.
    commercial roofing st louis

    ReplyDelete
  5. What I wouldnt give to learn how you got your design to be so amazing! I mean it. Besides the blog just being awesome this page is too sweet! Its not too flashy. It doesnt do too much with colours and things and the videos you use are perfect for this topic! Really awesome blog.
    www.fadeplex.com

    ReplyDelete
  6. Great post and now I know what to do thank you! Actually this Blog post helped me a lot. I hope you continue writing about this kind of entry.
    we buy houses fast

    ReplyDelete
  7. The post is absolutely fantastic! Lots of great information and inspiration both of which we all need! Also like to admire the time and effort you put into your blog and detailed information you offer! I will bookmark your blog!
    Business leads

    ReplyDelete
  8. This is a great blog post. Thank you very much for the fantastic insight and we really appreciate the time you took to write this. Thanks again.
    spy shop

    ReplyDelete
  9. What I wouldnt give to learn how you got your design to be so amazing! I mean it. Besides the blog just being awesome this page is too sweet! Its not too flashy. It doesnt do too much with colours and things and the videos you use are perfect for this topic! Really awesome blog.
    dialer leads

    ReplyDelete
  10. This article is all about conky script and its different features. I go through the who writing, get benefited from this.
    Freelance

    ReplyDelete
  11. This article dealing with LINUX and its part. Here, writer provides us some basic ideas of Conky Script and its different features. Its really helpful for the people who are interested in LINUX.
    Web Development

    ReplyDelete
  12. 01.
    To be honest with you guys, the post was able to express what it wants to convey to the readers. Also, it has been a very effective approach which resulted to a profitable output for all who have been fortunate enough to come across it!
    Freelance, Freelance job training in Bangladesh, Freelance job training in Dhaka, Freelance Training
    02.
    Please keep on posting such quality articles as this is a rare thing to find these days. I am always searching online for these types of articles that can help me further. I am really looking forward to another great blog. Good luck to the author! All the best!
    Freelance, Freelance job training in Bangladesh, Freelance job training in Dhaka, Freelance Training

    ReplyDelete
  13. It's a very good blog for new people. So I want to thank the author.
    camera systems

    ReplyDelete
  14. Forex trading instruments
    In forex trading you need to know all the requirements. The type of platform that you choose is essential to determine your forex trading ability. Learn more instruments in this site.
    forex brokers

    ReplyDelete
  15. Use the signals and robots and nadex binary options , but i can tell you that before you can use any strategy you have to understand yourself first, how is your mind work, without it you will continue the up and down profit/loss, feeling pressure/calm.
    Our web site is http://www.automatedbinaryoptions.co/?p=180

    ReplyDelete