Fixed Heat Index for Kelvin

This commit is contained in:
Shameer Ashraf 2018-06-29 00:23:04 -04:00
parent c8c14611dc
commit f4910f0a8e

View File

@ -437,7 +437,7 @@ Module.register("currentweather",{
case "imperial": this.feelsLike = Hindex.toFixed(0); case "imperial": this.feelsLike = Hindex.toFixed(0);
break; break;
case "default": case "default":
var tc = Hindex - 273.15; var tc = parseFloat((Hindex - 32) / 1.8) + 273.15;
this.feelsLike = tc.toFixed(0); this.feelsLike = tc.toFixed(0);
break; break;
} }