jonasoreland / runnerup

A open source run tracker
GNU General Public License v3.0
735 stars 273 forks source link

Get heart rate from Xiaomi Mi1S wristband via Gadgetbridge #430

Open ghost opened 8 years ago

ghost commented 8 years ago

The wristband apparently does not support the normal heartrate BLE method but the Gadgetbridge app can get the heartrate.

https://github.com/Freeyourgadget/Gadgetbridge/wiki/Activity-Analysis

The app does not yet have any protocol to share this data with other apps, perhaps a broadcast could be used? Or are there better methods?

cpfeiffer commented 7 years ago

I'm sorry it took us (Gadgetbridge) so long to get back to this topic. What's the preferred way for Runnerup to get the data? We do not have any export to other apps yet, so we're not restricted in our decisions yet.

jonasoreland commented 7 years ago

can't we just re-implement the part of gadgetbridge that gets the data from the wristband ?

or have I misunderstood

/Jonas

On Tue, Feb 28, 2017 at 9:05 PM, Carsten Pfeiffer notifications@github.com wrote:

I'm sorry it took us so long to get back to this topic. What's the preferred way for Runnerup to get the data? We do not have any export to other apps yet, so we're not restricted in our decisions yet.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/jonasoreland/runnerup/issues/430#issuecomment-283146688, or mute the thread https://github.com/notifications/unsubscribe-auth/AABYS3CxKUkiwGJOOVFMMbws9d5MYPdlks5rhH3wgaJpZM4JeQjS .

cpfeiffer commented 7 years ago

Sure, you can do that. You can also reimplement the code for all the Pebbles, the Mi Band 2 and all supported HPlus devices (e.g. Zeband).

Or we can send the data to you, as CSV or whatever.

gerhardol commented 7 years ago

@cpfeiffer Gadgetbridge could be a separate "sensor". I have no preferred format. One way is just to add a TCP/IP socket, reading raw values.

boun commented 6 years ago

I am implementing a contentprovider in Gadgetbridge: https://github.com/Freeyourgadget/Gadgetbridge/pull/1138

and a HR Device in runnerup: https://github.com/boun/runnerup/tree/contentprovider

to do exactly that. At the time of writing I am waiting for a reaction by the GB devs. The code works so far, however at some point the device stops sending measurements.

Here i need input from the GB devs if that is because

screenshot_20180705-162843

I'll keep you posted.

racuna commented 3 years ago

HI, Gadgetbridge now supports "share" an activity. Also have "3rd party realtime HR access" in settigs wich I enabled, but I don't know how this works