Description
SensorServer turns an Android phone into a sensor hub. It runs a WebSocket server that streams live data from the phone's sensors to any client that connects, so other programs can read motion, environment, GPS location and touchscreen input from the device. Several WebSocket clients can connect at the same time, and each one picks the sensor it wants. The app lists the sensors the device has in its Available Sensors screen, and the project notes that some undocumented sensors on Qualcomm (QTI) devices are also exposed. To receive data, a client connects to ws://<phone address>/sensor/connect?type=<sensor type>, for example type=android.sensor.accelerometer. Each message is a JSON array of float values. For the accelerometer, values[0] to values[2] are the acceleration on the x, y and z axes, including gravity. Since the app is the server, you need a WebSocket client library in the language you use. The README points to other projects for sensor streaming over MQTT and UDP.…
Highlights
- Streams Android sensors to WebSocket clients
- Several clients connected at once
- Motion, environment, GPS and touch data
- Lists each sensor type in the app
- Data sent as JSON arrays of floats
Ratings & Reviews
No ratings yet
Be the first to rate SensorServer.
People also visit
SensorServer FAQ
What does SensorServer do?
It runs on an Android device as a WebSocket server and streams the phone's sensor data to clients that connect to it.
How do I connect a client?
Connect to ws://<phone address>/sensor/connect?type=<sensor type>. Find the sensor type names under Available Sensors in the app.
What format is the data in?
A JSON array of float values. For the accelerometer, the values are acceleration on the x, y and z axes, including gravity.
Can several clients connect?
Yes. Multiple clients can connect to multiple sensors at the same time.
Do I need anything else?
A WebSocket client library in your programming language, since the app provides the server side.
What are the best SensorServer alternatives?
Popular alternatives to SensorServer include Audivis Relay and AndroidMic. See all SensorServer alternatives





