DenonClient
The Denon AVR RPC class.
Table of Contents
-
Methods
- _applyRegex(data)
- _onData(data)
- getBrightness()
- getInput()
- getMute()
- getPower()
- getSurround()
- getVolume()
- getVolume()
- getZone2()
- sendCommand(commandparameter)
- setBrightness(brightnessLevel)
- setInput(inputOptions)
- setMute(muteOptions)
- setPower(powerOptions)
- setSurround(surroundOptions)
- setVolume(volumeOptions)
- setZone2(zone2Options)
Methods
_applyRegex
-
data
Does the RegEx magic.
Parameters:
-
data
string[The incoming data]
Returns:
[Response or undefined]
_onData
-
data
Receives the incoming data. Does some RegEx magic. Calls the defined events and resolves promises.
Parameters:
-
data
string[The incoming data]
getBrightness
()
Promise
Returns the brightness level of the display
Returns:
getInput
()
Promise
Returns the current active input source (TV, DVD, ...) of the Denon AVR.
Returns:
[A response]
getMute
()
Promise
Returns the current mute status of the Denon AVR.
Returns:
[A response]
getPower
()
Promise
Returns the current power status of the Denon AVR.
Returns:
[A response]
getSurround
()
Promise
Returns the current surround mode of the Denon AVR.
Returns:
[A response]
getVolume
()
Promise
Returns the current Denon AVR volume.
Returns:
[A response]
getVolume
()
Promise
Returns the current Denon AVR volume.
Returns:
[A response]
getZone2
()
Promise
Returns the current zone 2 status of the Denon AVR.
Returns:
[A response]
sendCommand
-
command
-
parameter
Sends a command to the Denon AVR
Parameters:
-
command
String[The command]
-
parameter
String[The parameter]
Returns:
[A response]
setBrightness
-
brightnessLevel
Sets the brightness level of the display
Parameters:
-
brightnessLevel
DisplayDimOptions[Off, Low, Mid, High]
Returns:
setInput
-
inputOptions
Sets the active input of the Denon AVR. (TV, DVD, ...). Use {InputOptions}.
Parameters:
-
inputOptions
InputOptions[The input option]
Returns:
[A response]
setMute
-
muteOptions
Sets the mute status of the Denon AVR. (On / Off). Use {MuteOptions}.
Parameters:
-
muteOptions
MuteOptions[The mute option]
Returns:
[A response]
setPower
-
powerOptions
Sets the power mode of the Denon AVR. (On / Standby). Use {PowerOptions}.
Parameters:
-
powerOptions
PowerOptions[The power option]
Returns:
[A response]
setSurround
-
surroundOptions
Sets the surround mode of the Denon AVR. (Dolby, Stereo, ...). Use {SurroundOptions}.
Parameters:
-
surroundOptions
SurroundOptions[The surround option]
Returns:
[A response without any data]
setVolume
-
volumeOptions
Sets the volume of the Denon AVR. Use {VolumeOptions} or a number from 0-98.
80=80(0dB), 00=-0(--dB)(MIN) VolumeOptions.Up / VolumeOptions.Down
Parameters:
-
volumeOptions
VolumeOptions | Number[The volume option]
Returns:
[A response]
setZone2
-
zone2Options
Sets the zone 2 state of the Denon AVR. (On / Off). Use {Zone2Options}.
Parameters:
-
zone2Options
Zone2Options[The zone2 option]
Returns:
[A response]
Events
masterVolumeChanged
Event Payload:
-
volume
ObjectThe current volume
masterVolumeMaxChanged
Event Payload:
-
maxVolume
ObjectThe maximal volume