RuView icon indicating copy to clipboard operation
RuView copied to clipboard

Where do I enter the WebSocket URL?

Open munozluis1015 opened this issue 8 months ago • 2 comments

Image Where do I enter the WebSocket URL? (It currently says simulated because I haven't connected the boards yet, I want to figure this out first)

munozluis1015 avatar Mar 13 '26 17:03 munozluis1015

WebSocket URL Configuration

The WebSocket URL connects the browser UI to your aggregator/sensing server. Here's how to set it up:

If running the Rust sensing server locally:

The default WebSocket URL is:

ws://localhost:3000/ws

Start the server first:

cd rust-port/wifi-densepose-rs
cargo run -p wifi-densepose-sensing-server

If running the Desktop app (Tauri):

The Desktop app handles the connection internally. Use the Settings panel to configure:

  • Data source: ESP32 USB or Network
  • If Network: enter your aggregator IP

If using the hosted demo at ruvnet.github.io:

The hosted demo runs in simulated mode by default since it can't connect to your local ESP32. To use real data:

  1. Run the sensing server locally: cargo run -p wifi-densepose-sensing-server
  2. Open http://localhost:3000/ui/pose-fusion.html (NOT the GitHub Pages version)
  3. The local version auto-connects to ws://localhost:3000/ws

In the UI:

Look for a connection settings icon (gear/cog) in the top bar or side panel. Enter:

ws://<YOUR_PC_IP>:3000/ws

If you're running everything on the same machine, use ws://localhost:3000/ws.

The "simulated" label will change to "connected" once the WebSocket handshake succeeds and real CSI data starts flowing.

ruvnet avatar Mar 14 '26 14:03 ruvnet

Answered by @agale above: In the Observatory UI (ui/observatory.html), click the settings icon (top right) → DATA tab → enter ws://<your-server-ip>:3000/ws/sensing in the WS URL field → set Data Source to Live WebSocket.

The pose-fusion UI (ui/pose-fusion.html) also has a WebSocket URL entry field.

If you haven't connected boards yet, the UI will show 'simulated' which is expected — it switches to live data once WebSocket connects.

ruvnet avatar Mar 15 '26 16:03 ruvnet