/Band

Primary LanguageTypeScriptMIT LicenseMIT

Mi Band 4 Library

Interact with your Mi Band 4 right in browser using Web Bluetooth API! Based on the protocol uncovered in this repo.

Features

  • Get device info.
  • Get status (steps, etc.) (realtime too)
  • Get/set current time.
  • Send Notifications/Calls.
  • Set music and receive music events.
  • Heart rate measurement (realtime/onetime).
  • Setting alarms.
  • Fetch Activity Data.
  • Update Watchface.
  • Update Firmware (unsafe).

Obtaining Auth Key

You can obtain Auth Key using the method mentioned here: https://github.com/argrento/huami-token.

Usage

This is hosted on Deno Deploy here.

License

Check LICENSE for more info.

Copyright 2021 @ DjDeveloperr