Restrict yesterday weather result to only one day

This commit is contained in:
Samer Albahra
2015-07-01 20:03:27 -05:00
parent 712792679a
commit 237fe2a483

View File

@@ -123,7 +123,7 @@
// Generate URL using WSI Cleaned History API in Imperial units showing daily average values // 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 + url = "http://cleanedobservations.wsi.com/CleanedObs.svc/GetObs?ID=" + WSI_HISTORY_KEY +
"&Lat=" + location[0] + "&Long=" + location[1] + "&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 // Perform the HTTP request to retrieve the weather data
httpRequest( url, function( xml ) { httpRequest( url, function( xml ) {