Service#

Provides functionality to interact with Kerbal Alarm Clock.

KerbalAlarmClock.available: boolean#

Whether Kerbal Alarm Clock is available.

Attribute:

Read-only, cannot be set

KerbalAlarmClock.alarms: List#

A list of all the alarms.

Attribute:

Read-only, cannot be set

staticmethod KerbalAlarmClock.alarm_with_name(name: string): KerbalAlarmClock.Alarm | nil#

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

Parameters:

name – Name of the alarm to search for.

staticmethod KerbalAlarmClock.alarms_with_type(type: KerbalAlarmClock.AlarmType): List#

Get a list of alarms of the specified type.

Parameters:

type – Type of alarm to return.

staticmethod KerbalAlarmClock.create_alarm(
    type: KerbalAlarmClock.AlarmType,
    name: string,
    ut: number
): KerbalAlarmClock.Alarm#

Create a new alarm and return it.

Parameters:
  • type – Type of the new alarm.

  • name – Name of the new alarm.

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