fixed results

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-17 04:20:36 +01:00
parent b49736c421
commit 393412e7f6
1 changed files with 4 additions and 1 deletions

View File

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