Hello, is there a hook I can attach a block of code/routine for when a certain alarm goes off?
Something similar to this?
display.addEventListener("alarm", () => {
// do workout
<workout_code>
<heart_rate_monitoring>
});
I found a post on how to access the alarms here....and...the alarms are in the web API, but will I need to call:
GET https://api.fitbit.com/1/user/[user-id]/devices/tracker/[tracker-id]/alarms.jsonusing something like ajax? Is there no way to get the alarms locally on the device?
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.