Nut - v0.0.9
Preparing search index...
UPS
Class UPS
Index
Constructors
constructor
Properties
description
name
Methods
get
Command
Description
get
Num
Logins
get
Variable
get
Variable
Description
get
Variable
Enum
get
Variable
Range
get
Variable
Type
list
Clients
list
Commands
list
Variables
list
Writeable
Variables
login
set
Variable
Constructors
constructor
new
UPS
(
client
:
NUTClient
,
name
:
string
,
description
:
string
)
:
UPS
Parameters
client
:
NUTClient
name
:
string
description
:
string
Returns
UPS
Properties
Readonly
description
description
:
string
Readonly
name
name
:
string
Methods
get
Command
Description
getCommandDescription
(
command
:
string
)
:
Promise
<
string
>
Parameters
command
:
string
Returns
Promise
<
string
>
get
Num
Logins
getNumLogins
()
:
Promise
<
number
>
Returns
Promise
<
number
>
get
Variable
getVariable
(
variable
:
nutVariablesNames
)
:
Promise
<
string
>
Parameters
variable
:
nutVariablesNames
Returns
Promise
<
string
>
get
Variable
Description
getVariableDescription
(
variable
:
nutVariablesNames
)
:
Promise
<
string
>
Parameters
variable
:
nutVariablesNames
Returns
Promise
<
string
>
get
Variable
Enum
getVariableEnum
(
variable
:
nutVariablesNames
)
:
Promise
<
string
[]
>
Parameters
variable
:
nutVariablesNames
Returns
Promise
<
string
[]
>
get
Variable
Range
getVariableRange
(
variable
:
nutVariablesNames
)
:
Promise
<
string
[]
>
Parameters
variable
:
nutVariablesNames
Returns
Promise
<
string
[]
>
get
Variable
Type
getVariableType
(
variable
:
nutVariablesNames
,
)
:
Promise
<
{
type
:
"RW"
|
"ENUM"
|
"STRING"
|
"RANGE"
|
"NUMBER"
}
&
Record
<
string
,
unknown
>
,
>
Parameters
variable
:
nutVariablesNames
Returns
Promise
<
{
type
:
"RW"
|
"ENUM"
|
"STRING"
|
"RANGE"
|
"NUMBER"
}
&
Record
<
string
,
unknown
>
,
>
list
Clients
listClients
()
:
Promise
<
string
[]
>
Returns
Promise
<
string
[]
>
list
Commands
listCommands
()
:
Promise
<
string
[]
>
Returns
Promise
<
string
[]
>
list
Variables
listVariables
()
:
Promise
<
Partial
<
Record
<
nutVariablesNames
,
string
>
>
>
Returns
Promise
<
Partial
<
Record
<
nutVariablesNames
,
string
>
>
>
list
Writeable
Variables
listWriteableVariables
()
:
Promise
<
Record
<
string
,
string
>
>
Returns
Promise
<
Record
<
string
,
string
>
>
login
login
()
:
Promise
<
string
>
Returns
Promise
<
string
>
Remarks
You probably shouldn’t send this command unless you are upsmon, or a upsmon replacement.
set
Variable
setVariable
(
variable
:
nutVariablesNames
,
value
:
unknown
)
:
Promise
<
string
>
Parameters
variable
:
nutVariablesNames
value
:
unknown
Returns
Promise
<
string
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
description
name
Methods
get
Command
Description
get
Num
Logins
get
Variable
get
Variable
Description
get
Variable
Enum
get
Variable
Range
get
Variable
Type
list
Clients
list
Commands
list
Variables
list
Writeable
Variables
login
set
Variable
Nut - v0.0.9
Loading...
Remarks
You probably shouldn’t send this command unless you are upsmon, or a upsmon replacement.