lb-phone
1. Open the file
2. Replace the Temperature Calculation
local temperature = math.random(weatherData.temperature[1], weatherData.temperature[2])
weatherData.temperature = temperature
if windSpeed > 4 and temperature < 50 then
-- calculation from https://www.weather.gov/media/epz/wxcalc/windChill.pdf
local windSpeedMph = windSpeed * 2.236936
local feelsLike = (35.74 + (0.6215 * temperature) - (35.75 * windSpeedMph ^ 0.16) + (0.4275 * temperature * windSpeedMph ^ 0.16))
weatherData.feelsLike = math.min(math.floor(feelsLike), temperature)
endLast updated