Node Red node for the DMX4ALL NanoDMX USB interface - adapted and simplified from node-dmx package https://www.npmjs.com/package/dmx. Requires the serialport module.
npm install node-red-contrib-nanodmxA simple Node-Red driver for the NanaDMX USB interface by DMX4ALL.
Requires Node-Red
$ npm i node-red-contrib-nanodmx
* Sends DMX data through the DMX4ALL NanoDMX device.
* Adapted, simplified, hacked from the existing node-dmx package.
* Requires the serialport nodejs library. Similarly, the serialport needs to be assigned, COM3, COM4, or /dev/ttyS0, etc.
For example, if you want to assign a value of 255 to channel 7, then you send this payload: {"7": 255}. If you want to address several channels at the same time, expand the object to {"7": 255, "11": 73, "12": 0}, for example.
You can address a maximum of 512 channels (1 - 512), but it is not necessary to do this every time. It is sufficient to only address those channels that you want to change.