Fix METAR refresh timing and local observation display

This commit is contained in:
2569718930@qq.com
2026-04-16 18:21:51 +08:00
parent 9823e3961f
commit 9ed31b95a4
6 changed files with 70 additions and 9 deletions
+3
View File
@@ -184,6 +184,9 @@ class WeatherDataCollector(OpenMeteoCacheMixin, SettlementSourceMixin, MetarSour
self.metar_cache_ttl_sec = int(
os.getenv("METAR_CACHE_TTL_SEC", "600") # 默认 10 分钟
)
self.metar_fast_cache_ttl_sec = int(
os.getenv("METAR_FAST_CACHE_TTL_SEC", "60")
)
self._metar_cache: Dict[str, Dict] = {}
self._metar_cache_lock = threading.Lock()
self.taf_cache_ttl_sec = int(