Abstract
The user chosen name for this instance.
This can be changed just before configUpdated
is called
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
Optional
callback: SharedUdpSocketMessageCallbackAbstract
destroyAbstract
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
handleAbstract
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.
Save an updated configuration object
The new config object
Set the action definitions for this instance
The action definitions
Promise which resolves upon success, or rejects if the variable no longer exists
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.
Rest
...actionIds: string[]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.
Rest
...feedbackIds: string[]The feedbackIds 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.
Rest
...feedbackIds: string[]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