From 393412e7f65555949c785c574c2a36d904b585cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sat, 17 Feb 2024 04:20:36 +0100 Subject: [PATCH] fixed results 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, 4 insertions(+), 1 deletion(-) diff --git a/server/app.py b/server/app.py index 2ee60ff..2ede9fb 100644 --- a/server/app.py +++ b/server/app.py @@ -123,8 +123,11 @@ def start_mqtt_publishers(): mqtt_client = connect_mqtt() artnetBindIp = get_eth0_ip() artNet = Artnet.Artnet(BINDIP = artnetBindIp, DEBUG = True, SHORTNAME = "PiXelTubeMaster", LONGNAME = "PiXelTubeMaster", PORT = 6454) + cur = db.cursor() + cur.execute("SELECT mac_address, universe, dmx_address FROM tubes") global result - result = None + result = cur.fetchall() + cur.close() while True: try: # Gets whatever the last Art-Net packet we received is