mirror of
https://github.com/MichMich/MagicMirror.git
synced 2025-06-29 20:49:54 +00:00
restore windChillInF variable.
This commit is contained in:
parent
959ea69427
commit
1e6201093b
@ -407,8 +407,8 @@ Module.register("currentweather",{
|
|||||||
|
|
||||||
if (windInMph > 3 && tempInF < 50){
|
if (windInMph > 3 && tempInF < 50){
|
||||||
// windchill
|
// 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 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 windChillInC = (windChillInF - 32) * (5/9);
|
||||||
// this.feelsLike = windChillInC.toFixed(0);
|
// this.feelsLike = windChillInC.toFixed(0);
|
||||||
|
|
||||||
switch (this.config.units){
|
switch (this.config.units){
|
||||||
|
Loading…
x
Reference in New Issue
Block a user