From cad5e32c84c9ccac14eb0f4fbf0b5f806f479d53 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Mon, 12 Feb 2024 23:45:37 +0100 Subject: [PATCH] added debug MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- server/app.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/server/app.py b/server/app.py index 7f53815..a9d8c94 100644 --- a/server/app.py +++ b/server/app.py @@ -121,7 +121,7 @@ def mqtt_publisher(universe): while True: dmx_values = artnet.listen() - + print(str(dmx_values)) if dmx_values is not None: for channel, value in enumerate(dmx_values): # Create MQTT topic based on the universe and channel @@ -136,6 +136,7 @@ def mqtt_publisher(universe): def start_mqtt_publishers(universe_count): used_universes = universe_count - 1 + print("universe count: "+str(used_universes)) universes_to_publish = list(range(1, used_universes + 1)) # Create and start a thread for each universe threads = [threading.Thread(target=mqtt_publisher, args=(universe,)) for universe in universes_to_publish] @@ -148,7 +149,7 @@ def start_mqtt_publishers(universe_count): if __name__ == "__main__": start_mqtt_publishers(universe_count) - flask_thread = threading.Thread(target=flask_api()) - flask_thread.start() - flask_thread.join() + # flask_thread = threading.Thread(target=flask_api()) + # flask_thread.start() + # flask_thread.join()