Change weather interval to 15 minutes

As discussed in #26.
This commit is contained in:
Gerard
2022-03-09 15:23:06 +01:00
committed by GitHub
parent 6bdd136891
commit 72ea8a7cfe

View File

@@ -32,11 +32,9 @@ class NsPanelLovelanceUI:
self.api.run_daily(self.update_date, time)
self.update_date("")
# Setup weather callback # TODO: change to a less often callback
time = datetime.time(0, 0, 0)
self.api.run_minutely(self.update_screensaver_weather, time)
self.update_screensaver_weather("")
# Setup weather callback
weather_interval = 15 * 60 # 15 minutes
self.api.run_every(self.update_screensaver_weather, "now", weather_interval)
# set brightness of screensaver
if type(self.config["brightnessScreensaver"]) == int: