User Alarm
Alarm information:
Sleep quality - alarm will go off when sleep quality reach this level.
Minutes since midnight - alarm time in minutes since midnight (e.g. for alarm with alarm time 7:15 this value must be 7 * 60 + 15 = 435).
Type - alarms may be by quality or by rem phase (see Time window duration). For alarms by quality uses sleep quality value, for alarms by rem phase - minutes since midnight.
Time window duration - in how minutes earlier than alarm time (minutes since midnight) alarm by rem phase may go off if it will better or easier for user to wake up.
Repeat every week - if this value is
falsealarm will go off only once and fortruealarm will go off on every day in days.Days - set of days when alarm will go off. (see Repeat every week)
Enabled - if this is
falsealarm won't go off
NOTE: do NOT use constructor. Use Alarms.create for creating new alarm.
See also
Types
Properties
If this value is false alarm will go off only once and for true alarm will go off on every day in days.
This value specifies in how minutes earlier than alarm time (minutes since midnight) alarm by rem phase may go off if it will better or easier for user to wake up.
Functions
Remove alarm day. NOTE: set Repeat every week in true before call to Alarms.add or Alarms.update or this value will be ignored.