Global

Methods

clientRequest(client, name, params, cb) → {promise}

Source:

Generic RRCS request

Parameters:
Name Type Description
client object

xml-rpc client connection

name string

xml-rpc request name

params array

array of parameters for this request ['TransKey', ...]

cb function

callback

Returns:

resolve: {val}, reject: {err}

Type
promise

RRCS_Server(local, remote, cb)

Source:

RRCS_Server Events

Parameters:
Name Type Description
local obj

{ip: str, port: int}

remote obj

{ip: str, port: int}

cb obj

object of callback functions

Type Definitions

getGPInputStateCb(TransKey, state)

Source:
Parameters:
Name Type Description
TransKey string

Transaction Key

state bool

Input Gain

getGPOutputStateCb(TransKey, state)

Source:
Parameters:
Name Type Description
TransKey string

Transaction Key

state bool

Input Gain

getInputGainCb(TransKey, gain)

Source:
Parameters:
Name Type Description
TransKey string

Transaction Key

gain int

Input Gain

getObjectsCb(TransKey, ports, conferences, groups, ifbs, logic, gpio, users, audiopatches, clientCards)

Source:
Parameters:
Name Type Description
TransKey string

Transaction Key

ports array

{LongName, ObjectID}

conferences array

{LongName, ObjectID}

groups array

{LongName, ObjectID}

ifbs array

{LongName, ObjectID}

logic object

{srcs: [{LongName, ObjectID}], dests: [{LongName, ObjectID}]}

gpio object

{inputs: [{LongName, ObjectID}], outputs: [{LongName, ObjectID}]}

users array

{LongName, ObjectID}

audiopatches array

{LongName, ObjectID}

clientCards array

{ObjectID}

getOutputGainCb(TransKey, gain)

Source:
Parameters:
Name Type Description
TransKey string

Transaction Key

gain int

Input Gain

getStateCb(TransKey, state)

Source:
Parameters:
Name Type Description
TransKey string

Transaction Key

state string

['working', 'standby']

getVersionCb(TransKey, version)

Source:
Parameters:
Name Type Description
TransKey string

Transaction Key

version string

RRCS Version Number

getXpStatusCb(TransKey, xpActive)

Source:
Parameters:
Name Type Description
TransKey string

Transaction Key

xpActive boolean

State of XP

getXpVolumeCb(TransKey, singleVolume, confVolume)

Source:
Parameters:
Name Type Description
TransKey string

Transaction Key

singleVolume int

Volume for a point to point XP

confVolume int

Volume for a conference XP

isConnectedToArtistCb(TransKey, isConnected)

Source:
Parameters:
Name Type Description
TransKey string

Transaction Key

isConnected boolean

RRCS is currently connected to Artist

standardCallback

Source:

standardCallback

Events

ClientFailed

Source:

clientFailed notification

Returns:

params: [TransKey: str, Net: int, Node: int, slot: Int]

Type
array

ClientFailedCleared

Source:

clientFailedCleared notification

Returns:

params: [TransKey: str, Net: int, Node: int, slot: Int]

Type
array

ConfigurationChange

Source:

configuratoinChange notification

ConnectArtistFailed

Source:

connectArtistFailed notification

Returns:

params: [TransKey: str, GatewayState: str]

Type
array

ConnectArtistRestored

Source:

connectArtistRestored notification

Returns:

params: [TransKey: str, GatewayState: str]

Type
array

CrosspointChange

Source:

crosspointChange notification

Returns:

params: [TransKey: str, XP_count: int, XPs: {"XP#x": [src.net, src.node, src.port, dest.net, dest.node, dest.port, active]}]

Type
array

DownstreamFailed

Source:

downstreamFailed notification

Returns:

params: [TransKey: str, Net: int, Node: int]

Type
array

DownstreamFailedCleared

Source:

downstreamFailedCleared notification

Returns:

params: [TransKey: str, Net: int, Node: int]

Type
array

GatewayShutdown

Source:

gatewayShutdown notification

GetAlive

Source:

getAlive Ping request from RRCS

gpInputChange

Source:

gpInputChange notification

Returns:

params: [TransKey: str, net: int, node: int, port: int, slot: int, gpio: int, state: bool]

Type
array

LogicSourceChange

Source:

logicSourceChange notification

Returns:

params: [TransKey: str, Object ID: int, state: bool]

Type
array

NodeControllerFailed

Source:

nodeControllerFailed notification

Returns:

params: [TransKey: str, Net: int, Node: int]

Type
array

NodeControllerReboot

Source:

nodeControllerReboot notification

Returns:

params: [TransKey: str, Net: int, Node: int]

Type
array

PortActive

Source:

portActive notification

Returns:

params: [TransKey: str, Net: int, Node: int, port: Int]

Type
array

PortInactive

Source:

portInactive notification

Returns:

params: [TransKey: str, Net: int, Node: int, port: Int]

Type
array

SendString

Source:

sendString notification

Returns:

params: [TransKey: str, string: str]

Type
array

SendStringOff

Source:

sendString notification

Returns:

params: [TransKey: str, string: str]

Type
array

UpstreamFailed

Source:

upstreamFailed notification

Returns:

params: [TransKey: str, Net: int, Node: int]

Type
array

UpstreamFailedCleared

Source:

upstreamFailedCleared notification

Returns:

params: [TransKey: str, Net: int, Node: int]

Type
array