parent
38baa6e87d
commit
b90817b892
|
@ -176,10 +176,11 @@ def start_mqtt_publishers():
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
def update_tube_index():
|
def update_tube_index():
|
||||||
|
while True:
|
||||||
|
time.sleep(2)
|
||||||
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()
|
||||||
time.sleep(2)
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
flask_thread = Process(target=flask_api)
|
flask_thread = Process(target=flask_api)
|
||||||
|
|
Loading…
Reference in New Issue