suprabathk / CLI-Interface-For-Mi-Band

Communicate with your Mi band from Raspberry pi
25 stars 9 forks source link

Command Line Interface for Mi Band

Library to work with Xiaomi Mi Band

Library based on Yojesh Ojha's library:-

https://github.com/yogeshojha/MiBand3

https://medium.com/@yogeshojha/i-hacked-xiaomi-miband-3-and-here-is-how-i-did-it-43d68c272391

Yojesh Ojha's library is amazing. But there are quite a few bugs and out-dated. So, I fixed the bugs and made some minor changes.

The Heart rate feature seems to glitchy even after some fixes. (I am working on it!) Please report any bugs.

Run

Install dependencies

sudo pip install -r requirements.txt

Find out your Mi Band 3 MAC address

sudo hcitool lescan

Run this to connect to the device

sudo python main.py

If you are having problems enter: (BLE can glitch sometimes)

sudo hciconfig hci0 reset