Restrict yesterday weather result to only one day
This commit is contained in:
@@ -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 ) {
|
||||||
|
|||||||
Reference in New Issue
Block a user