mirror of
https://github.com/l5yth/potato-mesh.git
synced 2026-07-21 09:02:54 +02:00
data: fix typo in nodes schema to fix #1
This commit is contained in:
+1
-2
@@ -68,11 +68,10 @@ def snapshot_nodes_periodically(iface: MeshInterface, every_sec=30):
|
||||
|
||||
def main():
|
||||
iface = SerialInterface(devPath="/dev/ttyACM0")
|
||||
# optional: also update on any incoming nodeinfo packets via onReceive if you want
|
||||
threading.Thread(target=snapshot_nodes_periodically, args=(iface, 30), daemon=True).start()
|
||||
print("Nodes ingestor running. Ctrl+C to stop.")
|
||||
try:
|
||||
while True: time.sleep(60)
|
||||
while True: time.sleep(300)
|
||||
except KeyboardInterrupt:
|
||||
pass
|
||||
|
||||
|
||||
Reference in New Issue
Block a user