Turn an old Android phone into a sensor station using Termux. No root required.
Runs sensor tools (decibel meter, GPS, environment monitoring) on a phone via a kiosk-style web UI served from Termux. Each tool reads hardware sensors through Termux:API and displays results in a browser.
- Android phone (GrapheneOS, stock Android, or any ROM)
- Termux (install from F-Droid, not Play Store)
- Termux:API (companion app for hardware access)
# In Termux on the phone:
pkg install git -y
git clone https://github.com/hamr0/bareapp.git
cd bareapp
bash setup.sh- Decibel meter — real-time sound level monitoring via microphone
Phone (Termux)
└── Node.js HTTP server (server.js)
├── Serves kiosk web UI
├── Calls Termux:API for sensor data
└── tools/
└── decibel.js (one file per tool)
No frameworks, no build step, no Docker. Vanilla JS on both server and client.
Development happens on a laptop. Deploy to phone by git pull or file sync.
See docs/prd.md for the product roadmap and docs/customer-guide.md for detailed setup instructions.