Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Best option to save heart rate in a database?

I'm creating an app in angular, and I need the hear rate. I don't know which is the best solution to implement to get the heart rate from the Fitbit sense and save the heart rate in real time. Any ideas??

Best Answer
0 Votes
4 REPLIES 4

Send heart rate readings from watch to companion, and then from companion to a server using fetch() or WebSocket. (WebSocket may be better suited to real-time data).

I have no idea about the angular side. If your app can't act as a server to receive the data directly, it will need to access it from an intermediate server app that you'll need to develop.

Peter McLennan
Gondwana Software
Best Answer
0 Votes

Is there any example?

Best Answer
0 Votes

You could adapt 'Accelerometer Fetcher' from here, but it doesn't try to do real-time streaming. For that, you won't want to batch your readings and you should consider using a WebSocket. Heart rate is easier to send than accelerometer data because there's much less of it; you won't need to do it in binary.

Peter McLennan
Gondwana Software
Best Answer
0 Votes

hello, can anyone help me with my project? its related to this topic, i can pay. thanks

Best Answer
0 Votes