Sensor Server is an Android app that sends live readings from a phone's built-in sensors to other programs over WebSocket. It suits developers and hobbyists who want to read motion or environmental data from a phone in a browser or another application, without writing native Android code.
A client connects to the phone's address on a chosen port, with the sensor type given in the URL path. Once connected, the client receives the values as a JSON array of floats in its message handler. The project is licensed under GPL-3.0 and the source code is public on GitHub, where the author documents the connection format.
Alternatives to Sensor Server
Products that do a similar job in Developer Tools.
MQTTX
Desktop client for testing and debugging MQTT 5.0 brokers
Insomnia
API client for testing GraphQL, REST, WebSocket, SSE and gRPC endpoints
gotty
Command-line tool that shares a terminal session through a web browser
ttyd
command-line tool that serves a terminal session over a web browser
websocat
Command-line WebSocket client with socat-style piping and proxying
Termux
Terminal emulator for Android with installable packages
Windows Terminal
Command-line terminal app and console host for Windows
Puppeteer
Node.js library to control Chrome and Firefox through a JavaScript API