From 95fb7e4625839ccf2824fad86ec60625b1caf2b7 Mon Sep 17 00:00:00 2001
From: Erick Hitter <services@ethitter.com>
Date: Fri, 13 Jan 2017 23:31:10 -0800
Subject: [PATCH] Remove extra data for now

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

diff --git a/index.js b/index.js
index 53e8a35..c1b87dc 100644
--- a/index.js
+++ b/index.js
@@ -99,16 +99,13 @@ app.post('/post', function(req, res){
           forecastText = forecastData.forecast.txt_forecast;
 
       var forecastBody = "##### Forecast as of " + forecastText.date + "\n";
-      forecastBody += "| Day                 | Forecast                      | High      | Low       |\n";
-      forecastBody += "|:--------------------|:------------------------------|:----------|:----------|\n";
+      forecastBody += "| Day                 | Forecast                      |\n";
+      forecastBody += "|:--------------------|:------------------------------|\n";
 
       forecastText.forecastday.forEach( function( entry, index ) {
-        var forecastDetails = forecastData.forecast.simpleforecast.forecastday[ index ];
-
-        if ( 'undefined' !== typeof forecastDetails ) {
-          forecastBody += ' | ' + entry.title + ' | ' + entry.fcttext + ' | ' + forecastDetails.high.fahrenheit + ' | ' + forecastDetails.low.fahrenheit + " |\n";
-        }
+        forecastBody += ' | ' + entry.title + ' | ' + entry.fcttext + " |\n";
       } );
+
       responseBody.attachments[1] = { "text": forecastBody };
       res.send( responseBody );
 
-- 
GitLab