 
 lookupWeather = (msg, coords, err) ->
   return msg.send err if err
+  return msg.send "You need to set env.HUBOT_FORECAST_API_KEY to get weather data" if not env.HUBOT_FORECAST_API_KEY
+
   url = forecastIoUrl + coords.lat + ',' + coords.lng
 
   msg.http(url).query(units: 'ca').get() (err, res, body) ->

      current = body.currently
    catch err
      return msg.send "Could not parse weather data."
    humidity = current.humidity * 100
    temperature = getTemp(current.temperature)
    text = "It is currently #{temperature} #{current.summary}, #{humidity}% humidity"
    msg.send text

lookupForecast = (msg, coords, err) ->
  return msg.send err if err

  url = forecastIoUrl + coords.lat + ',' + coords.lng
  msg.http(url).query(units: 'ca').get() (err, res, body) ->

      dateToday = new Date(data.time * 1000)
      month = dateToday.getMonth() + 1
      day = dateToday.getDate()
      humidity = (data.humidity * 100).toFixed 0
      maxTemp = getTemp data.temperatureMax
      minTemp = getTemp data.temperatureMin

      text += "#{month}/#{day} - High of #{maxTemp}, low of: #{minTemp} "
      text += "#{data.summary} #{humidity}% humidity\n"
      text

