runnerup icon indicating copy to clipboard operation
runnerup copied to clipboard

Get heart rate from Xiaomi Mi1S wristband via Gadgetbridge

Open ghost opened this issue 9 years ago • 8 comments

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?

ghost avatar Aug 06 '16 11:08 ghost

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.

cpfeiffer avatar Feb 28 '17 20:02 cpfeiffer

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 [email protected] 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 .

jonasoreland avatar Mar 04 '17 15:03 jonasoreland

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.

cpfeiffer avatar Mar 04 '17 17:03 cpfeiffer

@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.

gerhardol avatar Aug 09 '17 15:08 gerhardol

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

  • I have misunderstood the api
  • There is in error in my code
  • There is a service thread in GB that stops the device from sending
  • My Firmware is cursed

screenshot_20180705-162843

I'll keep you posted.

boun avatar Jul 08 '18 16:07 boun

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

racuna avatar Mar 31 '21 20:03 racuna