Adjust python ingestor interval to 60 seconds (#112)

This commit is contained in:
l5y
2025-09-16 21:07:53 +02:00
committed by GitHub
parent 3b64e829a8
commit 671a910936
2 changed files with 7 additions and 1 deletions
+1 -1
View File
@@ -35,7 +35,7 @@ from google.protobuf.message import Message as ProtoMessage
# --- Config (env overrides) ---------------------------------------------------
PORT = os.environ.get("MESH_SERIAL", "/dev/ttyACM0")
SNAPSHOT_SECS = int(os.environ.get("MESH_SNAPSHOT_SECS", "30"))
SNAPSHOT_SECS = int(os.environ.get("MESH_SNAPSHOT_SECS", "60"))
CHANNEL_INDEX = int(os.environ.get("MESH_CHANNEL_INDEX", "0"))
DEBUG = os.environ.get("DEBUG") == "1"
INSTANCE = os.environ.get("POTATOMESH_INSTANCE", "").rstrip("/")
+6
View File
@@ -96,6 +96,12 @@ def mesh_module(monkeypatch):
sys.modules.pop(module_name, None)
def test_snapshot_interval_defaults_to_60_seconds(mesh_module):
mesh = mesh_module
assert mesh.SNAPSHOT_SECS == 60
def test_node_to_dict_handles_nested_structures(mesh_module):
mesh = mesh_module