Get weather information using OpenWeatherMap for Hubot.
In the Hubot project repo, run:
npm install hubot-open-weather-map --save
Then add hubot-open-weather-map to your external-scripts.json
:
["hubot-open-weather-map"]
- HUBOT_OPEN_WEATHER_MAP_APIKEY - required API key from http://openweathermap.org/faq#error401
- HUBOT_OPEN_WEATHER_MAP_URL - An alternative OpenWeatherMap URL
- HUBOT_OPEN_WEATHER_MAP_FORECAST_URL - An alternative OpenWeatherMap URL for forecast
- HUBOT_OPEN_WEATHER_MAP_DEFAULT_CITIES - A
;
delimited list of default cities. - HUBOT_OPEN_WEATHER_MAP_UNITS (optional) - imperial, metric
TrevorS> hubot weather Savannah, GA
hubot> It is currently 54.81°F in Savannah.
TrevorS> hubot weather
hubot> It is currently 59.36°F in Norcross.
hubot> It is currently 80.60°F in Georgetown.
hubot> It is currently 54.81°F in Savannah.
TrevorS> hubot forecast Savannah, GA
hubot> today we will have 66.49°F with clear sky and feels like 62.01°F.
Tomorrow we will have 56.34°F with clear sky and feels like 52.02°F.
The day after we will have 53.04°F with clear sky and feels like 49.39°F.