 #
 # Configuration:
 #   HUBOT_WUNDERGROUND_API_KEY Sign up at http://www.wunderground.com/weather/api/.
+#   HUBOT_WUNDERGROUND_USE_METRIC (heroku config:unset HUBOT_WUNDERGROUND_USE_METRIC to disable)
 #
 # Commands:
 #   hubot weather me <location> - short-term forecast


send_forecast = (msg, location, data) ->
  report = data.forecast.txt_forecast.forecastday[0]
  msg.send "#{report.title} in #{location}: #{report.fcttext} (#{formatted_ttl data})"

send_radar = (msg, location, data) ->
  msg.send "#{data.radar.image_url}#.png"



alternative_place = (item) ->
  return '' if item.country != 'US' || item.state == "" || item.city == ""
  return "#{item.state}/#{item.city.replace(/\s/g, '_')}"