diff --git a/js/blueweather.js b/js/blueweather.js index 2f09575..5360a27 100644 --- a/js/blueweather.js +++ b/js/blueweather.js @@ -8,7 +8,7 @@ class BlueWeather { this.log("init done", 2) } - getLocationData(locId, range = {from:"", to:""}, async, processingFunction, errorFunction) { + getLocationData(locId, range = {from:"", to:""}, maxVals = 0, async, processingFunction, errorFunction) { this.xhttp.abort() var thisObject = this @@ -32,7 +32,7 @@ class BlueWeather { }; } - var url = "https://api.itsblue.de/weather/json.php?locId="+locId+"&range[from]="+range.from + "&range[to]="+range.to + var url = "https://api.itsblue.de/weather/json.php?locId="+locId+"&range[from]="+range.from + "&range[to]="+range.to + "&maxVals=" + maxVals this.log("starting location request; URL is: " + url, 3) this.xhttp.open("GET", url, async) this.xhttp.send() diff --git a/js/dashboard.js b/js/dashboard.js index 1bf43c5..1fef56a 100644 --- a/js/dashboard.js +++ b/js/dashboard.js @@ -24,7 +24,7 @@ class BlueWeatherDashboard { // set page to loading state mainContent.innerHTML = "