removed db request at script start

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-17 16:26:38 +01:00
parent 395f3880a2
commit 92305a7712
1 changed files with 5 additions and 5 deletions

View File

@ -43,11 +43,11 @@ db.autocommit(True)
mqtt_client_id = "PiXelTubeMaster-"+wlan_mac_address mqtt_client_id = "PiXelTubeMaster-"+wlan_mac_address
cur = db.cursor() # cur = db.cursor()
cur.execute("SELECT mac_address, universe, dmx_address FROM tubes") # cur.execute("SELECT mac_address, universe, dmx_address FROM tubes")
global TUBE_INDEX # global TUBE_INDEX
TUBE_INDEX = cur.fetchall() # TUBE_INDEX = cur.fetchall()
cur.close() # cur.close()
# Function to register a tube in the database # Function to register a tube in the database
def register_tube(mac_address): def register_tube(mac_address):