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

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