From eda46875fca88d77e39bbebcda7133cc6ed684cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Mon, 19 Feb 2024 16:08:21 +0100 Subject: [PATCH] fixed tube index eval MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ebbe Baß --- server/app.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server/app.py b/server/app.py index 85a05d6..e953aa3 100644 --- a/server/app.py +++ b/server/app.py @@ -117,7 +117,7 @@ def mqtt_publisher(ti_receiver): artNet = Artnet.Artnet(BINDIP = artnetBindIp, DEBUG = True, SHORTNAME = "PiXelTubeMaster", LONGNAME = "PiXelTubeMaster", PORT = 6454) while True: try: - tube_index = literal_eval(ti_receiver.recv()) + tube_index = ti_receiver.recv() # Gets whatever the last Art-Net packet we received is artNetPacket = artNet.readPacket() # Make sure we actually *have* a packet @@ -126,6 +126,7 @@ def mqtt_publisher(ti_receiver): dmxPacket = artNetPacket.data # Create MQTT topic based on the universe and channel if tube_index is not None: + tube_index = literal_eval(tube_index) for index_row in tube_index: if artNetPacket.universe == int(index_row[1]): dmx_address = int(index_row[2])