ThingPulse / esp8266-weather-station

ESP8266 Weather Station library supporting OpenWeatherMap, Aeris and other sources
MIT License
1.06k stars 359 forks source link

Added "Feels-like" temperature #173

Closed sungkhum closed 4 years ago

sungkhum commented 4 years ago

/<Description of and rationale behind this PR> Calculations credit goes to https://gist.github.com/jfcarr/e68593c92c878257550d I don't know C++ so I don't know if I added the code in the best place. It does work for me (I'm able to display the value with currentWeather.feelsLikeTemp). I hope others find this number useful.

I also added code so it works in metric and imperial (thanks @G6EJD for the reminder).

akrinke commented 4 years ago

It seems OpenWeatherMap added a new "feels_like" temperature value to the current weather data; see https://openweathermap.org/current#current_JSON and the blog post at https://openweather.co.uk/blog/post/new-feels-temperature-openweather-apis

marcelstoer commented 4 years ago

Yep, I also noticed, thanks. So this can now be simplified to just map the new property.

marcelstoer commented 4 years ago

e1e3674 replaces this -> closing