Skip to content
This repository has been archived by the owner on Sep 16, 2020. It is now read-only.

Commit

Permalink
Merge pull request #8 from mal/generify
Browse files Browse the repository at this point in the history
Switch to more generic location env vars
  • Loading branch information
jeffbyrnes committed Mar 3, 2015
2 parents 0375aa6 + 81d6fab commit de41984
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/forecast.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@
# HUBOT_FORECAST_KEY - forecast.io API key
# HUBOT_FORECAST_ROOM - Room bulletins should be posted in
# HUBOT_FORECAST_TIME - On/off times in hours. Default 11-23
# HUBOT_LAT_LNG
# HUBOT_LATITUDE - Latitude in decimal degrees
# HUBOT_LONGITUDE - Longitude in decimal degrees
#
# Commands:
# None
Expand All @@ -21,7 +22,7 @@
# jeffbyrnes

KV_KEY = 'forecast-alert-datapoint'
LOCATION = process.env.HUBOT_LAT_LNG
LOCATION = process.env.HUBOT_LATITUDE + ',' + process.env.HUBOT_LONGITUDE

activeDays = (process.env.HUBOT_FORECAST_DAYS ? 'mon,tue,wed,thu,fri')
.toLowerCase()
Expand Down

0 comments on commit de41984

Please sign in to comment.