A simple little wrapper over - http://www.webservicex.net/WS/WSDetails.aspx?WSID=56&CATID=12 Weather SOAP Service
Add this line to your application's Gemfile:
gem 'weatherman', :git => 'git://github.com/rocky-jaiswal/weatherman.git'
And then execute:
$ bundle
###To get the list of available cities, you can do -
Weatherman.get_cities_by_country("Poland")
This will return an array of Cities. Each "City" has two fields -
- city_name
- country_name
###To get the weather, you can do -
Weatherman.get_weather("Jodhpur", "India")
This will return a "Weather" object, which has a few fields -
- location
- time
- wind
- visibility
- temperature
- pressure
- status (as received from the web service)
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request