Get battery runtime in seconds. Returns NaN if the variable is not supported by the UPS or not a valid number. Throws on other errors (connection errors, access denied, etc.).
Get input voltage. Returns NaN if the variable is not supported by the UPS or not a valid number. Throws on other errors (connection errors, access denied, etc.).
Get UPS load percentage (0-100). Returns NaN if the variable is not supported by the UPS or not a valid number. Throws on other errors (connection errors, access denied, etc.).
Get UPS manufacturer. Returns empty string if the variable is not supported by the UPS. Throws on other errors (connection errors, access denied, etc.).
Check if this client is master for the UPS
Get UPS model name. Returns empty string if the variable is not supported by the UPS. Throws on other errors (connection errors, access denied, etc.).
Get output voltage. Returns NaN if the variable is not supported by the UPS or not a valid number. Throws on other errors (connection errors, access denied, etc.).
Get UPS serial number. Returns empty string if the variable is not supported by the UPS. Throws on other errors (connection errors, access denied, etc.).
Get the current UPS status as an array of ENUTStatus.
The ups.status variable can contain multiple space-separated status codes (e.g., "OL CHRG").
Returns an empty array if the variable is not supported by the UPS.
Check if UPS is on battery power.
Check if UPS is online (mains power).
Optionalparam: stringOptionaloptions: TrackingOptionsOptionaloptions: TrackingOptions
Get battery charge percentage (0-100). Returns NaN if the variable is not supported by the UPS or not a valid number. Throws on other errors (connection errors, access denied, etc.).