npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@mysterycode/node-red-sacn

v0.0.4

Published

Implementation of sACN (Streaming ACN) for Node-RED

Downloads

139

Readme

sACN for Node-RED

Simple Implementation of sACN (Streaming ACN) for Node-RED.

Requirements

Required version of Node-RED: v4.0.5

This package requires sacn as library to interact by sACN.

Installation

See the list below for the npm package names, or search npm. To install - either use the manage palette option in the editor, or change to your Node-RED user directory.

cd ~/.node-red
npm install @mysterycode/node-red-sacn

Copyright MysteryCode and other contributors under GNU GENERAL PUBLIC LICENSE Version 3.

Node Usage

sACN in

This node can be used to read one or multiple universes send by sACN.

Parameters:

| Paremeter | Description | Possible Values | Default Value | Mandatory | | ---------- | ----------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------- | ---------------------------- | --------- | | universe | The universe that is meant to be observed. | \d+ (1 to 63999) | 1 | yes | | mode | Defines whether the node returns the values of every read sACN package (passthrough mode), or merged values using HTP or LTP. | passthrough, htp, ltp | htp | yes | | output | Defines wether the node sends only changed values or the whole universe. | full, changes | full | yes | | IP-address | IP-Address of the network-interface that should be used for reading from sACN. | \d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\ (any valid ip-address) | empty | no | | port | The network port which should be used for reading sACN. | \d+ | empty (defaults to 5568) | no |

Output for direct-mode:

| Property | Description | | ---------- | ----------------------------------------------------------------------------------------------------------------------------------------- | | sequence | sACN packets are given a packet sequence number so that the receiver can keep the sequence of packets from a given sender. (1 to 255) | | source | IP-Address of the sender. | | priority | Priority of the sender. (1 to 200) | | universe | Id of the universe the package is addressed to. | | payload | array containing the dmx values as percentage by dmx channel. DMX-Channel 1 starts at key 1, not 0. (Array<number, number>) |

Output for merging-modes (HTP or LTP):

| Property | Description | | ---------- | --------------------------------------------------------------------------------------------------------------------------------------- | | universe | Id of the universe the package is addressed to. | | payload | array containing the dmx values as percentage by dmx channel. DMX-Channel 1 starts at key 1, not 0. (Array<number, number>) |

sACN out

This node can be used to send one universe using sACN.

Parameters:

| Paremeter | Description | Possible Values | Default Value | Mandatory | | ----------- | ------------------------------------------------------------------------- | -------------------------------------------------------------- | ---------------------------- | --------- | | universe | The universe that is meant to be observed. | \d+ (1 to 63999) | 1 | yes | | source-name | The name for the sACN-sender that should be displayed within the network. | any string below 50 characters | Node-RED | yes | | speed | Defines the frequency for sending sACN-packages | once (0Hz), 24Hz, 27Hz, 30Hz, 40Hz, 44Hz | 0Hz | yes | | priority | The priority that should be used for the sACN-sender. | \d+ (1 to 200) | 100 | yes | | IP-address | IP-Address of the network-interface that should be used for sending sACN. | \d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3}\ (any valid ip-address) | empty | no | | port | The network port which should be used for reading sACN. | \d+ | empty (defaults to 5568) | no |

Expected input:

| Property | Description | | --------- | --------------------------------------------------------------------------------------------------------------------------------------- | | payload | array containing the dmx values as percentage by dmx channel. DMX-Channel 1 starts at key 1, not 0. (Array<number, number>) |

Scene-Controller

This node can be used to record scenes and play them afterwards.

Parameters:

| Paremeter | Description | Possible Values | Default Value | Mandatory | | --------- | ----------- | --------------- | ------------- | --------- |

Expected input:

| Property | Description | Mandatory | | ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------- | | action | the action to be executed - save to save a preset, play to play a saved preset, reset to reset | yes | | scene | for action | yes, for actions save, play | | universe | if only one universe is handled, this parameter is mandatory and contains the used universe | yes | | payload | contains the values to record. it might be an array (key 0-511) containing the values for a single universe,an object (keys 1-512) containing the values for a single universe oran object (any numeric keys) containing objects (keys 1-512) containing an universe each. | yes, for action save |

Output for single universe:

| Property | Description | | ---------- | --------------------------------------------------------------------------------------------------------------------------------------- | | universe | ID of the universe the package is addressed to when a single universe is used. (number) | | payload | Array containing the dmx values as percentage by dmx channel. DMX-Channel 1 starts at key 1, not 0. (Array<number, number>) | | scene | The scene that is played (number) | | reset | Identifies a reset message for action reset, otherwise it does not exist. (true) |

Output for multiple universes:

| Property | Description | | ---------- | --------------------------------------------------------------------------------------------------------------------------------- | | universe | (undefined) | | payload | Object containing one object per universe. DMX-Channel 1 starts at key 1, not 0. (object<number, object<number, number>>) | | scene | The scene that is played (number) | | reset | Identifies a reset message for action reset, otherwise it does not exist. (true) |