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

Best Practices when reading sensor date on clock face

ANSWERED

So I finally designed a clock face that I wanted I terms of data that I want without having to touch and flip through it. Among it is the heart rate at the moment, steps and even calories burnt. I saw the best practices for HRM is to call hrm.stop when done using the sensor data. I currently have it set to run always. My steps and calories are updated when the display comes on. My question is, if I have the steps update every second using I tick and always use the hrm data, will it consume more battery? 

Best Answer
1 BEST ANSWER

Accepted Solutions

@FlyBoyJIt wrote:

Now this may be a silly question but if I stop monitoring the heart rate calling .stop when the display turns off, it doesn't stop monitoring the heart rate right. It just stops making that data available to the clock face correct ?

Correct.

View best answer in original post

Best Answer
7 REPLIES 7

Yes, you need to stop it when you're not using it.

 

https://dev.fitbit.com/guides/sensors/heart-rate/#peeking-the-current-heart-rate

 

You could do this using the Display API `onchange` event. https://dev.fitbit.com/reference/device-api/display/#interface-display-

Best Answer
0 Votes

@JonFitbit wrote:

Yes, you need to stop it when you're not using it.

 

https://dev.fitbit.com/guides/sensors/heart-rate/#peeking-the-current-heart-rate

 

You could do this using the Display API `onchange` event. https://dev.fitbit.com/reference/device-api/display/#interface-display-


Ok great. Thats what I had in my code right now. Now this may be a silly question but if I stop monitoring the heart rate calling .stop when the display turns off, it doesn't stop monitoring the heart rate right. It just stops making that data available to the clock face correct ?

 

 

Best Answer
0 Votes

@FlyBoyJIt wrote:

Now this may be a silly question but if I stop monitoring the heart rate calling .stop when the display turns off, it doesn't stop monitoring the heart rate right. It just stops making that data available to the clock face correct ?

Correct.

Best Answer

would you mind sharing your code? I've been trying for a couple days to do just that with my own png in the background. I only have the clock on top but no other stats  or even date. I'm using Fitbit Studio

Best Answer
0 Votes

Sure, if you tell me what you need, I'll gladly help you out.

Best Answer
0 Votes

I also would like to see the code. I'm looking to get the date, time, heart rate, and steps. I'm also very new to coding so could you tell me everything you did?

Best Answer
0 Votes

You can see some of that in the tutorials on my website: http://OziByte.com/

Best Answer
0 Votes