Skip to content

A python bluetooth data reader for the Onewheel (supporting Gemini firmware, and later).

Notifications You must be signed in to change notification settings

kariudo/onewheel-bluetooth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

onewheel-bluetooth

A python bluetooth data reader for the Onewheel (supporting Gemini firmware, and later). This is meant to be a quick example of how to connect and obtain data from the board.

The backend library for bluetooth/gatt interaction is rewritten now with bleak due to a deprecation/lack of ownership of pygatt.

Requirements

Python 3 is required, and the dependencies are included in the requirements.txt.

> pip install -r requirements.txt

Usage

Just run it with your board's address as the first paramater:

> python3 readdata.py XX:XX:XX:XX:XX:XX

You can include -v to get all of the verbose debug output as well.

You should get output like the following:

INFO:root:Battery Remaining: 79%
INFO:root:Lifetime Odometer: 258 Miles
INFO:root:Trip Odometer: 0 Miles

Credits

Thanks to @beeradmoore for the help figuring out the md5 chunks for the serial stream reasponse via the ponewheel issue: ponewheel/android-ponewheel#86 (comment)

About

A python bluetooth data reader for the Onewheel (supporting Gemini firmware, and later).

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages