mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-27 19:53:36 +00:00
fixed typo in daily data fetcher
This commit is contained in:
parent
77640714cc
commit
9cbf331533
@ -185,7 +185,7 @@ WeatherProvider.register("openweathermap", {
|
||||
if (forecast.hasOwnProperty("rain")) {
|
||||
if (this.config.units === "imperial" && !isNaN(forecast.rain)) {
|
||||
weather.rain = forecast.rain / 25.4;
|
||||
} else if (!isNaN(forecast.rain["3h"])){
|
||||
} else if (!isNaN(forecast.rain)){
|
||||
weather.rain = forecast.rain;
|
||||
} else {
|
||||
weather.rain = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user