Skip to content

Instantly share code, notes, and snippets.

@gabrielstuff
Last active July 13, 2020 13:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gabrielstuff/bb3b69926c32cf5164467b1a45fc7c47 to your computer and use it in GitHub Desktop.
Save gabrielstuff/bb3b69926c32cf5164467b1a45fc7c47 to your computer and use it in GitHub Desktop.
Windows 10 node-dmx getting started
{
"_title": "Light DMX Dashboard",
"server": {
"listen_port": 8080,
"listen_host": "::",
"_uid": "www-data",
"_gid": "www-data"
},
"presets": [
{
"label": "White",
"values": {
"office": { "1": 16, "2": 255, "3": 0, "4": 255, "5": 255, "6": 255, "16": 16, "17": 255, "18": 0, "19": 255, "20": 255, "21": 255 }
}
}
],
"universes": {
"office": {
"output": {
"driver": "enttec-usb-dmx-pro",
"device": "/dev/cu.usbserial-6AVNHXS8"
},
"devices": [
{
"type": "eurolite-led-bar",
"address": 1,
"name": "Behind the TV",
"_comment1": "name is optional and is shown above the sliders if sets"
},
{
"type": "eurolite-led-bar",
"address": 16
},
{
"type": "showtec-multidim2",
"address": 32
},
{
"type": "stairville-led-par-56",
"address": 64
},
{
"type": "stairville-led-par-56",
"address": 70
},
{
"type": "stairville-led-par-56",
"address": 76
},
{
"type": "oppsk-cob-uv-par",
"address": 100
},
{
"type": "lixda-par12-led",
"address": 110
},
{
"type": "lixda-par12-led",
"address": 120
},
{
"type": "lixda-par12-led",
"address": 130
},
{
"type": "lixda-par12-led",
"address": 140
}
]
}
},
"_animPresets": []
}
  1. git clone git@github.com:node-dmx/dmx-web.git
  2. npm install
  3. Identify serial port
  • Open the Device Manager by pressing the Windows Key + R. Type devmgmt.msc and press Enter.
  • Expand the Ports (COM & LPT) section.
  • Should be arround COM5 or COM6
  1. Replace in your configuration file the device address for serial communication :
 "output": {
        "driver": "enttec-usb-dmx-pro",
        "device": "COM5"
      }
  1. run node dmx-web.js -c dmx-web.json

  2. Go to : http://localhost:8080/ to check that everything runs.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment