fix: remove hardcoded fallbacks + add missing config UI sections

This commit is contained in:
K7ZVX 2026-05-12 22:48:49 +00:00
commit bb36ebb8c3
7 changed files with 134 additions and 39 deletions

View file

@ -31,7 +31,7 @@ class AvalancheAdapter:
}
def __init__(self, config: "AvalancheConfig"):
self._center_ids = config.center_ids or ["SNFAC"]
self._center_ids = config.center_ids
self._tick_interval = config.tick_seconds or 1800
self._season_months = config.season_months or [12, 1, 2, 3, 4]
self._last_tick = 0.0

View file

@ -28,8 +28,8 @@ class DuctingAdapter:
"""Tropospheric ducting assessment from Open-Meteo GFS pressure levels."""
def __init__(self, config: "DuctingConfig"):
self._lat = config.latitude or 42.56
self._lon = config.longitude or -114.47
self._lat = config.latitude
self._lon = config.longitude
self._tick_interval = config.tick_seconds or 10800 # 3 hours
self._last_tick = 0.0
self._status = {}

2
meshai/env/fires.py vendored
View file

@ -20,7 +20,7 @@ class NICFFiresAdapter:
BASE_URL = "https://services3.arcgis.com/T4QMspbfLg3qTGWY/arcgis/rest/services/WFIGS_Interagency_Perimeters_Current/FeatureServer/0/query"
def __init__(self, config: "NICFFiresConfig", region_anchors: list = None):
self._state = config.state or "US-ID"
self._state = config.state
self._tick_interval = config.tick_seconds or 600
self._last_tick = 0.0
self._events = []