From 4d08075ba7d880151d62500c387fffb28c71f620 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sat, 17 Feb 2024 02:53:41 +0100 Subject: [PATCH] fixed dmx_address var content 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, 1 insertion(+), 1 deletion(-) diff --git a/server/app.py b/server/app.py index 20c4a53..04f89b9 100644 --- a/server/app.py +++ b/server/app.py @@ -127,7 +127,7 @@ def start_mqtt_publishers(): cur.execute("SELECT mac_address, universe, dmx_address FROM tubes") result = cur.fetchall() for row in result: - dmx_address = int(dmx_address) + dmx_address = int(result[2]) if artNetPacket.universe == int(row[1]): #Define RGB values per pixel p1_r = dmxPacket[dmx_address+0+0]