Sleep analysis

can i use blynk app for the purpose of viewing the sleep analysis data just as the mi band 2 uses the mi fit app ,
can blynk be a replacement for the mi fit app ?

Blynk is a powerful GUI interface for use with networked MCUs (Arduinos, ESPs, RPi, etc.)… if you can interface something with the MCU to get data, you can see and possibly manipulate said data with Blynk.

Read through the Help Center pages to get a better understanding of the power of Blynk.

http://help.blynk.cc/

I’m not sure how the mi band works, but the cheap fitness tracker watch I use only synchronises with the app when you open the app and refresh the data.
I guess that if you used an MCU with BLE capability to talk to the watch you could possibly extract the data directly, but if you did that too often then the battery life of the watch would be reduced.

To display sleep data and other information in Blynk you’d want to use the SuperChart widget, but that requires data to be pushed to the Blynk server in real time. If you wanted to be able to view sleep data with a minimum resolution of say 5 minutes then you’d need to query the watch every 5 minutes to obtain the latest data then push it up to the Blynk server.
I did see a discussion on here the other day about “wouldn’t it be nice to be able push historical data up to the server retrospectively”. A nice potential feature, but I’m not sure if it’s on the development roadmap. Without that facility you’d be stuck with polling the watch for data on a regular basis, which doesn’t seem practical.

Pete.

thanks Gunner

thanks Pete