From dfdac3897b78079ae2798dd8d55feda28b2d809e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ebbe=20Ba=C3=9F?= Date: Sat, 17 Feb 2024 17:11:41 +0100 Subject: [PATCH] tube index test 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, 5 insertions(+) diff --git a/server/app.py b/server/app.py index 622f65b..39ecae1 100644 --- a/server/app.py +++ b/server/app.py @@ -43,6 +43,11 @@ db.autocommit(True) mqtt_client_id = "PiXelTubeMaster-"+wlan_mac_address +cur = db.cursor() +cur.execute("SELECT mac_address, universe, dmx_address FROM tubes") +TUBE_INDEX = cur.fetchall() +cur.close() + # Function to register a tube in the database def register_tube(mac_address): cur1 = db.cursor()