gunnebo-ab / node-red-contrib-artnet

Node-RED node that controls lights via Art-Net
MIT License
8 stars 4 forks source link

no network connection #3

Open fr3gs opened 6 years ago

fr3gs commented 6 years ago

Hi

I'm experimenting with your artnet contrib but it seems my node red is not sending any artnet packages to my node. When I analyze my traffic i see no artnet broadcast coming from my node-red. are there some node-red setting that need to be tweaked perhaps to use your software?

I'm sending this in a function:

msg.payload = { channel: 1, // int: address in [1, 512] value: 255 // int: value in [0, 255] }; return msg;

kind regards and thanks

percyk commented 5 years ago

The function should be as below example you can replace var red with custom values where required :

var Red= msg.payload; msg.payload = {

buckets: [ {channel: 2, value: [Red]}, {channel: 4, value: [Red]}, {channel: 6, value: [Red]}, {channel: 8, value: [Red]}, {channel: 10, value: [Red]}, {channel: 12, value: [Red]}, ] };