Retrieves the current conditions for a configured location or by query.
In your hubot repository, run:
npm install @stephenyeargin/hubot-openweathermap --save
Then add @stephenyeargin/hubot-openweathermap to your external-scripts.json
:
[
"@stephenyeargin/hubot-openweathermap"
]
Environment Variables | Required? | Description |
---|---|---|
HUBOT_OPEN_WEATHER_MAP_API_KEY |
Yes | API key from the developer console |
HUBOT_DEFAULT_LATITUDE |
No | Latitude for default query of hubot weather |
HUBOT_DEFAULT_LONGITUDE |
No | Longitude for default query of hubot weather |
user1> hubot weather
hubot> Currently scattered clouds and 49F/10C in Nashville