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