Fix: Wetter — windspeed_max → wind_kmh (Feldname-Mismatch, Wind zeigte immer 0) (SW by-v761)
This commit is contained in:
parent
18d6bd407a
commit
a8b4fd781f
5 changed files with 7 additions and 7 deletions
|
|
@ -327,7 +327,7 @@ MEDIA_DIR = os.getenv("MEDIA_DIR", "/data/media")
|
||||||
os.makedirs(MEDIA_DIR, exist_ok=True)
|
os.makedirs(MEDIA_DIR, exist_ok=True)
|
||||||
app.mount("/media", StaticFiles(directory=MEDIA_DIR), name="media")
|
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")
|
@app.get("/api/version")
|
||||||
async def app_version():
|
async def app_version():
|
||||||
|
|
|
||||||
|
|
@ -578,7 +578,7 @@
|
||||||
<script src="/js/api.js?v=94"></script>
|
<script src="/js/api.js?v=94"></script>
|
||||||
<script src="/js/ui.js?v=94"></script>
|
<script src="/js/ui.js?v=94"></script>
|
||||||
<script src="/js/app.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 -->
|
<!-- Feature-Seiten werden lazy geladen -->
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
Router, State-Management, Navigation, Initialisierung.
|
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 APP_VERSION = '1.5.0'; // ← semantische Version, wird bei make release gesetzt
|
||||||
const IS_STAGING = location.hostname === 'staging.banyaro.app';
|
const IS_STAGING = location.hostname === 'staging.banyaro.app';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -450,7 +450,7 @@ window.Page_wetter = (() => {
|
||||||
</span>
|
</span>
|
||||||
<div style="flex:1">
|
<div style="flex:1">
|
||||||
<div style="font-size:var(--text-sm);font-weight:600">
|
<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>
|
||||||
<div style="font-size:var(--text-xs);color:var(--c-text-secondary)">${_esc(bft)}</div>
|
<div style="font-size:var(--text-xs);color:var(--c-text-secondary)">${_esc(bft)}</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
@ -803,7 +803,7 @@ window.Page_wetter = (() => {
|
||||||
let score = 10;
|
let score = 10;
|
||||||
const temp = d.temp_max ?? 20;
|
const temp = d.temp_max ?? 20;
|
||||||
const precip = d.precip_prob ?? 0;
|
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 asphalt = d.asphalt_temp ?? 0;
|
||||||
|
|
||||||
// Temperatur (ideal: 10–20°C)
|
// Temperatur (ideal: 10–20°C)
|
||||||
|
|
@ -998,7 +998,7 @@ window.Page_wetter = (() => {
|
||||||
const temp = d.temp_max ?? 20;
|
const temp = d.temp_max ?? 20;
|
||||||
const tempMin = d.temp_min ?? temp;
|
const tempMin = d.temp_min ?? temp;
|
||||||
const precip = d.precip_prob ?? 0;
|
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 asphalt = d.asphalt_temp ?? 0;
|
||||||
const wcode = d.weathercode ?? 0;
|
const wcode = d.weathercode ?? 0;
|
||||||
const isSnow = wcode >= 71 && wcode <= 77;
|
const isSnow = wcode >= 71 && wcode <= 77;
|
||||||
|
|
|
||||||
|
|
@ -3,7 +3,7 @@
|
||||||
Offline-Cache + Push Notifications + Tile-Cache
|
Offline-Cache + Push Notifications + Tile-Cache
|
||||||
============================================================ */
|
============================================================ */
|
||||||
|
|
||||||
const CACHE_VERSION = 'by-v760';
|
const CACHE_VERSION = 'by-v761';
|
||||||
const CACHE_STATIC = `${CACHE_VERSION}-static`;
|
const CACHE_STATIC = `${CACHE_VERSION}-static`;
|
||||||
const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten
|
const CACHE_TILES = 'ban-yaro-tiles-v1'; // bleibt über SW-Updates erhalten
|
||||||
const CACHE_API = 'ban-yaro-api-v1'; // API-Response-Cache
|
const CACHE_API = 'ban-yaro-api-v1'; // API-Response-Cache
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue