diff --git a/CHANGELOG.md b/CHANGELOG.md index 3eca6d25..6b726c5d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -40,6 +40,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). - Newsfeed now remembers to show the description when `"ARTICLE_LESS_DETAILS"` is called if the user wants to always show the description. [#1282](https://github.com/MichMich/MagicMirror/issues/1282) - `clientonly/*.js` is now linted, and one linting error is fixed - Fix issue #1196 by changing underscore to hyphen in locale id, in align with momentjs. +- Fixed issue where heat index and wind chill were reporting incorrect values in Kelvin. [#1263](https://github.com/MichMich/MagicMirror/issues/1263) ### Updated - Updated Italian translation diff --git a/modules/default/currentweather/currentweather.js b/modules/default/currentweather/currentweather.js index 106b7920..18ae3c71 100644 --- a/modules/default/currentweather/currentweather.js +++ b/modules/default/currentweather/currentweather.js @@ -417,7 +417,7 @@ Module.register("currentweather",{ case "imperial": this.feelsLike = windChillInF.toFixed(0); break; case "default": - var tc = windChillInC - 273.15; + var tc = windChillInC + 273.15; this.feelsLike = tc.toFixed(0); break; } @@ -437,7 +437,7 @@ Module.register("currentweather",{ case "imperial": this.feelsLike = Hindex.toFixed(0); break; case "default": - var tc = Hindex - 273.15; + var tc = parseFloat((Hindex - 32) / 1.8) + 273.15; this.feelsLike = tc.toFixed(0); break; }