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:
1 parent
848cd962c4
commit
3284cd0424
1 file changed
+9
-1
@@ -63,10 +63,18 @@ def status() -> dict[str, Any]:
|
||||
if nuwa.get("base_url"):
|
||||
devices.append({
|
||||
"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))),
|
||||
})
|
||||
|
||||
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 {}
|
||||
if marker.get("base_url"):
|
||||
# marker-finder has no /health; fall back to the root which returns a
|
||||
|
||||
Reference in new issue
Block a user