For the complete documentation index, see llms.txt. This page is also available as Markdown.

lb-phone

This replaces the built-in random temperature generation with the real ambient and feels-like temperatures provided by VMS Needs.


1. Open the file

Open the following file: lb-phone/client/apps/default/weather.lua

2. Replace the Temperature Calculation

Find the following code:

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)
end

Replace it with:

Last updated