Real-time Accelerometer Data Streaming
To join a room, navigate to:
Example: https://vec4.net/test-org/test-room
Navigate to a room URL to start streaming accelerometer data from your device.
Download and set up the Python client to receive accelerometer data:
⬇ Download Python Client1. Extract and set up virtual environment:
unzip crowd-source-client.zip && cd crowd-source-client
python3 -m venv venv
source venv/bin/activate2. Install dependencies:
pip install -r requirements.txt3. Run the client:
python client.py --room org-slug/room-slug --server https://ws.vec4.net4. Send messages to phones:
Type your message and press Enter to send an alert to all phones in the roomNote: This script provides an example of how to connect to the websocket server where all accelerometer data is aggregated from mobile devices. It demonstrates sending control messages back to phones for interface changes (e.g., switching to a 1-button interface, changing to color page) and settings updates (e.g., adjusting frequency).
Each room is isolated. Multiple phones and Python clients can join the same room to share data.
Web App: vec4.net | Socket Server: ws.vec4.net