Alarm#

Alarm

Represents an alarm. Obtained by calling GET /kerbal-alarm-clock/alarms, POST /kerbal-alarm-clock/alarm-with-name or POST /kerbal-alarm-clock/alarms-with-type.

A Alarm object is passed and returned as its identifier, a number. A path that acts on an object takes it as (id).

GET /kerbal-alarm-clock/alarm/(id)/action#

The action that the alarm triggers.

Note

An alarm that plays a sound has the action "custom". See GET /kerbal-alarm-clock/alarm/(id)/play-sound.

Parameters:
  • id – The identifier of the Alarm object.

Response JSON Object:
  • value (KerbalAlarmClock.AlarmAction)

PUT /kerbal-alarm-clock/alarm/(id)/action#

The action that the alarm triggers.

Note

An alarm that plays a sound has the action "custom". See GET /kerbal-alarm-clock/alarm/(id)/play-sound.

Parameters:
  • id – The identifier of the Alarm object.

Request JSON Object:
  • value (KerbalAlarmClock.AlarmAction) – The new value.

GET /kerbal-alarm-clock/alarm/(id)/margin#

The number of seconds before the event that the alarm will fire.

Parameters:
  • id – The identifier of the Alarm object.

Response JSON Object:
  • value (double)

PUT /kerbal-alarm-clock/alarm/(id)/margin#

The number of seconds before the event that the alarm will fire.

Parameters:
  • id – The identifier of the Alarm object.

Request JSON Object:
  • value (double) – The new value.

GET /kerbal-alarm-clock/alarm/(id)/time#

The time at which the alarm will fire.

Parameters:
  • id – The identifier of the Alarm object.

Response JSON Object:
  • value (double)

PUT /kerbal-alarm-clock/alarm/(id)/time#

The time at which the alarm will fire.

Parameters:
  • id – The identifier of the Alarm object.

Request JSON Object:
  • value (double) – The new value.

GET /kerbal-alarm-clock/alarm/(id)/type#

The type of the alarm.

Parameters:
  • id – The identifier of the Alarm object.

Response JSON Object:
  • value (KerbalAlarmClock.AlarmType)

GET /kerbal-alarm-clock/alarm/(id)/id#

The unique identifier for the alarm.

Parameters:
  • id – The identifier of the Alarm object.

Response JSON Object:
  • value (string)

GET /kerbal-alarm-clock/alarm/(id)/name#

The short name of the alarm.

Parameters:
  • id – The identifier of the Alarm object.

Response JSON Object:
  • value (string)

PUT /kerbal-alarm-clock/alarm/(id)/name#

The short name of the alarm.

Parameters:
  • id – The identifier of the Alarm object.

Request JSON Object:
  • value (string) – The new value.

GET /kerbal-alarm-clock/alarm/(id)/notes#

The long description of the alarm.

Parameters:
  • id – The identifier of the Alarm object.

Response JSON Object:
  • value (string)

PUT /kerbal-alarm-clock/alarm/(id)/notes#

The long description of the alarm.

Parameters:
  • id – The identifier of the Alarm object.

Request JSON Object:
  • value (string) – The new value.

GET /kerbal-alarm-clock/alarm/(id)/remaining#

The number of seconds until the alarm will fire.

Parameters:
  • id – The identifier of the Alarm object.

Response JSON Object:
  • value (double)

GET /kerbal-alarm-clock/alarm/(id)/enabled#

Whether the alarm is enabled. A disabled alarm does not fire.

Parameters:
  • id – The identifier of the Alarm object.

Response JSON Object:
  • value (bool)

PUT /kerbal-alarm-clock/alarm/(id)/enabled#

Whether the alarm is enabled. A disabled alarm does not fire.

Parameters:
  • id – The identifier of the Alarm object.

Request JSON Object:
  • value (bool) – The new value.

GET /kerbal-alarm-clock/alarm/(id)/play-sound#

Whether the alarm plays a sound when it fires.

Note

An alarm that plays a sound has the action "custom". Setting GET /kerbal-alarm-clock/alarm/(id)/action to any other value turns the sound off.

Parameters:
  • id – The identifier of the Alarm object.

Response JSON Object:
  • value (bool)

PUT /kerbal-alarm-clock/alarm/(id)/play-sound#

Whether the alarm plays a sound when it fires.

Note

An alarm that plays a sound has the action "custom". Setting GET /kerbal-alarm-clock/alarm/(id)/action to any other value turns the sound off.

Parameters:
  • id – The identifier of the Alarm object.

Request JSON Object:
  • value (bool) – The new value.

GET /kerbal-alarm-clock/alarm/(id)/triggered#

Whether the alarm has fired. Remains true once the alarm has fired; stream this or use it in an event expression to react to the alarm firing.

Parameters:
  • id – The identifier of the Alarm object.

Response JSON Object:
  • value (bool)

GET /kerbal-alarm-clock/alarm/(id)/repeat#

Whether the alarm will be repeated after it has fired. Only has an effect for alarm types that support repeating (see GET /kerbal-alarm-clock/alarm/(id)/supports-repeat).

Parameters:
  • id – The identifier of the Alarm object.

Response JSON Object:
  • value (bool)

PUT /kerbal-alarm-clock/alarm/(id)/repeat#

Whether the alarm will be repeated after it has fired. Only has an effect for alarm types that support repeating (see GET /kerbal-alarm-clock/alarm/(id)/supports-repeat).

Parameters:
  • id – The identifier of the Alarm object.

Request JSON Object:
  • value (bool) – The new value.

GET /kerbal-alarm-clock/alarm/(id)/supports-repeat#

Whether this alarm’s type supports repeating (see GET /kerbal-alarm-clock/alarm/(id)/repeat).

Parameters:
  • id – The identifier of the Alarm object.

Response JSON Object:
  • value (bool)

GET /kerbal-alarm-clock/alarm/(id)/repeat-period#

The time delay to automatically create an alarm after it has fired. Only has an effect for alarm types that support a repeat period (see GET /kerbal-alarm-clock/alarm/(id)/supports-repeat-period).

Parameters:
  • id – The identifier of the Alarm object.

Response JSON Object:
  • value (double)

PUT /kerbal-alarm-clock/alarm/(id)/repeat-period#

The time delay to automatically create an alarm after it has fired. Only has an effect for alarm types that support a repeat period (see GET /kerbal-alarm-clock/alarm/(id)/supports-repeat-period).

Parameters:
  • id – The identifier of the Alarm object.

Request JSON Object:
  • value (double) – The new value.

GET /kerbal-alarm-clock/alarm/(id)/supports-repeat-period#

Whether this alarm’s type supports a repeat period (see GET /kerbal-alarm-clock/alarm/(id)/repeat-period).

Parameters:
  • id – The identifier of the Alarm object.

Response JSON Object:
  • value (bool)

GET /kerbal-alarm-clock/alarm/(id)/vessel#

The vessel that the alarm is attached to.

Parameters:
  • id – The identifier of the Alarm object.

Response JSON Object:
  • value (SpaceCenter.Vessel)

PUT /kerbal-alarm-clock/alarm/(id)/vessel#

The vessel that the alarm is attached to.

Parameters:
  • id – The identifier of the Alarm object.

Request JSON Object:
  • value (SpaceCenter.Vessel) – The new value.

GET /kerbal-alarm-clock/alarm/(id)/xfer-origin-body#

The celestial body the vessel is departing from.

Parameters:
  • id – The identifier of the Alarm object.

Response JSON Object:
  • value (SpaceCenter.CelestialBody)

PUT /kerbal-alarm-clock/alarm/(id)/xfer-origin-body#

The celestial body the vessel is departing from.

Parameters:
  • id – The identifier of the Alarm object.

Request JSON Object:
  • value (SpaceCenter.CelestialBody) – The new value.

GET /kerbal-alarm-clock/alarm/(id)/xfer-target-body#

The celestial body the vessel is arriving at.

Parameters:
  • id – The identifier of the Alarm object.

Response JSON Object:
  • value (SpaceCenter.CelestialBody)

PUT /kerbal-alarm-clock/alarm/(id)/xfer-target-body#

The celestial body the vessel is arriving at.

Parameters:
  • id – The identifier of the Alarm object.

Request JSON Object:
  • value (SpaceCenter.CelestialBody) – The new value.

POST /kerbal-alarm-clock/alarm/(id)/remove#

Removes the alarm. Any further use of this object throws an exception.

Note

Any further use of this object throws an exception.

Parameters:
  • id – The identifier of the Alarm object.