Trying to register Enttec Open DMX driver gives error

1 week ago 14
ARTICLE AD BOX

I'm trying to connect my Enttec Open DMX USB to my code using the 'dmx' library, but it gives me an error when I try to register it. I am aware that I asked a similar question a few months ago that gave the same error, however now that I have the physical device, I thought the issue might be fixed, but it is not. Here is my code:

const DMX = require('dmx'); const dmx = new DMX(); dmx.registerDriver('driver', 'enttec-open-usb-dmx'); dmx.addUniverse('one', 'driver');

This should register the driver, but instead I get this error:

this.universes[name] = new this.drivers[driver](deviceId, options); ^ TypeError: this.drivers[driver] is not a constructor

To me it looks like it's an issue with the library but I'm sure I did something wrong, just not sure what.

Read Entire Article