Heat index is 286.43442974000004° C #210

chimit opened this Issue Feb 15, 2016 · 2 comments


None yet

3 participants

chimit commented Feb 15, 2016

I have current temperature -3° C and heat index 286.43442974000004° C.
Humidity is 39%.
Wind is 11.27 km/h.


Hmm, I'll take a look at this. It should just return -3 as the heat index since you can't calculate a heat index for anything below 26.7 C.

@fleeting fleeting added the Bug label Feb 23, 2016
@fleeting fleeting self-assigned this Feb 23, 2016
drtonyb commented Jul 7, 2016

This is easily fixed. Firstly, the if statement on line 76 is the wrong way around. The heat index equation only applies when temperature is > 80F and humidity is > 40% - you have the opposite. Secondly, the heat index equation requires the temperature in F, but when Celsius units are selected, the temperature is in C, so the heat index calculation is completely wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment