From 8699f0e80a33be06bdbb33a64f5835a7c434b92e Mon Sep 17 00:00:00 2001 From: ryadav88 <ryadav88@gmail.com> Date: Mon, 28 Mar 2016 15:30:30 -0700 Subject: [PATCH] Location --- index.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 8ed3434..452e3ca 100644 --- a/index.js +++ b/index.js @@ -31,13 +31,14 @@ app.post('/post', function(req, res){ var first_url = data.current_observation.temperature_string; var weatherC = data.current_observation.weather var icon_url = data.current_observation.icon_url + var location = data.current_observation.display_location.full var body = { response_type: "in_channel", "attachments": [ { - "text": "Temperature: " + first_url + "\n" + "Condition: " + weatherC, - "thumb_url": icon_url, + "text": "Location: " + location + "\n" + "Temperature: " + first_url + "\n" + "Condition: " + weatherC, + "image_url": icon_url, } ] }; -- GitLab