add_alarm: Add alarm

Description Usage Arguments

View source: R/device.R

Description

Adds the alarm settings to a given ID for a given device.

Usage

1
2
add_alarm(token, tracker_id, time, weekday, enabled = TRUE,
  recurring = FALSE)

Arguments

token

An OAuth 2.0 token generated by oauth_token()

tracker_id

The ID of the tracker for which data is returned. The tracker-id value is found by get_devices().

time

Time of day that the alarm vibrates with a UTC timezone offset, e.g. 07:15-08:00

weekday

Comma separated list of days of the week on which the alarm vibrates, e.g. MONDAY,TUESDAY

enabled

TRUE or FALSE. If FALSE, alarm does not vibrate until enabled is set to TRUE.

recurring

TRUE or FALSE. If FALSE, the alarm is a single event.


teramonagi/fitbitr documentation built on Jan. 21, 2021, 8:35 p.m.