Skip to content
Snippets Groups Projects
Commit 8699f0e8 authored by ryadav88's avatar ryadav88
Browse files

Location

parent 2630fbb8
Branches
No related tags found
No related merge requests found
...@@ -31,13 +31,14 @@ app.post('/post', function(req, res){ ...@@ -31,13 +31,14 @@ app.post('/post', function(req, res){
var first_url = data.current_observation.temperature_string; var first_url = data.current_observation.temperature_string;
var weatherC = data.current_observation.weather var weatherC = data.current_observation.weather
var icon_url = data.current_observation.icon_url var icon_url = data.current_observation.icon_url
var location = data.current_observation.display_location.full
var body = { var body = {
response_type: "in_channel", response_type: "in_channel",
"attachments": [ "attachments": [
{ {
"text": "Temperature: " + first_url + "\n" + "Condition: " + weatherC, "text": "Location: " + location + "\n" + "Temperature: " + first_url + "\n" + "Condition: " + weatherC,
"thumb_url": icon_url, "image_url": icon_url,
} }
] ]
}; };
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment