mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 19:53:36 +00:00
typo when not using /onecall - was getting forecast from wrong attr
This commit is contained in:
parent
e686611890
commit
775d1091db
@ -54,7 +54,7 @@ WeatherProvider.register("openweathermap", {
|
|||||||
this.setWeatherForecast(weatherData.days);
|
this.setWeatherForecast(weatherData.days);
|
||||||
this.setFetchedLocation(`${data.timezone}`);
|
this.setFetchedLocation(`${data.timezone}`);
|
||||||
} else {
|
} else {
|
||||||
const forecast = this.generateWeatherObjectsFromForecast(data.daily);
|
const forecast = this.generateWeatherObjectsFromForecast(data.list);
|
||||||
this.setWeatherForecast(forecast);
|
this.setWeatherForecast(forecast);
|
||||||
this.setFetchedLocation(`${data.city.name}, ${data.city.country}`);
|
this.setFetchedLocation(`${data.city.name}, ${data.city.country}`);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user