mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 04:45:17 +00:00
fix rain amount information for different units and providers, documentation
This commit is contained in:
@@ -96,7 +96,11 @@ WeatherProvider.register("openweathermap", {
|
||||
weather.minTemperature = forecast.temp.min;
|
||||
weather.maxTemperature = forecast.temp.max;
|
||||
weather.weatherType = this.convertWeatherType(forecast.weather[0].icon);
|
||||
weather.rain = forecast.rain;
|
||||
if (this.config.units === "imperial" && !isNaN(forecast.rain)) {
|
||||
weather.rain = forecast.rain / 25.4
|
||||
} else {
|
||||
weather.rain = forecast.rain;
|
||||
}
|
||||
|
||||
days.push(weather);
|
||||
}
|
||||
|
Reference in New Issue
Block a user