Skip to content
A Ruby wrapper for the Yahoo! Weather XML RSS feed.
Latest commit f5c5205 Jun 16, 2015 @stewart Update version
Failed to load latest commit information.
lib Update version Jun 16, 2015
spec A new fixture, I guess? Jan 9, 2015
.gitignore Initial commit Apr 8, 2012
Gemfile Use https for RubyGems and remove rb-fsevent and growl Feb 25, 2013
LICENSE Initial commit Apr 9, 2012 Update Nov 8, 2013
Rakefile Use irb since Pry isn't in bundle Dec 19, 2012
weather-api.gemspec Remove version from JSON gem Jan 4, 2014


A Ruby wrapper for the Yahoo! Weather XML RSS feed.


[sudo] gem install weather-api


Weather-API provides an object-oriented interface to the Yahoo! Weather XML RSS feed service.

Details on the service can be found here.


A simple example:

require 'rubygems'
require 'weather-api'

# look up WOEID via; enter location by city
# name or zip and WOEID is at end of resulting page url.
response = Weather.lookup(9830, Weather::Units::CELSIUS)

print <<EOT
#{response.condition.temp} degrees

This produces:

 Conditions for Ladysmith, CA at 5:00 pm PDT
 13 degrees


Copyright (c) 2012 Andrew Stewart. See LICENSE file for more details.

Something went wrong with that request. Please try again.