parent
5bb1f9865f
commit
9dc593bfdf
|
@ -179,6 +179,7 @@ def start_mqtt_publishers():
|
||||||
def update_tube_index():
|
def update_tube_index():
|
||||||
while True:
|
while True:
|
||||||
time.sleep(2)
|
time.sleep(2)
|
||||||
|
cur = db.cursor()
|
||||||
cur.execute("SELECT mac_address, universe, dmx_address FROM tubes")
|
cur.execute("SELECT mac_address, universe, dmx_address FROM tubes")
|
||||||
global result
|
global result
|
||||||
result = cur.fetchall()
|
result = cur.fetchall()
|
||||||
|
|
Loading…
Reference in New Issue