DEV Community

Kaspars Dambis
Kaspars Dambis

Posted on • Originally published at kaspars.net on

Sensor Pilot: A Progressive Web App (PWA) for Bluetooth Sensors

Did you know that Chrome-based browsers (including on Android phones) can interact with Bluetooth Low Energy (LE) sensors and devices without any additional software using the Web Bluetooth API? Bundle that with the off-line features enabled by the progressive web apps (PWA) and we get a real application using pure web technologies and standards.

Visit the Sensor Pilot app →

I started playing with the Web Bluetooth API after getting the Xiaomi Mijia clock that also also measures air temperature and relative humidity:

Xiaomi Mijia clock with temperature and humidity sensor and Bluetooth LE interface
Xiaomi Mijia clock with temperature and humidity sensor and Bluetooth LE interface.

Turns out that reading sensor values and updating the time is relatively simple as long as you can get your head around the Bluetooth LE communication patterns such as GATT services and characteristics.

Screenshots

Sensor Pilot Progressive Web App for Bluetooth Sensors on Desktop
Google Chrome web browser connected to Aranet4.

Sensor Pilot Progressive Web App for Bluetooth Sensors as an app
Web app view of the progressive web app connected to Aranet4.

AWS Q Developer image

Build your favorite retro game with Amazon Q Developer CLI in the Challenge & win a T-shirt!

Feeling nostalgic? Build Games Challenge is your chance to recreate your favorite retro arcade style game using Amazon Q Developer’s agentic coding experience in the command line interface, Q Developer CLI.

Participate Now

Top comments (0)

DevCycle image

Fast, Flexible Releases with OpenFeature Built-in

Ship faster on the first feature management platform with OpenFeature built-in to all of our open source SDKs.

Start shipping

Make It Shine: Tips to Polish your User Interface

Judges are saying it loud and clear: polish matters. In Part 2, we’re diving into what actually makes an app look clean and complete. We’ll share a practical checklist to help you elevate your build and things to think about in your UI.

Tune in to the full event

DEV is partnering to bring live events to the community. Join us or dismiss this billboard if you're not interested. ❤️