diff --git a/CHANGELOG.md b/CHANGELOG.md index 7b30bf2499..ad4b669800 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,7 @@ This project adheres to [Semantic Versioning](http://semver.org/). ### Changed ### Fixed +- Fixed issue where wind chill could not be displayed in Fahrenheit. [#1247](https://github.com/MichMich/MagicMirror/issues/1247) ### Updated - Updated italian translation diff --git a/modules/default/currentweather/currentweather.js b/modules/default/currentweather/currentweather.js index 442e863234..7047f91172 100644 --- a/modules/default/currentweather/currentweather.js +++ b/modules/default/currentweather/currentweather.js @@ -407,8 +407,8 @@ Module.register("currentweather",{ if (windInMph > 3 && tempInF < 50){ // windchill - var windchillinF = Math.round(35.74+0.6215*tempInF-35.75*Math.pow(windInMph,0.16)+0.4275*tempInF*Math.pow(windInMph,0.16)); - var windChillInC = (windchillinF - 32) * (5/9); + var windChillInF = Math.round(35.74+0.6215*tempInF-35.75*Math.pow(windInMph,0.16)+0.4275*tempInF*Math.pow(windInMph,0.16)); + var windChillInC = (windChillInF - 32) * (5/9); // this.feelsLike = windChillInC.toFixed(0); switch (this.config.units){