From 6fba9d938a774b4d5ff717d1aaebe468b6a680c2 Mon Sep 17 00:00:00 2001 From: Metacube Date: Thu, 5 Feb 2026 11:03:08 +0100 Subject: [PATCH] Remove OpenWeatherMap API key input and update settings Removed API key input for OpenWeatherMap and updated weather widget settings. --- aurora-livecam/index.php | 119 +++++++++++++++++++++++---------------- 1 file changed, 70 insertions(+), 49 deletions(-) diff --git a/aurora-livecam/index.php b/aurora-livecam/index.php index 249b41a..0352a2a 100644 --- a/aurora-livecam/index.php +++ b/aurora-livecam/index.php @@ -1310,7 +1310,7 @@ class AdminManager { // Weather Settings $output .= '
'; - $output .= '

🌤️ Wetter-Widget (Open-Meteo kostenlos, OpenWeatherMap optional)

'; + $output .= '

🌤️ Wetter-Widget (Open-Meteo - kostenlos, kein API-Key nötig)

'; $output .= '
'; $output .= 'Wetter-Widget anzeigen'; @@ -1322,15 +1322,10 @@ class AdminManager { $output .= '
'; $output .= '
'; - $output .= '
'; - $output .= 'API Key (OpenWeatherMap, optional)'; - $output .= '
'; - $output .= ''; - $output .= '
'; - $output .= '
'; + // API-KEY FELD KOMPLETT ENTFERNT $output .= '
'; - $output .= 'Standort (Stadt,Land)'; + $output .= 'Standort (Anzeigename)'; $output .= '
'; $output .= ''; $output .= '
'; @@ -1367,8 +1362,10 @@ class AdminManager { $output .= ''; $output .= '
'; $output .= ''; + $output .= ''; // settings-group + $output .= ''; // admin-settings-panel // Bestehender Admin-Content @@ -2758,11 +2755,33 @@ body.theme-neo footer { - + + + +
+
@@ -2804,9 +2823,9 @@ body.theme-neo footer { Snapshot speichern isWeeklyTimelapseEnabled()): ?> - + Videoclip speichern @@ -2818,44 +2837,12 @@ body.theme-neo footer {
+

Videoarchiv Tagesvideos

- -
-

- 🔍 Suche nach Datum/Uhrzeit -

-
-
- - -
-
- - -
-
- - -
-
- -
-
- -
- displayVisualCalendar(); @@ -2863,6 +2850,7 @@ body.theme-neo footer {
+
@@ -3775,7 +3763,7 @@ const AdminSettings = { } this.showNotification('Wetter-Widget ' + (boolValue ? 'aktiviert' : 'deaktiviert'), 'success'); break; - case 'weather.api_key': + case 'weather.location': case 'weather.lat': case 'weather.lon': @@ -3888,10 +3876,7 @@ const AdminSettings = { this.updateSetting('weather.enabled', e.target.checked); }); - document.getElementById('setting-weather-api-key')?.addEventListener('change', (e) => { - this.updateSetting('weather.api_key', e.target.value); - }); - + document.getElementById('setting-weather-location')?.addEventListener('change', (e) => { this.updateSetting('weather.location', e.target.value); }); @@ -4241,5 +4226,41 @@ document.addEventListener('DOMContentLoaded', function() { }); + + + + + + + + + + + + + + + + + + + + + + + + +