From 02026bd60636a1fe30f7fb30c174a6a6075503ca Mon Sep 17 00:00:00 2001 From: ryadav88 <ryadav88@gmail.com> Date: Mon, 28 Mar 2016 15:06:36 -0700 Subject: [PATCH] add temp --- index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index ae3b4dc..9000e10 100644 --- a/index.js +++ b/index.js @@ -28,11 +28,12 @@ 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.station_id; + var first_url = data.current_observation.temp_f; + var weatherC = data.current_observation.weather var body = { response_type: "in_channel", - text: first_url + text: "Temperature: " + first_url + \n + "Condition: " + weatherC }; res.send(body); -- GitLab