Sha256: 9bbf9cf49891e2806a8be719d8d8a74f33b2bf561f06bdb6c16e419f835587fc
Contents?: true
Size: 1011 Bytes
Versions: 1
Compression:
Stored size: 1011 Bytes
Contents
# Weather-API A Ruby wrapper for the Yahoo! Weather XML RSS feed. ## Installation [sudo] gem install weather-api ## Description Weather-API provides an object-oriented interface to the Yahoo! Weather XML RSS feed service. Details on the service can be found [here](http://developer.yahoo.com/weather). ## Usage A simple example: require 'rubygems' require 'weather-api' # look up WOEID via http://weather.yahoo.com; 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.title} #{response.condition.temp} degrees #{response.condition.text} EOT This produces: Conditions for Ladysmith, CA at 5:00 pm PDT 13 degrees Cloudy Lookup via location name response = Weather.lookup_by_location('San Francisco, CA', Weather::Units::FAHRENHEIT) ## Copyright Copyright (c) 2012 Andrew Stewart. See `LICENSE` file for more details.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
weather-api-1.4.0 | README.md |