UNPKG

homebridge-apc-ups-alert

Version:

Provide information (and alerts) for apcupsd connected Uninterruptible Power Supplies

38 lines 1.64 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.KnownStatus = exports.OptionalKeys = exports.StandardKeys = void 0; var StandardKeys; (function (StandardKeys) { // Hostname of the computer running apcupsd StandardKeys["HostName"] = "HOSTNAME"; // UPS name from configuration file (dumb) or EEPROM (smart) StandardKeys["UpsName"] = "UPSNAME"; // UPS model derived from UPS information StandardKeys["Model"] = "MODEL"; // Status (see KnownStatus) StandardKeys["Status"] = "STATUS"; })(StandardKeys = exports.StandardKeys || (exports.StandardKeys = {})); var OptionalKeys; (function (OptionalKeys) { // Remaining runtime left on battery as estimated by the UPS OptionalKeys["RemainingRuntime"] = "TIMELEFT"; // Current battery capacity charge (percentage) OptionalKeys["BatteryLevel"] = "BCHARGE"; // UPS firmware version OptionalKeys["FirmwareVersion"] = "FIRMWARE"; // UPS serial number OptionalKeys["SerialNumber"] = "SERIALNO"; // UPS data of manufacture OptionalKeys["ManufactureDate"] = "MANDATE"; // APC model information OptionalKeys["ApcModel"] = "APCMODEL"; // UPS internal temperature in degrees Celcius OptionalKeys["InternalTemperature"] = "ITEMP"; })(OptionalKeys = exports.OptionalKeys || (exports.OptionalKeys = {})); var KnownStatus; (function (KnownStatus) { KnownStatus["CommunicationLost"] = "COMMLOST"; KnownStatus["OnLine"] = "ONLINE"; KnownStatus["OnBattery"] = "ONBATT"; })(KnownStatus = exports.KnownStatus || (exports.KnownStatus = {})); //# sourceMappingURL=dataModels.js.map