Skip to content

Commit

Permalink
update weather message
Browse files Browse the repository at this point in the history
  • Loading branch information
kkpoon committed Jan 29, 2016
1 parent 21f1204 commit 9b585a6
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 109 deletions.
105 changes: 0 additions & 105 deletions npm-debug.log

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "hubot-weather-underground",
"description": "a hubot weather reporter",
"version": "0.1.0",
"version": "0.1.1",
"author": "K.K. POON <[email protected]>",
"license": "MIT",

Expand Down
7 changes: 4 additions & 3 deletions src/weather.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,15 @@ module.exports = (robot) ->
data = JSON.parse(body)
obs = data.current_observation
msg.send "The current weather condition of " +
"#{obs.display_location.city} is #{obs.weather}:\n" +
"At #{obs.observation_time_rfc822}, " +
"#{obs.display_location.full} is #{obs.weather}:\n" +
"#{obs.observation_time}, " +
"Temperature is #{obs.temp_c}°C " +
"(feels like #{obs.feelslike_c}°C), " +
"Humidity #{obs.relative_humidity}, " +
"Pressure #{obs.pressure_mb}hPa, " +
"Wind #{obs.wind_string}, " +
"UV #{obs.UV}"
"UV #{obs.UV}\n" +
"More information: #{obs.ob_url}"

catch err
msg.send err
Expand Down

0 comments on commit 9b585a6

Please sign in to comment.