From 223d1a3d749a35d9d988532714ae58db65fc64e2 Mon Sep 17 00:00:00 2001 From: Richard Zink Date: Wed, 7 Oct 2026 14:27:53 +0200 Subject: [PATCH] Use CONFIG.location.lat/lon for weather API requests --- index.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 586c8ec..e4de5b1 100644 --- a/index.html +++ b/index.html @@ -1625,8 +1625,8 @@ window.weatherThemes = { } // ============ Weather ============ - var WEATHER_LAT = 48.5667; - var WEATHER_LON = 13.4319; + var WEATHER_LAT = (window.CONFIG && window.CONFIG.location && window.CONFIG.location.lat) || 48.5667; + var WEATHER_LON = (window.CONFIG && window.CONFIG.location && window.CONFIG.location.lon) || 13.4319; var weatherData = null; var WMO_ICONS = {