From 3afa65a1b7e3ca9fd1af86463acddde215a65804 Mon Sep 17 00:00:00 2001 From: Mike Cifelli <1836280-mike-cifelli@users.noreply.gitlab.com> Date: Sat, 7 Jan 2023 09:38:31 -0500 Subject: [PATCH] Clear garage display on error --- chutney/garage/garage_display.py | 2 ++ chutney/runner.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/chutney/garage/garage_display.py b/chutney/garage/garage_display.py index 0b3614a..efd7a98 100644 --- a/chutney/garage/garage_display.py +++ b/chutney/garage/garage_display.py @@ -25,6 +25,8 @@ class GarageDisplay: if self.isGarageStateValid(state): self.showState(state) + else: + self.symbolDisplay.clearRow(self.topRow, rowHeight=4) def getGarageState(self): try: diff --git a/chutney/runner.py b/chutney/runner.py index b932f41..151c613 100644 --- a/chutney/runner.py +++ b/chutney/runner.py @@ -25,7 +25,7 @@ except ImportError: unicorn.rotation(180) -WEATHER_UPDATE_INTERVAL_IN_SECONDS = 10 +WEATHER_UPDATE_INTERVAL_IN_SECONDS = 60 GARAGE_UPDATE_INTERVAL_IN_SECONDS = 30 DISPLAY_UPDATE_INTERVAL_IN_SECONDS = 0.5 CONFIG_FILE = 'chutney.cfg'