Improve docs for ForecastIO in WeatherAgent

This commit is contained in:
Richard Morrison 2014-09-24 21:05:31 +01:00
parent 726fe1dca0
commit fd9300584d

View file

@ -17,7 +17,7 @@ module Agents
The `location` can be a US zipcode, or any location that Wunderground supports. To find one, search [wunderground.com](http://wunderground.com) and copy the location part of the URL. For example, a result for San Francisco gives `http://www.wunderground.com/US/CA/San_Francisco.html` and London, England gives `http://www.wunderground.com/q/zmw:00000.1.03772`. The locations in each are `US/CA/San_Francisco` and `zmw:00000.1.03772`, respectively.
If you plan on using ForecastIO, the `location` must be a set of GPS coordinates.
If you plan on using ForecastIO, the `location` must be a comma-separated string of co-ordinates (longitude, latitude). For example, San Francisco would be `37.7771,-122.4196`.
You must setup an [API key for Wunderground](http://www.wunderground.com/weather/api/) in order to use this Agent with Wunderground.