From 7228d01ca963cceda4dac204cd006dfcec2f4a71 Mon Sep 17 00:00:00 2001
From: ryadav88 <ryadav88@gmail.com>
Date: Mon, 28 Mar 2016 15:19:26 -0700
Subject: [PATCH] add icons

---
 index.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/index.js b/index.js
index c06dd28..30c4d75 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
       };
 
-- 
GitLab