08-19-2020 14:38
08-19-2020 14:38
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 Answer09-02-2020 07:43
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.
09-02-2020 07:43
Sorry, the device doesn't have a hook into Alarms, and the Web API is only related to tracker devices.
Best Answer