Refactor weather settings and timelapse checks

Removed the weather API key retrieval method and updated the weekly timelapse check logic.
This commit is contained in:
2026-02-05 11:02:36 +01:00
committed by GitHub
parent 5d382db42e
commit 5d9ebbbc3e
+3 -5
View File
@@ -89,7 +89,7 @@ class SettingsManager {
// Weather Widget // Weather Widget
'weather' => [ 'weather' => [
'enabled' => true, 'enabled' => true,
'api_key' => '',
'location' => 'Oberdürnten,CH', 'location' => 'Oberdürnten,CH',
'lat' => '47.2833', 'lat' => '47.2833',
'lon' => '8.7167', 'lon' => '8.7167',
@@ -282,7 +282,7 @@ class SettingsManager {
} }
public function isWeeklyTimelapseEnabled() { public function isWeeklyTimelapseEnabled() {
return $this->get('zoom_timelapse.weekly_timelapse_enabled') !== false; return $this->get('zoom_timelapse.weekly_timelapse_enabled') !== true;
} }
// Auto-Screenshot Helper // Auto-Screenshot Helper
@@ -326,9 +326,7 @@ class SettingsManager {
return $this->get('weather.enabled') === true; return $this->get('weather.enabled') === true;
} }
public function getWeatherApiKey() {
return $this->get('weather.api_key') ?? '';
}
public function getWeatherLocation() { public function getWeatherLocation() {
return $this->get('weather.location') ?? 'Oberdürnten,CH'; return $this->get('weather.location') ?? 'Oberdürnten,CH';