Sublimis / UrbanBiker

Urban Biker issue tracker and Knowledge Base
https://urban-bike-computer.com/
18 stars 4 forks source link

Add automatic continous heart rate start/stop for Mi Band 2 #7

Open Niflheim123 opened 6 years ago

Niflheim123 commented 6 years ago

Hello, I have a Mi Band 2 (a cheap fitness bracelet with an optic heart rate sensor). I do not enable by default continuous heart rate monitor. To use the data the sensor provides in Urban Biker, I have to switch to a different app, enable Continuous mode and switch back . After the ride is done I have to switch it off again. I was wondering if this app can send to the armband Continuous mode on/off depending on start/stop ride. Maybe this will help: https://medium.com/machine-learning-world/how-i-hacked-xiaomi-miband-2-to-control-it-from-linux-a5bd2f36d3ad . Also I am willing to help with testing.

Niflheim123 commented 6 years ago

So Urban Biker detects the band, but I believe it requires the heart rate to be queried every 12 seconds (I used ble tool(an app in the store) and send 150101 to the armband Heart rate sensor (like in the link provided) and it started measuring).