Abstract
The user chosen name for this instance.
This can be changed just before configUpdated
is called
Request all feedbacks of the specified types to be checked for changes
The feedback types to check
Request the specified feedback instances to be checked for changes
The ids of the feedback instances to check
Abstract
configCalled when the configuration is updated.
The new config object
Create a shared udp socket.
This can be neccessary for modules where the device/software sends UDP messages to a hardcoded port number. In those
cases if you don't use this then it won't be possible to use multiple instances of you module.
The api here is a subset of the Socket
from the builtin node:dgram
, but with Companion hosting the sockets instead of the module.
Type of udp to use
Optional
callback: SharedUdpSocketMessageCallbackMessage received callback
Create a shared udp socket.
This can be neccessary for modules where the device/software sends UDP messages to a hardcoded port number. In those
cases if you don't use this then it won't be possible to use multiple instances of you module.
The api here is a subset of the Socket
from the builtin node:dgram
, but with Companion hosting the sockets instead of the module.
Optional
callback: SharedUdpSocketMessageCallbackMessage received callback
Abstract
destroyClean up the instance before it is destroyed.
Abstract
getCreates the configuration fields for web config
Get the last set value of a variable from this connection
id of the variable
The value
Optional
handleHandle HTTP requests from Companion
partial request object from Express
Optional
handleHandle request from Companion to start/stop recording actions
whether recording is now running
Abstract
initMain initialization function called once the module is OK to start doing things.
Write a line to the log
The level of the message
The message text to write
Send an osc message from the system osc sender
destination ip address
destination port number
message path
mesage arguments
Parse and replace all the variables in a string Note: You must not use this for feedbacks, as your feedback will not update when the variable changes. There is an alternate version of this supplied to each of the action/feedback callbacks that tracks usages properly and will retrigger the feedback when the variables change.
The text to parse
The string with variables replaced with their values
Add an action to the current recording session
The action to be added to the recording session
Optional
uniquenessId: stringA unique id for the action being recorded. This should be different for each action, but by passing the same as a previous call will replace the previous value.
Set the action definitions for this instance
The action definitions
Set the feedback definitions for this instance
The feedback definitions
Set the peset definitions for this instance
The preset definitions
Set the variable definitions for this instance
The variable definitions
Set the values of some variables
The new values for the variables
Call subscribe on all currently known placed actions. It can be useful to trigger this upon establishing a connection, to ensure all data is loaded.
The actionIds to call subscribe for. If no values are provided, then all are called.
Call subscribe on all currently known placed feedbacks. It can be useful to trigger this upon establishing a connection, to ensure all data is loaded.
The feedbackIds to call subscribe for. If no values are provided, then all are called.
Call unsubscribe on all currently known placed actions. It can be useful to do some cleanup upon a connection closing.
The actionIds to call subscribe for. If no values are provided, then all are called.
Call unsubscribe on all currently known placed feedbacks. It can be useful to do some cleanup upon a connection closing.
The feedbackIds to call subscribe for. If no values are provided, then all are called.
Update the status of this connection
The status level
Optional
message: null | string
Create an instance of the module