From bdeb5c45791c7c14f64420be74053ae746ac5052 Mon Sep 17 00:00:00 2001 From: Samer Albahra Date: Mon, 4 Mar 2019 16:17:23 -0600 Subject: [PATCH] Zero index the forecast data --- routes/weather.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/weather.js b/routes/weather.js index e405fb7..4ed8855 100755 --- a/routes/weather.js +++ b/routes/weather.js @@ -75,7 +75,7 @@ function getOWMWeatherData( location, callback ) { weather.icon = data.list[ 0 ].weather[ 0 ].icon; weather.forecast = []; - for ( var index = 1; index < data.list.length; index++ ) { + for ( var index = 0; index < data.list.length; index++ ) { weather.forecast.push( { temp_min: parseInt( data.list[ index ].temp.min ), temp_max: parseInt( data.list[ index ].temp.max ),