Skip to content

TrevorS/hubot-open-weather-map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

hubot-open-weather-map

Get weather information using OpenWeatherMap for Hubot.

Build Status

Installation

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"]

Configuration

  • 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

Sample Interaction

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.

About

Get weather information using OpenWeatherMap for Hubot.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 3

  •  
  •  
  •