0.4.0 • Published 7 months ago

dmx-devices v0.4.0

Weekly downloads
-
License
MIT
Repository
github
Last release
7 months ago

Proper, programmable access to devices that support DMX

TL;DR instead of saying "set channel 37 to 141" why not say "set light1 to 'pink'".

Alpha quality code disclaimer

This package is in it's very early days, the API hasn't stabilised yet and much is yet to be figured out, so do use it with this caveat in mind. I'd be eager to hear any usecases, so do give a shout on github!

Installation

npm install dmx-devices

Demo

// import a device, a Beamz RGBW bar in this case
import {BeamzLCB244} from "dmx-devices";

// init at address 1 in 58 channel mode (this specific bar supports 9, 16,
// 30, and 58 channel modes)
let bar = new BeamzLCB244(1, "58ch");

// set color to pink. the reason why the property is called `light1` is
// because in 58 channel mode you get access to 8 individual light groups
// on the LED bar
bar.light1.color = "pink";

// `dmx` property is a dict of {channel: value} that you can forward to
// the DMX controller
console.log(bar.dmx);

> {"1":0,"2":0,"3":255,"4":192,"5":203,"6":192,"7":0,"8":0,"9":0...

Currently recognized devices & adding your own

Check the devices directory for all currently recognized devices.

The LED Par is a good starting point for figuring how to create your own config.

0.4.0

7 months ago

0.3.0

11 months ago

0.3.1

11 months ago

0.2.0

11 months ago

0.1.17

12 months ago

0.1.16

1 year ago

0.1.15

2 years ago

0.1.14

2 years ago

0.1.13

2 years ago

0.1.12

2 years ago

0.1.11

2 years ago

0.1.10

2 years ago

0.1.9

2 years ago

0.1.8

2 years ago

0.1.7

2 years ago

0.1.6

2 years ago

0.1.5

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago