weather: fetch and expose precipitation and snowfall

This commit is contained in:
Richard Zink committed 2026-10-12 22:15:16 +02:00
1 parent e3250a34da
commit c769a6dff3
2 files changed
+62 -2

No files matched your search

+13
View File
@@ -105,6 +105,19 @@ window.CONFIG = {
weatherSimInterval: 30000, // ms per weather step when weatherSim is true
// weatherSim: true, weatherSimInterval: 15000
// ------------------------------------------------------------------
// Weather data
// ------------------------------------------------------------------
// Open-Meteo fields used by the scene. These knobs only control which
// optional weather values are requested and exposed as window.__currentWeather.
weather: {
precipitation: true, // mm/h total precipitation
snowfall: true, // cm/h snowfall
hourly: true, // use hourly values for the simulated clock
// weather: { precipitation: false, snowfall: false, hourly: false }
// weather: { precipitation: true, snowfall: true }
},
// ------------------------------------------------------------------
// Tiles and caches
// ------------------------------------------------------------------