Implement synchronized LED wall output

This commit is contained in:
TJY
2026-07-16 12:52:42 +08:00
parent 8590fafac1
commit fe906e028b
11 changed files with 335 additions and 283 deletions
+2 -1
View File
@@ -31,6 +31,7 @@ async def admin_ws(websocket: WebSocket) -> None:
type=CommandType.CLOCK_PONG,
payload={
"client_send_ms": raw.get("client_send_ms"),
"client_send_perf_ms": raw.get("client_send_perf_ms"),
"server_time_ms": epoch_ms(),
},
),
@@ -79,6 +80,7 @@ async def output_ws(websocket: WebSocket, tile_id: str) -> None:
payload={
"node_id": raw.get("node_id") or node_id,
"client_send_ms": raw.get("client_send_ms"),
"client_send_perf_ms": raw.get("client_send_perf_ms"),
"server_time_ms": epoch_ms(),
},
),
@@ -111,4 +113,3 @@ async def output_ws(websocket: WebSocket, tile_id: str) -> None:
except WebSocketDisconnect:
sync.disconnect_node(node_id)
await hub.disconnect("outputs", websocket)