Yahoo weather for Conky

I wrote a Ruby script that parses a Yahoo weather RSS feed and prints it in a form suitable for use in Conky. This is what it looks like:

Weather screenshot

The source code is here. Bugs are likely, I wrote it in 20 minutes. It requires the xml-simple Ruby module, but that's in portage (emerge xml-simple).

3 Responses to “Yahoo weather for Conky”

  1. Quoth tidiman07:

    Hey, im having a hard time getting this weather script to work. send me yours so i can see what i should fill in.

    error:
    | weather.rb:3:in `require': no such file to load — |xmlsimple (LoadError)

  2. Quoth Brian:

    This means you need to install the xmlsimple Ruby module. You can install it via rubygems for example. A rubygems manual is here:

    http://rubygems.org/read/book/1

    You'd install xmlsimple via something like

    sudo gem install xml-simple

  3. Quoth crache:

    Change the third line

    from:
    require ‘xmlsimple'

    to:
    require ‘lib/xmlsimple'

Leave a Reply

You can use these tags in comments (Note: HTML is automatically escaped inside <pre> tags, nowhere else, so if you post source code, put it in <pre>):

<pre lang="some_programming_language"> 
<em>
<strong>
<a href="url">

NOTE: Comments are automatically spam-filtered. If your comment fails to appear, it was likely munched by the filter. Try not to link-spam or post anything that looks like it was typed by a robot.