getForecast
Server export to read forecast data
getForecast
Returns the same forecast payload used by the forecast HUD. Reading the forecast does not consume queued entries.
While weather is frozen, current conditions remain available, entries is empty, nextChangeMs is 0, and patternMode is false in this payload. Use isPatternMode() to inspect the underlying sequence mode.
Usage
local forecast = exports["FS-Weather"]:getForecast()
for _, entry in ipairs(forecast.entries) do
print(entry.weather, entry.durationMinutes)
endReturns
Prop
Type