new # look up WOEID via enter location by city # name or zip and WOEID is at end of resulting page url. Then install the gem by executing: % gem install yahoo-weather Usage ¶ ↑Ī simple example program: require 'rubygems' require 'yahoo-weather' = YahooWeather :: Client. Install rubygems if you don’t already have it. The older interface is still operational but users of this library should shift from using YahooWeather::Client::lookup_location to YahooWeather::Client::lookup_by_woeid. The archived page with the deprecated API details is at: Yahoo has deprecated the older non-WOEID-based lookup API. NOTE: This library was updated as of December 2009 to use a new WOEID-based lookup interface. The RubyForge project page for this library is at /projects/yahoo-weather. Log the weather information to your database! Graph it to your heart’s content! Write a widget that emails the weather to your cell phone every five minutes with a link to your friend’s PayPal account to deposit money if the weather’s sunny and you both bet that it would be rainy. However, we can all understand a fascination with details and forecasting. This may seem ironic given they can just glance out the window. Yahoo-weather provides an object-oriented interface to the Yahoo! Weather XML RSS feed detailed at /weather.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |