Question How to get Heart Rate from MiFit locally stored data

tinybird

New member
Joined
Jul 24, 2021
Messages
1
Likes
0
Points
1
#1
Hi there,

I'm currently using a Mi Band 4 and have a rooted phone through which I was able to get access to my locally stored MiFit data and get most of the band's data using sqlite3 and this.
However, was not able to get the Heart rate information that is automatically captured based on frequency like every 30mins or 10mins, as it was stored in BLOB format (I think). Converting the stored hex bytes to decimal only gives values that don't seem to look like what I was expecting which makes me think either I'm doing something wrong or that the values are encrypted and stored. Need some tweakers/hackers/experts on the subject matter here for some advice on how to decipher this.

dcj7cm6akt071.png?width=1178&format=png&auto=webp&s=40ac4c508414eec4583e67cd9c5be062ee2a160d

sample HR data stored in BLOB

I know there is a Heart rate sharing option from the app itself which I don't want to use as it requires installing another app and then getting the data from there. Instead, I'd prefer getting it from MiFit data itself if possible.
This URL used to work earlier to download data but it doesn't anymore for me. All I get now is empty CSV files with header rows. Hence, decided to take it on my own and take control of my data without relying on external apps/services as much as I can. Through Tasker, I have set up auto-backup of the MiFit data which runs every day. Only need this final piece of the puzzle to be put in place to complete it.

Any piece of advice is greatly appreciated.
 

Trusted Store

Members online

No members online now.

Our Telegram Channel

Which color of official strap would you like to buy for your Mi Band 3?

  • Black

    Votes: 2,154 52.8%
  • Deep Blue

    Votes: 1,197 29.4%
  • Redish Orange

    Votes: 727 17.8%

Forum statistics

Threads
2,409
Messages
40,537
Members
211,854
Latest member
Harp
Top