diff --git a/index.js b/index.js index c06dd28f0039d48b76823026446cdd26f629ba7a..30c4d75492330e8781981655dc5a85ac1d0d8339 100644 --- a/index.js +++ b/index.js @@ -28,13 +28,13 @@ app.post('/post', function(req, res){ request(parsed_url, function (error, response, body) { if (!error && response.statusCode == 200) { var data = JSON.parse(body); - var first_url = data.current_observation.temp_f; + var first_url = data.current_observation.temperature_string; var weatherC = data.current_observation.weather var icon_url = data.current_observation.icon_url var body = { response_type: "in_channel", - pretext: icon_url + pretext: icon_url, text: "Temperature: " + first_url + "\n" + "Condition: " + weatherC };