Initial commit: Resensys site status app

This commit is contained in:
lakshay
2026-06-29 13:32:41 -04:00
commit 6617c33f23
8 changed files with 4658 additions and 0 deletions

11
check_ingest.py Normal file
View File

@@ -0,0 +1,11 @@
import redis
r = redis.Redis(host="172.31.25.139", port=6380, db=0, decode_responses=True)
site_id = "49-59" # replace with the SID inferred from filename
print("Devices:", r.smembers(f"site:{site_id}:devices"))
print("LocalAddressMap:", r.hgetall(f"site:{site_id}:localAddressMap"))
for did in r.smembers(f"site:{site_id}:devices"):
print(f"Device {did} latest:", r.hgetall(f"device:{did}:latest"))