Service#

Provides functionality to interact with Kerbal Alarm Clock.

GET /kerbal-alarm-clock/available#

Whether Kerbal Alarm Clock is available.

Response JSON Object:
  • value (bool)

GET /kerbal-alarm-clock/alarms#

A list of all the alarms.

Response JSON Object:
  • value (list<KerbalAlarmClock.Alarm>)

POST /kerbal-alarm-clock/alarm-with-name#

Get the alarm with the given name, or null if no alarms have that name. If more than one alarm has the name, only returns one of them.

Request JSON Object:
  • name (string) – Name of the alarm to search for.

Response JSON Object:
  • value (KerbalAlarmClock.Alarm?)

POST /kerbal-alarm-clock/alarms-with-type#

Get a list of alarms of the specified type.

Request JSON Object:
  • type (KerbalAlarmClock.AlarmType) – Type of alarm to return.

Response JSON Object:
  • value (list<KerbalAlarmClock.Alarm>)

POST /kerbal-alarm-clock/create-alarm#

Create a new alarm and return it.

Request JSON Object:
  • type (KerbalAlarmClock.AlarmType) – Type of the new alarm.

  • name (string) – Name of the new alarm.

  • ut (double) – Time at which the new alarm should trigger.

Response JSON Object:
  • value (KerbalAlarmClock.Alarm)