Fixed Trailling Spaces to Pass checks

This commit is contained in:
Pranav Sethi 2018-03-03 05:08:12 -05:00
parent 43d5311e5e
commit 62eb4f20da

View File

@ -399,7 +399,7 @@ Module.register("currentweather",{
break; break;
case "imperial": tempInF = this.temperature; case "imperial": tempInF = this.temperature;
break; break;
case "default": case "default":
var tc = this.temperature - 273.15; var tc = this.temperature - 273.15;
tempInF = 1.8 * tc + 32; tempInF = 1.8 * tc + 32;
break; break;
@ -424,11 +424,11 @@ Module.register("currentweather",{
} else if (tempInF > 80 && this.humidity > 40){ } else if (tempInF > 80 && this.humidity > 40){
// heat index // heat index
var Hindex = -42.379 + 2.04901523*tempInF + 10.14333127*this.humidity var Hindex = -42.379 + 2.04901523*tempInF + 10.14333127*this.humidity
- 0.22475541*tempInF*this.humidity - 6.83783*Math.pow(10,-3)*tempInF*tempInF - 0.22475541*tempInF*this.humidity - 6.83783*Math.pow(10,-3)*tempInF*tempInF
- 5.481717*Math.pow(10,-2)*this.humidity*this.humidity - 5.481717*Math.pow(10,-2)*this.humidity*this.humidity
+ 1.22874*Math.pow(10,-3)*tempInF*tempInF*this.humidity + 1.22874*Math.pow(10,-3)*tempInF*tempInF*this.humidity
+ 8.5282*Math.pow(10,-4)*tempInF*this.humidity*this.humidity + 8.5282*Math.pow(10,-4)*tempInF*this.humidity*this.humidity
- 1.99*Math.pow(10,-6)*tempInF*tempInF*this.humidity*this.humidity; - 1.99*Math.pow(10,-6)*tempInF*tempInF*this.humidity*this.humidity;
// this.feelsLike = Hindex.toFixed(0); // this.feelsLike = Hindex.toFixed(0);
switch (this.config.units){ switch (this.config.units){