Fix Wetter-API-Pfad (/api/api/ → /api/), API.weather.get(), SW by-v322

This commit is contained in:
rene 2026-04-24 08:05:44 +02:00
parent d32b802649
commit d72ee6f89f
4 changed files with 4 additions and 3 deletions

View file

@ -1523,7 +1523,7 @@ window.Page_map = (() => {
const sep = document.getElementById('map-weather-sep');
if (!info) return;
try {
const w = await API.get(`/api/weather?lat=${lat}&lon=${lon}`);
const w = await API.weather.get(lat, lon);
const temp = w.temp_c != null ? `${Math.round(w.temp_c)}°` : '';
const icon = `<svg class="ph-icon" aria-hidden="true" style="width:12px;height:12px;vertical-align:-2px"><use href="/icons/phosphor.svg#${w.icon}"></use></svg>`;
let zecken = w.zecken_warnung