updates to status

This commit is contained in:
Alex
2026-02-03 23:44:21 -06:00
parent 72d38edd3d
commit b476309f8e

View File

@@ -199,10 +199,7 @@ def get_vision_status() -> str:
total = len(events) total = len(events)
camera_breakdown = ", ".join(f"{cam}: {count}" for cam, count in by_camera.items()) camera_breakdown = ", ".join(f"{cam}: {count}" for cam, count in by_camera.items())
if unannotated == total: return f"{camera_breakdown}"
return f"Vision: {total} motion events ({camera_breakdown})"
else:
return f"Vision: {total} motion events ({camera_breakdown}), {total - unannotated} annotated"
except Exception as e: except Exception as e:
return f"Vision: error ({e})" return f"Vision: error ({e})"
@@ -215,7 +212,6 @@ def format_status_for_wakeup() -> str:
Returns format like: Returns format like:
[ENV] Basement: 69.8F, 24.5% humidity, 24.6 lux [ENV] Basement: 69.8F, 24.5% humidity, 24.6 lux
[WHO] Foxy: present (87%, moving) [WHO] Foxy: present (87%, moving)
[MSG] Matrix: no new messages
[CAM] Vision: 12 motion events (basement: 12) [CAM] Vision: 12 motion events (basement: 12)
""" """
lines = [] lines = []