From 1dd6b570c058c198d924c0c53ca6b72a691cbe31 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sun, 18 Feb 2024 00:49:45 +0100 Subject: [PATCH] new 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, 2 insertions(+), 3 deletions(-) diff --git a/server/app.py b/server/app.py index ad87944..9db9d32 100644 --- a/server/app.py +++ b/server/app.py @@ -116,19 +116,18 @@ def mqtt_publisher(data_queue): artNet = Artnet.Artnet(BINDIP = artnetBindIp, DEBUG = True, SHORTNAME = "PiXelTubeMaster", LONGNAME = "PiXelTubeMaster", PORT = 6454) while True: tube_index = data_queue.get() - print("Queue data received: "+str(tube_index)) try: # Gets whatever the last Art-Net packet we received is artNetPacket = artNet.readPacket() # Make sure we actually *have* a packet if artNetPacket is not None: - print(1) #Checks to see if the current packet is for the specified DMX Universe dmxPacket = artNetPacket.data # Create MQTT topic based on the universe and channel if tube_index is not None: - print(2) + print(1) for index_row in tube_index: + print(2) if artNetPacket.universe == int(index_row[1]): dmx_address = int(index_row[2]) #Define RGB values per pixel