Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

artnet

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

artnet

Module to send commands to an Art-Net node

  • 0.0.2
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
55
decreased by-72.36%
Maintainers
1
Weekly downloads
 
Created
Source

artnet

NPM version

This is a Node.js module that can be used to send commands to an Art-Net node.

Usage

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}); 

Methods

  • connect( host, port, universe, interval )

    • port (default 6454)
    • universe (default 0)
    • interval (if a number >= 50 is set, data will be send to the Art-Net node in given microsecond intervals)
  • set( )

    • set( number channel, number value, function callback )
    • set( number channel, array values, function callback )
    • set( object channelvalues, function callback )

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

Further Reading

License

Copyright (c) 2014 hobbyquaker hq@ccu.io

MIT License

Credits

Art-Net™ Designed by and Copyright Artistic Licence Holdings Ltd.

Keywords

FAQs

Package last updated on 19 Aug 2014

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc