From e7ececf5376631d99b74ef3255642f2a6bcde597 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sat, 17 Feb 2024 02:40:03 +0100 Subject: [PATCH] get tubes from sql 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, 3 insertions(+) diff --git a/server/app.py b/server/app.py index 1bcda33..de17cef 100644 --- a/server/app.py +++ b/server/app.py @@ -124,7 +124,10 @@ def start_mqtt_publishers(): #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 + cur.execute("SELECT id, mac_address, universe, dmx_address FROM tubes") + result = cur.fetchall() + print(result) # topic = "PiXelTubes/"+str(artNetPacket.universe)