Cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Event subscriber for alarm?

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?

 

 

 

Best Answer
0 Votes
1 REPLY 1

Sorry, the device doesn't have a hook into Alarms, and the Web API is only related to tracker devices.

Best Answer
0 Votes