weather/src/forecasts
Mostlyright TypeScript SDK / weather/src/forecasts
weather/src/forecasts
Section titled “weather/src/forecasts”Variables
Section titled “Variables”OPEN_METEO_CYCLE_HOURS
Section titled “OPEN_METEO_CYCLE_HOURS”
constOPEN_METEO_CYCLE_HOURS:ReadonlyMap<OpenMeteoModel, readonlynumber[]>
Defined in: packages-ts/weather/src/forecasts/open-meteo-models.ts:63
Per-model UTC cycle hours. Mirrors Python CYCLE_HOURS.
OPEN_METEO_PUBLISH_LAG_HOURS
Section titled “OPEN_METEO_PUBLISH_LAG_HOURS”
constOPEN_METEO_PUBLISH_LAG_HOURS:ReadonlyMap<OpenMeteoModel,number>
Defined in: packages-ts/weather/src/forecasts/open-meteo-models.ts:113
Per-model publish-lag hours for Live mode cycle-math fallback (D-06).
Functions
Section titled “Functions”floorToCycleMs()
Section titled “floorToCycleMs()”floorToCycleMs(
valueUtcMs,cycleHours):number
Defined in: packages-ts/weather/src/forecasts/open-meteo-models.ts:170
Snap valueUtcMs (epoch ms) down to the most recent cycle hour <= value.
Returns the floored epoch ms.
Parameters
Section titled “Parameters”valueUtcMs
Section titled “valueUtcMs”number
cycleHours
Section titled “cycleHours”readonly number[]
Returns
Section titled “Returns”number
issuedAtFromLiveCycleMathMs()
Section titled “issuedAtFromLiveCycleMathMs()”issuedAtFromLiveCycleMathMs(
nowUtcMs,publishLagHours,cycleHours):number
Defined in: packages-ts/weather/src/forecasts/open-meteo-models.ts:212
Cycle-math fallback for Live mode issuedAt derivation (D-06).
Parameters
Section titled “Parameters”nowUtcMs
Section titled “nowUtcMs”number
publishLagHours
Section titled “publishLagHours”number
cycleHours
Section titled “cycleHours”readonly number[]
Returns
Section titled “Returns”number
issuedAtFromPreviousDayMs()
Section titled “issuedAtFromPreviousDayMs()”issuedAtFromPreviousDayMs(
validAtUtcMs,N,cycleHours):number
Defined in: packages-ts/weather/src/forecasts/open-meteo-models.ts:198
Conservative lower bound for the cycle producing _previous_dayN (D-05).
Parameters
Section titled “Parameters”validAtUtcMs
Section titled “validAtUtcMs”number
number
cycleHours
Section titled “cycleHours”readonly number[]
Returns
Section titled “Returns”number
References
Section titled “References”forecastNwp
Section titled “forecastNwp”Re-exports forecastNwp
ForecastNwpOptions
Section titled “ForecastNwpOptions”Re-exports ForecastNwpOptions
iemMosForecasts
Section titled “iemMosForecasts”Re-exports iemMosForecasts
IemMosModel
Section titled “IemMosModel”Re-exports IemMosModel
IemMosOptions
Section titled “IemMosOptions”Re-exports IemMosOptions
IemMosRow
Section titled “IemMosRow”Re-exports IemMosRow
IemMosSource
Section titled “IemMosSource”Re-exports IemMosSource
NwpModel
Section titled “NwpModel”Re-exports NwpModel
OPEN_METEO_LIVE_URL
Section titled “OPEN_METEO_LIVE_URL”Re-exports OPEN_METEO_LIVE_URL
OPEN_METEO_MODELS
Section titled “OPEN_METEO_MODELS”Re-exports OPEN_METEO_MODELS
OPEN_METEO_PREVIOUS_RUNS_URL
Section titled “OPEN_METEO_PREVIOUS_RUNS_URL”Re-exports OPEN_METEO_PREVIOUS_RUNS_URL
OPEN_METEO_SEAMLESS_URL
Section titled “OPEN_METEO_SEAMLESS_URL”Re-exports OPEN_METEO_SEAMLESS_URL
OPEN_METEO_SINGLE_RUNS_URL
Section titled “OPEN_METEO_SINGLE_RUNS_URL”Re-exports OPEN_METEO_SINGLE_RUNS_URL
openMeteoForecasts
Section titled “openMeteoForecasts”Re-exports openMeteoForecasts
OpenMeteoMode
Section titled “OpenMeteoMode”Re-exports OpenMeteoMode
OpenMeteoModel
Section titled “OpenMeteoModel”Re-exports OpenMeteoModel
OpenMeteoOptions
Section titled “OpenMeteoOptions”Re-exports OpenMeteoOptions
OpenMeteoRow
Section titled “OpenMeteoRow”Re-exports OpenMeteoRow
OpenMeteoSource
Section titled “OpenMeteoSource”Re-exports OpenMeteoSource