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.
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
@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.
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
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
@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
Fitbit Developers oversee the SDK and API forums. We're here to answer questions about Fitbit developer tools, assist with projects, and make sure your voice is heard by the development team.
@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.
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