get tubes from sql

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-17 02:40:03 +01:00
parent 8e784289c4
commit e7ececf537
1 changed files with 3 additions and 0 deletions

View File

@ -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)