Constructors
constructor
- new UPS(client, name, description): UPS
Parameters
- client: NUTClient
- name: string
- description: string
Returns UPS
Properties
Readonly
description
description: string
Methods
getCommandDescription
- getCommandDescription(command): Promise<string>
Returns Promise<string>
getNumLogins
- getNumLogins(): Promise<number>
Returns Promise<number>
getVariable
- getVariable(variable): Promise<string>
Returns Promise<string>
getVariableDescription
- getVariableDescription(variable): Promise<string>
Returns Promise<string>
getVariableEnum
- getVariableEnum(variable): Promise<string[]>
Returns Promise<string[]>
getVariableRange
- getVariableRange(variable): Promise<string[]>
Returns Promise<string[]>
getVariableType
- getVariableType(variable): Promise<{
type:
| "RW"
| "ENUM"
| "STRING"
| "RANGE"
| "NUMBER";
} & Record<string, unknown>> Returns Promise<{
type:
| "RW"
| "ENUM"
| "STRING"
| "RANGE"
| "NUMBER";
} & Record<string, unknown>>
listClients
- listClients(): Promise<string[]>
Returns Promise<string[]>
listCommands
- listCommands(): Promise<string[]>
Returns Promise<string[]>
listWriteableVariables
- listWriteableVariables(): Promise<Record<string, string>>
Returns Promise<Record<string, string>>
login
- login(): Promise<string>
Returns Promise<string>
setVariable
- setVariable(variable, value): Promise<string>
Returns Promise<string>
Remarks
You probably shouldn’t send this command unless you are upsmon, or a upsmon replacement.