From a8b4fd781f46c28192e6c1eefaee7838385a4e33 Mon Sep 17 00:00:00 2001 From: rene Date: Thu, 7 May 2026 19:04:31 +0200 Subject: [PATCH] =?UTF-8?q?Fix:=20Wetter=20=E2=80=94=20windspeed=5Fmax=20?= =?UTF-8?q?=E2=86=92=20wind=5Fkmh=20(Feldname-Mismatch,=20Wind=20zeigte=20?= =?UTF-8?q?immer=200)=20(SW=20by-v761)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/main.py | 2 +- backend/static/index.html | 2 +- backend/static/js/app.js | 2 +- backend/static/js/pages/wetter.js | 6 +++--- backend/static/sw.js | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/backend/main.py b/backend/main.py index 8c5b390..cb3a5d4 100644 --- a/backend/main.py +++ b/backend/main.py @@ -327,7 +327,7 @@ MEDIA_DIR = os.getenv("MEDIA_DIR", "/data/media") os.makedirs(MEDIA_DIR, exist_ok=True) app.mount("/media", StaticFiles(directory=MEDIA_DIR), name="media") -APP_VER = "760" # muss mit APP_VER in app.js übereinstimmen +APP_VER = "761" # muss mit APP_VER in app.js übereinstimmen @app.get("/api/version") async def app_version(): diff --git a/backend/static/index.html b/backend/static/index.html index c3abcea..7224f77 100644 --- a/backend/static/index.html +++ b/backend/static/index.html @@ -578,7 +578,7 @@ - + diff --git a/backend/static/js/app.js b/backend/static/js/app.js index 0fe4e0e..87d6ada 100644 --- a/backend/static/js/app.js +++ b/backend/static/js/app.js @@ -3,7 +3,7 @@ Router, State-Management, Navigation, Initialisierung. ============================================================ */ -const APP_VER = '760'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen +const APP_VER = '761'; // ← bei jedem Deploy mit Frontend-Änderungen erhöhen const APP_VERSION = '1.5.0'; // ← semantische Version, wird bei make release gesetzt const IS_STAGING = location.hostname === 'staging.banyaro.app'; diff --git a/backend/static/js/pages/wetter.js b/backend/static/js/pages/wetter.js index 31d6a4f..8eae462 100644 --- a/backend/static/js/pages/wetter.js +++ b/backend/static/js/pages/wetter.js @@ -450,7 +450,7 @@ window.Page_wetter = (() => {
- ${_esc(compass)} · ${Math.round(d.windspeed_max ?? 0)} km/h + ${_esc(compass)} · ${Math.round(d.wind_kmh ?? 0)} km/h
${_esc(bft)}
@@ -803,7 +803,7 @@ window.Page_wetter = (() => { let score = 10; const temp = d.temp_max ?? 20; const precip = d.precip_prob ?? 0; - const wind = d.windspeed_max ?? 0; + const wind = d.wind_kmh ?? 0; const asphalt = d.asphalt_temp ?? 0; // Temperatur (ideal: 10–20°C) @@ -998,7 +998,7 @@ window.Page_wetter = (() => { const temp = d.temp_max ?? 20; const tempMin = d.temp_min ?? temp; const precip = d.precip_prob ?? 0; - const wind = d.windspeed_max ?? 0; + const wind = d.wind_kmh ?? 0; const asphalt = d.asphalt_temp ?? 0; const wcode = d.weathercode ?? 0; const isSnow = wcode >= 71 && wcode <= 77; diff --git a/backend/static/sw.js b/backend/static/sw.js index ba39608..d3b9934 100644 --- a/backend/static/sw.js +++ b/backend/static/sw.js @@ -3,7 +3,7 @@ Offline-Cache + Push Notifications + Tile-Cache ============================================================ */ -const CACHE_VERSION = 'by-v760'; +const CACHE_VERSION = 'by-v761'; const CACHE_STATIC = `${CACHE_VERSION}-static`; const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten const CACHE_API = 'ban-yaro-api-v1'; // API-Response-Cache