feat(home): aggiungi 'Camera fronte robot' a Stato dispositivi

Ping anche services.front_camera in /api/home/status. Etichetta nuwa
rinominata in 'Nuwa-HP60C (camera polso)' per chiarezza ora che ci sono
due camere distinte.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
Adriano Dal PastroandClaude Opus 4.7 committed 2026-05-20 16:04:56 +02:00
1 parent 848cd962c4
commit 3284cd0424
1 file changed
+9 -1
+9 -1
View File
@@ -63,10 +63,18 @@ def status() -> dict[str, Any]:
if nuwa.get("base_url"): if nuwa.get("base_url"):
devices.append({ devices.append({
"key": "nuwa", "key": "nuwa",
"label": "Nuwa-HP60C (camera)", "label": "Nuwa-HP60C (camera polso)",
**_ping("nuwa", nuwa["base_url"], "/api/health", float(nuwa.get("timeout_s", 5.0))), **_ping("nuwa", nuwa["base_url"], "/api/health", float(nuwa.get("timeout_s", 5.0))),
}) })
front = services.get("front_camera") or {}
if front.get("base_url"):
devices.append({
"key": "front_camera",
"label": "Camera fronte robot",
**_ping("front_camera", front["base_url"], "/api/health", float(front.get("timeout_s", 5.0))),
})
marker = services.get("marker_finder") or {} marker = services.get("marker_finder") or {}
if marker.get("base_url"): if marker.get("base_url"):
# marker-finder has no /health; fall back to the root which returns a # marker-finder has no /health; fall back to the root which returns a