mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-08-21 12:55:22 +00:00
fix rain amount information for different units and providers, documentation
This commit is contained in:
@@ -81,7 +81,11 @@ WeatherProvider.register("darksky", {
|
||||
weather.minTemperature = forecast.temperatureMin;
|
||||
weather.maxTemperature = forecast.temperatureMax;
|
||||
weather.weatherType = this.convertWeatherType(forecast.icon);
|
||||
weather.rain = forecast.precipAccumulation;
|
||||
if (this.config.units === "metric" && !isNaN(forecast.precipAccumulation)) {
|
||||
weather.rain = forecast.precipAccumulation * 10;
|
||||
} else {
|
||||
weather.rain = forecast.precipAccumulation;
|
||||
}
|
||||
|
||||
days.push(weather);
|
||||
}
|
||||
|
Reference in New Issue
Block a user