mirror of
https://github.com/joBr99/nspanel-lovelace-ui.git
synced 2025-12-26 17:34:26 +01:00
Merge branch 'main' into patch-1
This commit is contained in:
@@ -32,10 +32,12 @@ class NsPanelLovelanceUI:
|
||||
self.api.run_daily(self.update_date, time)
|
||||
self.update_date("")
|
||||
|
||||
# Setup weather callback
|
||||
# Setup weather callback - send/update weather information every 10 minutes
|
||||
weather_interval = 15 * 60 # 15 minutes
|
||||
self.api.run_every(self.update_screensaver_weather, "now", weather_interval)
|
||||
|
||||
self.update_screensaver_weather("")
|
||||
|
||||
# set brightness of screensaver
|
||||
if type(self.config["brightnessScreensaver"]) == int:
|
||||
self.current_screensaver_brightness = self.config["brightnessScreensaver"]
|
||||
|
||||
Reference in New Issue
Block a user