Kerbal Alarm Clock#

Provides functionality to interact with the Kerbal Alarm Clock mod. Tested with Kerbal Alarm Clock 3.14.2.7. Provides the following classes:

Example#

The following example creates a new alarm for the active vessel. The alarm is set to trigger after 10 seconds have passed, and display a message.

import { connect } from "@krpc-org/krpc";

const conn = await connect({ name: "Kerbal Alarm Clock Example" });
const kac = conn.kerbalAlarmClock;

const alarm = await kac.createAlarm(
  kac.AlarmType.raw,
  "My New Alarm",
  (await conn.spaceCenter.getUT()) + 10,
);

await alarm.setNotes(
  "10 seconds have now passed since the alarm was created.",
);
await alarm.setAction(kac.AlarmAction.messageOnly);