08-19-2020 14:38
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post

Jogger
1
0
0
08-19-2020 14:38
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
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.json
using something like ajax? Is there no way to get the alarms locally on the device?

1 REPLY 1
09-02-2020 07:43
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post


Fitbit Developer
2266
575
1162
09-02-2020 07:43
- Mark as New
- Bookmark
- Subscribe
- Permalink
- Report this post
Sorry, the device doesn't have a hook into Alarms, and the Web API is only related to tracker devices.

