From 8212d30c4c92e1fc911f70b83437a835f879f645 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Malte=20Hallstr=C3=B6m?= <46646495+SkySails@users.noreply.github.com> Date: Tue, 4 Oct 2022 11:07:40 +0200 Subject: [PATCH] fix(weather/smhi) Correctly reference apparent temp method (#2931) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This PR addresses [this comment](https://github.com/MichMich/MagicMirror/commit/48756e877403d914c64c8da06a4f7e5bfbace07c#commitcomment-85772193), which points out an issue with #2902. Looks like the apparent temp calculation method was incorrectly referenced 😅 --- CHANGELOG.md | 2 ++ modules/default/weather/providers/smhi.js | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) 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