diff --git a/CHANGELOG.md b/CHANGELOG.md index 2b3b5cf5..aa421222 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -19,6 +19,8 @@ _This release is scheduled to be released on 2023-01-01._ ### Fixed +- Correctly show apparent temperature in SMHI weather provider + ## [2.21.0] - 2022-10-01 Special thanks to: @BKeyport, @buxxi, @davide125, @khassel, @kolbyjack, @krukle, @MikeBishop, @rejas, @sdetweil, @SkySails and @veeck diff --git a/modules/default/weather/providers/smhi.js b/modules/default/weather/providers/smhi.js index 5e1ef4a3..c42b460b 100644 --- a/modules/default/weather/providers/smhi.js +++ b/modules/default/weather/providers/smhi.js @@ -144,7 +144,7 @@ WeatherProvider.register("smhi", { currentWeather.windSpeed = this.paramValue(weatherData, "ws"); currentWeather.windDirection = this.paramValue(weatherData, "wd"); currentWeather.weatherType = this.convertWeatherType(this.paramValue(weatherData, "Wsymb2"), currentWeather.isDayTime()); - currentWeather.feelsLikeTemp = this.calculateAT(weatherData); + currentWeather.feelsLikeTemp = this.calculateApparentTemperature(weatherData); // Determine the precipitation amount and category and update the // weatherObject with it, the valuetype to use can be configured or uses