mirror of
https://github.com/l5yth/potato-mesh.git
synced 2026-08-07 17:33:26 +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
|
||||
|
||||
|
||||
+1
-1
@@ -7,7 +7,7 @@ CREATE TABLE IF NOT EXISTS nodes (
|
||||
short_name TEXT,
|
||||
long_name TEXT,
|
||||
macaddr TEXT,
|
||||
hw_model TEXT,nodes
|
||||
hw_model TEXT,
|
||||
role TEXT,
|
||||
public_key TEXT,
|
||||
is_unmessagable BOOLEAN,
|
||||
|
||||
Reference in New Issue
Block a user