mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-07-01 05:23:25 +00:00
Fixed Heat Index for Kelvin
This commit is contained in:
parent
c8c14611dc
commit
f4910f0a8e
@ -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;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user