
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
This is a Node.js module that can be used to send commands to an Art-Net node.
connect, set channel 1 to 255, disconnect.
var artnet = require('artnet');
artnet.connect('172.16.23.15');
artnet.set(1, 255, function () {
artnet.close();
});
The set method can set multiple channels at once:
Use an array to set subsequent channels...
// set channel 100 to 10, channel 101 to 20 and channel 102 to 30
artnet.set(100, [10, 20, 30]);
...or use an object to set multiple channels.
// set channel 100 to 255 and channel 200 to 127
artnet.set({100: 255, 200: 127});
connect( host, port, universe, interval )
6454
)0
)set( )
if callback is set to boolean false
data will only be written to the internal buffer without sending. This makes sense if you wanna make sure that multiple set commands are sent simultaneously or if you're using the interval option.
send( callback )
sends buffered data to the Art-Net node. callback is called with no arguments.
close( )
closes the connection
Copyright (c) 2014 hobbyquaker hq@ccu.io
Art-Net™ Designed by and Copyright Artistic Licence Holdings Ltd.
FAQs
Module to send commands to an Art-Net node
The npm package artnet receives a total of 229 weekly downloads. As such, artnet popularity was classified as not popular.
We found that artnet demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.