10-25-2017 04:51
10-25-2017 04:51
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?
Answered! Go to the Best Answer.
10-26-2017 13:24
10-26-2017 13:24
@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.
10-25-2017 07:19
10-25-2017 07:19
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-
10-25-2017 18:05
10-25-2017 18:05
@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 ?
10-26-2017 13:24
10-26-2017 13:24
@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.
12-27-2017 22:37
12-27-2017 22:37
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
12-29-2017 01:58
12-29-2017 01:58
Sure, if you tell me what you need, I'll gladly help you out.
12-29-2017 09:47
12-29-2017 09:47
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?
12-29-2017 18:16
12-29-2017 18:16
You can see some of that in the tutorials on my website: http://OziByte.com/