From 60e942431c1a3a03a8432d2b6be40e88691435cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sat, 2 Jul 2022 00:51:29 +0200 Subject: [PATCH] added keyboardinterrupt publish MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- main.py | 1 + 1 file changed, 1 insertion(+) diff --git a/main.py b/main.py index 896c431..4d7aaf0 100644 --- a/main.py +++ b/main.py @@ -223,6 +223,7 @@ if __name__ == '__main__': time.sleep(1) except KeyboardInterrupt: + client.publish("server-rack-led/power", "False") client.loop_stop() setColor(strip, Color(0,0,0)) GPIO.cleanup()