vshymanskyy / miband-js

MiBand 2 JS library for Node.JS and HTML5 (WebBluetooth)
GNU General Public License v3.0
341 stars 69 forks source link

Support for Xiaomi MiBand 3 #20

Open bartofactory opened 6 years ago

bartofactory commented 6 years ago

Does this repo project work on Xiaomi MiBand 3? Is it already tested?

navarrocantero commented 6 years ago

Obviusly not !

fsureau commented 6 years ago

Can you provide any help to know which info are needed to adapt this project to the MiBand 3? Thanks

Epictek commented 6 years ago

@fsureau after testing it with Mi Band 3, It seems to work for the most part. The protocals are pretty much the same anyways.

Requesting Bluetooth Device...
Connecting to the device...
Connected
HW ver: 0.18.3.2  SW ver: 1.5.0.2
Battery: 90%
Time: 03/09/2018, 04:33:00
Pedometer: {"steps":15,"distance":10,"calories":1}
Notifications demo...
Tap MiBand button, quick!
OK, nevermind ;)
Heart Rate Monitor (single-shot)
Argh! Timeout

Button tap seems has no way to activate (no physical button on MiBand 3) Single shot seems Heart Rate times out, not sure why this is. Continous Heart rate works fine.

Intergrating additional MiBand 3 features could be done with the help of the gadgetbridge. https://github.com/Freeyourgadget/Gadgetbridge/blob/master/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huami/miband3/MiBand3Service.java https://github.com/Freeyourgadget/Gadgetbridge/blob/74f47c8e2e68d27e08a294d4e8c3304e881be648/app/src/main/java/nodomain/freeyourgadget/gadgetbridge/devices/huami/HuamiService.java

dj0001 commented 5 years ago

i have added script to make selfies (works with the device search button)
https://dj0001.github.io/miband3-selfie/

cosismo commented 5 years ago

Out of the box, I cannot get the BPM of my mi band 3, neither single-shot nor continuous. After a firmware update via the official Android App, and except for the button, everything seems to work fine: Connecting to the device... Connected HW ver: 0.23.19.49 SW ver: 2.4.0.12 Serial: xxxxxxxxxxxx Battery: 15% Time: 2019-6-13 21:05:58 Pedometer: {"steps":41,"distance":27,"calories":1} Notifications demo... Tap MiBand button, quick! OK, nevermind ;) Heart Rate Monitor (single-shot) Result: 74 Heart Rate Monitor (continuous for 30 sec)... Heart Rate: 74 Heart Rate: 73 Heart Rate: 72 Heart Rate: 71 Heart Rate: 72 Heart Rate: 71 Heart Rate: 71 Heart Rate: 69 Heart Rate: 70 Finished.