a hubot weather reporter
See src/weather.coffee
for full documentation.
In hubot project repo, run:
npm install hubot-weather-underground --save
Then add hubot-weather-underground to your external-scripts.json
:
["hubot-weather-underground"]
HUBOT_WEATHER_WUNDERGROUND_KEY=YOUR_WUNDERGROUND_KEY
If you want to use fahrenheit instead of celsius use the following environment variable
HUBOT_WEATHER_UNDERGROUND_FORMAT=F
user1>> hubot weather of Hong Kong
hubot>> The current weather condition of Hong Kong is Light Rain Showers:
At Fri, 29 Jan 2016 09:13:02 +0800, Temperature is 16.4°C (feels like 16.4°C), Humidity: 94%, Pressure: 1018hPa, Wind: Calm, UV: 1.0
user1>> hubot what is Sha Tin exactly called?
hubot>> Here are the possibilities:
Sha Tin, China
Sha Tin Racecourse, China
Sha Tin Sports Ground, China
Sha Tin Tau, Hong Kong
Sha Tin Wai, Hong Kong
Sha Tin, Hong Kong