updated each second

Signed-off-by: Ebbe Baß <ebbe.bass>
main
Ebbe Baß 2024-02-17 23:08:31 +01:00
parent 83004d35fa
commit bedbf76b5f
1 changed files with 2 additions and 0 deletions

View File

@ -158,6 +158,8 @@ def tube_index_updater():
TUBE_INDEX = cur.fetchall()
cur.close()
mqtt_client.publish("pxm/tube_index", str(TUBE_INDEX))
print("Updated tube index")
time.sleep(1)
if __name__ == "__main__":