From 237fe2a483c74ecc9aac966f6d831dd578d92dd6 Mon Sep 17 00:00:00 2001 From: Samer Albahra Date: Wed, 1 Jul 2015 20:03:27 -0500 Subject: [PATCH] Restrict yesterday weather result to only one day --- routes/weather.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/weather.js b/routes/weather.js index 256f2db..c70dfc9 100644 --- a/routes/weather.js +++ b/routes/weather.js @@ -123,7 +123,7 @@ // Generate URL using WSI Cleaned History API in Imperial units showing daily average values url = "http://cleanedobservations.wsi.com/CleanedObs.svc/GetObs?ID=" + WSI_HISTORY_KEY + "&Lat=" + location[0] + "&Long=" + location[1] + - "&Req=davg&startdate=" + yesterday.toUSDate() + "&enddate=" + today.toUSDate() + "&TS=LST"; + "&Req=davg&startdate=" + yesterday.toUSDate() + "&enddate=" + yesterday.toUSDate() + "&TS=LST"; // Perform the HTTP request to retrieve the weather data httpRequest( url, function( xml ) {