Fix: Wetter — windspeed_max → wind_kmh (Feldname-Mismatch, Wind zeigte immer 0) (SW by-v761)

This commit is contained in:
rene 2026-05-07 19:04:31 +02:00
parent 18d6bd407a
commit a8b4fd781f
5 changed files with 7 additions and 7 deletions

View file

@ -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():

View file

@ -578,7 +578,7 @@
<script src="/js/api.js?v=94"></script>
<script src="/js/ui.js?v=94"></script>
<script src="/js/app.js?v=94"></script>
<script src="/js/worlds.js?v=760"></script>
<script src="/js/worlds.js?v=761"></script>
<!-- Feature-Seiten werden lazy geladen -->

View file

@ -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';

View file

@ -450,7 +450,7 @@ window.Page_wetter = (() => {
</span>
<div style="flex:1">
<div style="font-size:var(--text-sm);font-weight:600">
${_esc(compass)} · ${Math.round(d.windspeed_max ?? 0)} km/h
${_esc(compass)} · ${Math.round(d.wind_kmh ?? 0)} km/h
</div>
<div style="font-size:var(--text-xs);color:var(--c-text-secondary)">${_esc(bft)}</div>
</div>
@ -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: 1020°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;

View file

@ -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