brianmmcclain / artnet-node Goto Github PK
View Code? Open in Web Editor NEWArt-Net server and client module for Node.JS
Art-Net server and client module for Node.JS
Hi Brian,
this looks nice. Could you please add some examples, that i can jump on your code. I would like to use it and add some features.
Currently, i build a OpenSource HArdware ArtNet Matrix Wall, and need a good lib to test some code-ideas. Your code looks like a good start.
Thanx a lot.
Hello I have code working on my windows machine, but when porting to raspberry pi it doesn't do anything, do you have an idea why ?
my code ๐
var artnetclient = require('./node_modules/artnet-node/lib/artnet_client');
var client = artnetclient.createClient('192.168.0.10', 6454);
client.send([0,255,0,0]);
The different names are confusing, according to the artnet the final port address is comprised of the following:
Bit 15 | Bits 14-8 | Bits 7-4 | Bits 3-0 |
---|---|---|---|
0 | Net | Sub-Net | Universe |
Would make it easier if it followed the official names...
If you are using the artnet-node server, when you receive DMX data, the "Universe" variable will show you the wrong universe number.
The problem is on the file /lib/artnet_server.js, at line 29.
You need to replace:
var universe = (data[14] * 256) + data[15];
with:
var universe = data[14] + data[15];
Why is the net/subnet/universe hard coded in the client ? Would seem useful to be able to choose which universe to target....
Thanks !
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.