From 5d9ebbbc3e3c535eb9f00e07790c868a634ddbb6 Mon Sep 17 00:00:00 2001 From: Metacube Date: Thu, 5 Feb 2026 11:02:36 +0100 Subject: [PATCH 1/2] Refactor weather settings and timelapse checks Removed the weather API key retrieval method and updated the weekly timelapse check logic. --- aurora-livecam/SettingsManager.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/aurora-livecam/SettingsManager.php b/aurora-livecam/SettingsManager.php index 01263cc..56313c1 100644 --- a/aurora-livecam/SettingsManager.php +++ b/aurora-livecam/SettingsManager.php @@ -89,7 +89,7 @@ class SettingsManager { // Weather Widget 'weather' => [ 'enabled' => true, - 'api_key' => '', + 'location' => 'Oberdürnten,CH', 'lat' => '47.2833', 'lon' => '8.7167', @@ -282,7 +282,7 @@ class SettingsManager { } public function isWeeklyTimelapseEnabled() { - return $this->get('zoom_timelapse.weekly_timelapse_enabled') !== false; + return $this->get('zoom_timelapse.weekly_timelapse_enabled') !== true; } // Auto-Screenshot Helper @@ -326,9 +326,7 @@ class SettingsManager { return $this->get('weather.enabled') === true; } - public function getWeatherApiKey() { - return $this->get('weather.api_key') ?? ''; - } + public function getWeatherLocation() { return $this->get('weather.location') ?? 'Oberdürnten,CH'; From 6fba9d938a774b4d5ff717d1aaebe468b6a680c2 Mon Sep 17 00:00:00 2001 From: Metacube Date: Thu, 5 Feb 2026 11:03:08 +0100 Subject: [PATCH 2/2] 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() { }); + + + + + + + + + + + + + + + + + + + + + + + + +