 
 alternative_place = (item) ->
   return '' if item.country != 'US' || item.state == "" || item.city == ""
-  return "#{item.state}/#{item.city.replace(/\s/g, '_')}"
+  return "#{item.state}/#{item.city.replace(/\s/g, '_')}"
#
# Configuration:
#   HUBOT_WUNDERGROUND_API_KEY Sign up at http://www.wunderground.com/weather/api/.
#
# Commands:
#   hubot weather me <location> - short-term forecast


send_forecast = (msg, location, data) ->
  report = data.forecast.txt_forecast.forecastday[0]
  if not process.env.HUBOT_WUNDERGROUND_USE_METRIC?
    msg.send "#{report.title} in #{location}: #{report.fcttext} (#{formatted_ttl data})"
  else
    msg.send "#{report.title} in #{location}: #{report.fcttext_metric} (#{formatted_ttl data})"
send_radar = (msg, location, data) ->
  msg.send "#{data.radar.image_url}#.png"

