mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-28 20:22:53 +00:00
Remove windspeed conversion from openweathermap
This commit is contained in:
parent
d0565a15d3
commit
b72cb52a71
@ -128,12 +128,7 @@ WeatherProvider.register("openweathermap", {
|
|||||||
currentWeather.humidity = currentWeatherData.main.humidity;
|
currentWeather.humidity = currentWeatherData.main.humidity;
|
||||||
currentWeather.temperature = currentWeatherData.main.temp;
|
currentWeather.temperature = currentWeatherData.main.temp;
|
||||||
currentWeather.feelsLikeTemp = currentWeatherData.main.feels_like;
|
currentWeather.feelsLikeTemp = currentWeatherData.main.feels_like;
|
||||||
|
|
||||||
if (this.config.windUnits === "metric") {
|
|
||||||
currentWeather.windSpeed = this.config.useKmh ? currentWeatherData.wind.speed * 3.6 : currentWeatherData.wind.speed;
|
|
||||||
} else {
|
|
||||||
currentWeather.windSpeed = currentWeatherData.wind.speed;
|
currentWeather.windSpeed = currentWeatherData.wind.speed;
|
||||||
}
|
|
||||||
currentWeather.windDirection = currentWeatherData.wind.deg;
|
currentWeather.windDirection = currentWeatherData.wind.deg;
|
||||||
currentWeather.weatherType = this.convertWeatherType(currentWeatherData.weather[0].icon);
|
currentWeather.weatherType = this.convertWeatherType(currentWeatherData.weather[0].icon);
|
||||||
currentWeather.sunrise = moment(currentWeatherData.sys.sunrise, "X");
|
currentWeather.sunrise = moment(currentWeatherData.sys.sunrise, "X");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user