ArtNET flow with dashboard control for each channel.
Test setup :
R DMX Ch 1 - G DMX Ch 2 - B DMX Ch 3 - Spot 1 DMX Ch 4 - Spot 2 DMX Ch 5 - Spot 3 DMX Ch 6 -
Enttec Open DMX Ethernet with IP 10.10.4.5
[ | |
{ | |
"id": "a2924e7b.f302b", | |
"type": "function", | |
"z": "c3aed0d3.3ce58", | |
"name": "Set Red", | |
"func": "var Red= msg.payload;\nmsg.payload = {\n buckets: [\n {channel: 1, value: [Red]},\n ]\n};\nreturn msg;", | |
"outputs": 1, | |
"noerr": 0, | |
"x": 700, | |
"y": 301, | |
"wires": [ | |
[ | |
"beb72fce.87d0e" | |
] | |
] | |
}, | |
{ | |
"id": "8b7ea4e8.566388", | |
"type": "ui_slider", | |
"z": "c3aed0d3.3ce58", | |
"name": " RED", | |
"label": "RED", | |
"group": "2d57be57.a88422", | |
"order": 0, | |
"width": 0, | |
"height": 0, | |
"passthru": true, | |
"topic": "", | |
"min": 0, | |
"max": "255", | |
"step": 1, | |
"x": 466, | |
"y": 301, | |
"wires": [ | |
[ | |
"a2924e7b.f302b" | |
] | |
] | |
}, | |
{ | |
"id": "beb72fce.87d0e", | |
"type": "artnet out", | |
"z": "c3aed0d3.3ce58", | |
"name": "Open DMX Ethernet", | |
"address": "10.10.4.5", | |
"port": 6454, | |
"size": 512, | |
"rate": 40, | |
"universe": "0", | |
"x": 1058, | |
"y": 459, | |
"wires": [] | |
}, | |
{ | |
"id": "1b716f.c1ba0e91", | |
"type": "function", | |
"z": "c3aed0d3.3ce58", | |
"name": "Set Green", | |
"func": "var Green= msg.payload;\nmsg.payload = {\n buckets: [\n {channel: 2, value: [Green]},\n ]\n};\nreturn msg;", | |
"outputs": 1, | |
"noerr": 0, | |
"x": 707.5, | |
"y": 366, | |
"wires": [ | |
[ | |
"beb72fce.87d0e" | |
] | |
] | |
}, | |
{ | |
"id": "3594d40e.33df8c", | |
"type": "ui_slider", | |
"z": "c3aed0d3.3ce58", | |
"name": "GREEN", | |
"label": "GREEN", | |
"group": "2d57be57.a88422", | |
"order": 0, | |
"width": 0, | |
"height": 0, | |
"passthru": true, | |
"topic": "", | |
"min": 0, | |
"max": "255", | |
"step": 1, | |
"x": 476.5, | |
"y": 365, | |
"wires": [ | |
[ | |
"1b716f.c1ba0e91" | |
] | |
] | |
}, | |
{ | |
"id": "5e9c2d37.ec0cc4", | |
"type": "function", | |
"z": "c3aed0d3.3ce58", | |
"name": "Set Blue", | |
"func": "var Blue= msg.payload;\nmsg.payload = {\n buckets: [\n {channel: 3, value: [Blue]},\n ]\n};\nreturn msg;", | |
"outputs": 1, | |
"noerr": 0, | |
"x": 695.5, | |
"y": 428, | |
"wires": [ | |
[ | |
"beb72fce.87d0e" | |
] | |
] | |
}, | |
{ | |
"id": "eb33e682.6922c8", | |
"type": "ui_slider", | |
"z": "c3aed0d3.3ce58", | |
"name": " BLUE", | |
"label": "BLUE", | |
"group": "2d57be57.a88422", | |
"order": 0, | |
"width": 0, | |
"height": 0, | |
"passthru": true, | |
"topic": "", | |
"min": 0, | |
"max": "255", | |
"step": 1, | |
"x": 463.5, | |
"y": 429, | |
"wires": [ | |
[ | |
"5e9c2d37.ec0cc4" | |
] | |
] | |
}, | |
{ | |
"id": "b30ef2.9ef1911", | |
"type": "ui_switch", | |
"z": "c3aed0d3.3ce58", | |
"name": "On / Off", | |
"label": "On / Off", | |
"group": "2d57be57.a88422", | |
"order": 0, | |
"width": 0, | |
"height": 0, | |
"passthru": true, | |
"decouple": "false", | |
"topic": "", | |
"style": "", | |
"onvalue": "255", | |
"onvalueType": "str", | |
"onicon": "", | |
"oncolor": "", | |
"offvalue": "false", | |
"offvalueType": "str", | |
"officon": "", | |
"offcolor": "", | |
"x": 223, | |
"y": 364, | |
"wires": [ | |
[ | |
"8b7ea4e8.566388", | |
"3594d40e.33df8c", | |
"eb33e682.6922c8" | |
] | |
] | |
}, | |
{ | |
"id": "973a88d.306c378", | |
"type": "function", | |
"z": "c3aed0d3.3ce58", | |
"name": "Set Spot 1", | |
"func": "var Spot1= msg.payload;\nmsg.payload = {\n buckets: [\n {channel: 4, value: [Spot1]},\n ]\n};\nreturn msg;", | |
"outputs": 1, | |
"noerr": 0, | |
"x": 706, | |
"y": 497, | |
"wires": [ | |
[ | |
"beb72fce.87d0e" | |
] | |
] | |
}, | |
{ | |
"id": "4b3176d4.17b1f8", | |
"type": "ui_slider", | |
"z": "c3aed0d3.3ce58", | |
"name": " Spot 1", | |
"label": "Spot 1", | |
"group": "2d57be57.a88422", | |
"order": 0, | |
"width": 0, | |
"height": 0, | |
"passthru": true, | |
"topic": "", | |
"min": 0, | |
"max": "255", | |
"step": 1, | |
"x": 462, | |
"y": 497, | |
"wires": [ | |
[ | |
"973a88d.306c378" | |
] | |
] | |
}, | |
{ | |
"id": "72e4bd08.a88744", | |
"type": "function", | |
"z": "c3aed0d3.3ce58", | |
"name": "Set Spot 2", | |
"func": "var Spot2= msg.payload;\nmsg.payload = {\n buckets: [\n {channel: 5, value: [Spot2]},\n ]\n};\nreturn msg;", | |
"outputs": 1, | |
"noerr": 0, | |
"x": 703.5, | |
"y": 562, | |
"wires": [ | |
[ | |
"beb72fce.87d0e" | |
] | |
] | |
}, | |
{ | |
"id": "48a48417.0d1fcc", | |
"type": "ui_slider", | |
"z": "c3aed0d3.3ce58", | |
"name": "Spot 2", | |
"label": "Spot 2", | |
"group": "2d57be57.a88422", | |
"order": 0, | |
"width": 0, | |
"height": 0, | |
"passthru": true, | |
"topic": "", | |
"min": 0, | |
"max": "255", | |
"step": 1, | |
"x": 462.5, | |
"y": 561, | |
"wires": [ | |
[ | |
"72e4bd08.a88744" | |
] | |
] | |
}, | |
{ | |
"id": "f3233eb4.ffd73", | |
"type": "function", | |
"z": "c3aed0d3.3ce58", | |
"name": "Set Spot 3", | |
"func": "var Spot3= msg.payload;\nmsg.payload = {\n buckets: [\n {channel: 6, value: [Spot3]},\n ]\n};\nreturn msg;", | |
"outputs": 1, | |
"noerr": 0, | |
"x": 701.5, | |
"y": 624, | |
"wires": [ | |
[ | |
"beb72fce.87d0e" | |
] | |
] | |
}, | |
{ | |
"id": "e510d56b.2f53c8", | |
"type": "ui_slider", | |
"z": "c3aed0d3.3ce58", | |
"name": "Spot 3", | |
"label": "Spot 3", | |
"group": "2d57be57.a88422", | |
"order": 0, | |
"width": 0, | |
"height": 0, | |
"passthru": true, | |
"topic": "", | |
"min": 0, | |
"max": "255", | |
"step": 1, | |
"x": 459.5, | |
"y": 625, | |
"wires": [ | |
[ | |
"f3233eb4.ffd73" | |
] | |
] | |
}, | |
{ | |
"id": "bb6b6c8b.7a2f", | |
"type": "ui_switch", | |
"z": "c3aed0d3.3ce58", | |
"name": "On / Off", | |
"label": "On / Off", | |
"group": "2d57be57.a88422", | |
"order": 0, | |
"width": 0, | |
"height": 0, | |
"passthru": true, | |
"decouple": "false", | |
"topic": "", | |
"style": "", | |
"onvalue": "255", | |
"onvalueType": "str", | |
"onicon": "", | |
"oncolor": "", | |
"offvalue": "false", | |
"offvalueType": "str", | |
"officon": "", | |
"offcolor": "", | |
"x": 219, | |
"y": 560, | |
"wires": [ | |
[ | |
"4b3176d4.17b1f8", | |
"48a48417.0d1fcc", | |
"e510d56b.2f53c8" | |
] | |
] | |
}, | |
{ | |
"id": "2d57be57.a88422", | |
"type": "ui_group", | |
"z": "", | |
"name": "RGB Colour Mix", | |
"tab": "58e94b4b.f3b744", | |
"disp": true, | |
"width": "6" | |
}, | |
{ | |
"id": "58e94b4b.f3b744", | |
"type": "ui_tab", | |
"z": "", | |
"name": "ArtNET / DMX", | |
"icon": "dashboard" | |
} | |
] |