This project provides a Python API compatible with several Bluetooth low energy (BLE) smartbands.
it's specifically designed to work with Lenovo HX03W but should work with other similiar smartbands.
Supported Features:
- HRM
- Clock Settings
- Battery Status
- Pedometer
Missing Features
- Anti-sleep function
- instant messaging Notifications
- Alarm Settings
- Vibration Settings
I will add more features as soon I discover how they works (reverse engineering)
set_time(current_time, h12)
permits to adjust date and time using a datetime.datetime
object. (timezone is required)
Override handlers of hx03w
class to implement your own events
-
handle_beep()
called when 'FindMyPhone' function is activated from smartband. the master device (e.g: smartphone) should vibrate or emit sound making itself easier to find. -
handle_hrm_read(self,value)
usetrigger_hrm()
to perform an HRM read, and expect a response inside this handler. -
handle_battery_read(self,value)
usetrigger_battery()
to get the battery charge state, and expect a response inside this handler. -
handle_pedometer_read(self,value)
usetrigger_pedometer()
to get the battery charge state, and expect a response inside this handler.
see examples/ for more details