From bedbf76b5f56871d43517589386d75f8109aa4d2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sat, 17 Feb 2024 23:08:31 +0100 Subject: [PATCH] updated each second MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- server/app.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/server/app.py b/server/app.py index b30f367..3bad79c 100644 --- a/server/app.py +++ b/server/app.py @@ -158,6 +158,8 @@ def tube_index_updater(): TUBE_INDEX = cur.fetchall() cur.close() mqtt_client.publish("pxm/tube_index", str(TUBE_INDEX)) + print("Updated tube index") + time.sleep(1) if __name__ == "__main__":