mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 19:53:36 +00:00
Update ukmetofficedatahub.js
There is a wrong treatment to appendLocationNameToHeader. The location should be always returned and leave the weater.js to decide if is included or not in the header.
This commit is contained in:
parent
fe8a317ef9
commit
331d147d50
@ -59,9 +59,8 @@ WeatherProvider.register("ukmetofficedatahub", {
|
|||||||
let queryStrings = "?";
|
let queryStrings = "?";
|
||||||
queryStrings += "latitude=" + this.config.lat;
|
queryStrings += "latitude=" + this.config.lat;
|
||||||
queryStrings += "&longitude=" + this.config.lon;
|
queryStrings += "&longitude=" + this.config.lon;
|
||||||
if (this.config.appendLocationNameToHeader) {
|
queryStrings += "&includeLocationName=" + true;
|
||||||
queryStrings += "&includeLocationName=" + true;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Return URL, making sure there is a trailing "/" in the base URL.
|
// Return URL, making sure there is a trailing "/" in the base URL.
|
||||||
return this.config.apiBase + (this.config.apiBase.endsWith("/") ? "" : "/") + forecastType + queryStrings;
|
return this.config.apiBase + (this.config.apiBase.endsWith("/") ? "" : "/") + forecastType + queryStrings;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user