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.json
using something like ajax? Is there no way to get the alarms locally on the device?
09-02-2020 07:43
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.