mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 04:02:12 +00:00
another typo fix
This commit is contained in:
parent
9cbf331533
commit
bdcc0c5373
@ -156,10 +156,17 @@ WeatherProvider.register("openweathermap", {
|
|||||||
// add values from first forecast of this day to corresponding variables
|
// add values from first forecast of this day to corresponding variables
|
||||||
minTemp.push(forecast.main.temp_min);
|
minTemp.push(forecast.main.temp_min);
|
||||||
maxTemp.push(forecast.main.temp_max);
|
maxTemp.push(forecast.main.temp_max);
|
||||||
if (this.config.units === "imperial" && !isNaN(forecast.rain["3h"])) {
|
|
||||||
rain += forecast.rain["3h"] / 25.4;
|
if (forecast.hasOwnProperty("rain")) {
|
||||||
} else if (!isNaN(forecast.rain["3h"])){
|
if (this.config.units === "imperial" && !isNaN(forecast.rain["3h"])) {
|
||||||
rain += forecast.rain["3h"];
|
rain += forecast.rain["3h"] / 25.4;
|
||||||
|
} else if (!isNaN(forecast.rain["3h"])){
|
||||||
|
rain += forecast.rain["3h"];
|
||||||
|
} else {
|
||||||
|
rain += 0;
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
rain += 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user