From 236291fa2aadadf5a2ac45c67f07b965a3e97d58 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Wed, 14 Feb 2024 19:24:34 +0100 Subject: [PATCH] added debugging MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- server/app.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server/app.py b/server/app.py index 9800758..75be5e5 100644 --- a/server/app.py +++ b/server/app.py @@ -127,11 +127,15 @@ def start_mqtt_publishers(universe_count): try: # Gets whatever the last Art-Net packet we received is artNetPacket = artNet.readPacket() + print(1) # Make sure we actually *have* a packet if artNetPacket is not None and artNetPacket.data is not None: + print(2) # Checks to see if the current packet is for the specified DMX Universe if artNetPacket.universe in universe_list: + print(3) dmxPacket = artNetPacket.data + print(4) # channel = 1 # for value in artNetPacket.data: # # Create MQTT topic based on the universe and channel @@ -143,6 +147,7 @@ def start_mqtt_publishers(universe_count): for i in range(512): # Lists in python start at 0, print(dmxPacket[i-1], end=" ") + print(5) except Exception as e: print(f"Error in universes {universe_list}: {e}")