From f4910f0a8ef049ae52b307a12208ee5ed96a726d Mon Sep 17 00:00:00 2001 From: Shameer Ashraf Date: Fri, 29 Jun 2018 00:23:04 -0400 Subject: [PATCH] Fixed Heat Index for Kelvin --- modules/default/currentweather/currentweather.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/default/currentweather/currentweather.js b/modules/default/currentweather/currentweather.js index 106b7920..09f582bf 100644 --- a/modules/default/currentweather/currentweather.js +++ b/modules/default/currentweather/currentweather.js @@ -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; }