Merge pull request #2477 from PostLogical/openweathermaplatlon

Allowing openweathermap config lat and lon to function without onecall, overrides locationID and location since more specific.
This commit is contained in:
Michael Teeuw
2021-03-13 19:20:59 +01:00
committed by GitHub
2 changed files with 3 additions and 0 deletions

View File

@@ -465,6 +465,8 @@ WeatherProvider.register("openweathermap", {
} else {
params += "&exclude=minutely";
}
} else if (this.config.lat && this.config.lon) {
params += "lat=" + this.config.lat + "&lon=" + this.config.lon;
} else if (this.config.locationID) {
params += "id=" + this.config.locationID;
} else if (this.config.location) {