diff --git a/README.md b/README.md index f179a52..7173833 100644 --- a/README.md +++ b/README.md @@ -271,13 +271,19 @@ system.stop() ```bash # Health check -curl http://localhost:3000/api/v1/health +curl http://localhost:3000/health # Latest sensing frame -curl http://localhost:3000/api/v1/sensing +curl http://localhost:3000/api/v1/sensing/latest # Vital signs curl http://localhost:3000/api/v1/vital-signs + +# Pose estimation +curl http://localhost:3000/api/v1/pose/current + +# Server info +curl http://localhost:3000/api/v1/info ``` ### 4. Real-time WebSocket @@ -942,6 +948,8 @@ POST /api/v1/model/sona/activate # Activate SONA profile WebSocket: `ws://localhost:8765/ws/sensing` (real-time sensing + vital signs) +> Default ports: HTTP 8080, WS 8765. Docker images remap to 3000/3001 via `--http-port` / `--ws-port`. +
diff --git a/docker/Dockerfile.rust b/docker/Dockerfile.rust index 603cd1b..cb6e781 100644 --- a/docker/Dockerfile.rust +++ b/docker/Dockerfile.rust @@ -43,4 +43,4 @@ EXPOSE 5005/udp ENV RUST_LOG=info ENTRYPOINT ["/app/sensing-server"] -CMD ["--source", "simulated", "--tick-ms", "100", "--ui-path", "/app/ui"] +CMD ["--source", "simulated", "--tick-ms", "100", "--ui-path", "/app/ui", "--http-port", "3000", "--ws-port", "3001"] diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index 311ba66..1932667 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -12,7 +12,7 @@ services: - "5005:5005/udp" # ESP32 UDP environment: - RUST_LOG=info - command: ["--source", "simulated", "--tick-ms", "100", "--ui-path", "/app/ui"] + command: ["--source", "simulated", "--tick-ms", "100", "--ui-path", "/app/ui", "--http-port", "3000", "--ws-port", "3001"] python-sensing: build: