Crowd Source

Real-time Accelerometer Data Streaming

How to Connect

To join a room, navigate to:

https://vec4.net/[org-slug]/[room-slug]

Example: https://vec4.net/test-org/test-room

📱 For Phone Users

Navigate to a room URL to start streaming accelerometer data from your device.

🐍 Example Python Client (Artist Client)

Download and set up the Python client to receive accelerometer data:

⬇ Download Python Client

1. Extract and set up virtual environment:

unzip crowd-source-client.zip && cd crowd-source-client
python3 -m venv venv
source venv/bin/activate

2. Install dependencies:

pip install -r requirements.txt

3. Run the client:

python client.py --room org-slug/room-slug --server https://ws.vec4.net

4. Send messages to phones:

Type your message and press Enter to send an alert to all phones in the room

Note: 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).

🏠 Room System

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