 #   None
 #
 # Configuration
-#   HUBOT_DARK_SKY_API_KEY   
+#   HUBOT_DARK_SKY_API_KEY
 #   HUBOT_DARK_SKY_DEFAULT_LOCATION
 #
 # Commands:

          msg.send "Couldn't find #{location}"

darkSkyMe = (msg, lat, lng, cb) ->
  url = "https://api.darkskyapp.com/v1/brief_forecast/#{process.env.HUBOT_DARK_SKY_API_KEY}/#{lat},#{lng}/"
  msg.http(url)
    .get() (err, res, body) ->
      result = JSON.parse(body)

        cb "#{result.error}"
        return

      response = "Currently: #{result.currently.summary} (#{result.currently.temperature}F)"
      response += "\nNext hour: #{result.minutely.summary}"
      response += "\nToday: #{result.hourly.summary}"
      cb response
