Output#
Functions#
disable_output#
Disable the output of a specified protocol from the controller. Propagates to all controllers in a project.
disable_output(params, callback)
params is expected to be an object with the following attributes:
Attribute |
Value Type |
Description |
Value Example |
|---|---|---|---|
|
string |
Protocol to disable. Options: |
|
enable_output#
Enable the output of a specified protocol from the controller. Propagates to all controllers in a project.
enable_output(params, callback)
params is expected to be an object with the following attributes:
Attribute |
Value Type |
Description |
Value Example |
|---|---|---|---|
|
string |
Protocol to enable. Options: |
|
get_output#
Returns the lighting levels being output by the queried controller.
get_output(universeKey, callback)
Returns an object with the same attributes as in the HTTP GET response.
universeKey can be a string (see Universe Key String Format) or it can be an object with the following attributes:
Attribute |
Value Type |
Description |
|---|---|---|
|
integer |
Constants defined in query.js are: |
|
integer |
Required unless |
|
integer |
Only required if |
|
integer |
Only required if |
|
integer |
Only required if |
|
integer |
Only required if |
|
integer |
Only required if |
For example:
Query.get_output({
protocol: KINET,
kinet_port: 1,
kinet_power_supply_num: 1
}, u => {
console.log(u)
}
)
Query.get_output({
protocol: DMX,
index: 1
}, u => {
console.log(u)
}
)
Query.get_output("dmx:1", u => {
console.log(u)
})
Universe Key String Format#
A universe key string takes the form:
protocol:indexfor protocolsdmx,pathport,sacn,art-net;protocol:kinetPowerSupplyNum:kinetPortfor protocolkinet;protocol:remoteDeviceType:remoteDeviceNumfor protocolrio-dmx;protocol:remoteDeviceType:remoteDeviceNum:portfor protocolsedn,edn-spi.
Where:
kinetPowerSupplyNumis an integer;kinetPortis an integer;remoteDeviceTypecan berio08,rio44orrio80,edn10oredn20;remoteDeviceNumis an integer;portis an integer.
For example:
"dmx:1""rio-dmx:rio44:1"