Giter Site home page Giter Site logo

node-red-contrib-dmxusbpro's Introduction

node-red-contrib-dmxusbpro

A simple Node-Red driver for Enntec DMX USB PRO.

Pre-requisites

Requires Node-Red

Installation

$ npm i --save node-red-contrib-dmxusbpro

Description

  • Sends DMX data through the Enntec DMXUSBPRO device
  • Adapted, simplified, hacked from the existing node-dmx package
  • requires node-serialport module
  • node-red-contrib-dmxusbpro node takes an array of ints (0-255) as input.
  • node-red-contrib-dmxusbpro requires the serialport node library. Similarly, the serialport needs to be assigned, COM3, COM4, or /dev/ttyS0, etc
  • The DMX starting address is assignable in the object. This shifts where the preset array is stored in the Universe buffer.
  • Checkout the example Flow called "DMX Presets with MongoDB2 and DMXUSBPRO node"

node-red-contrib-dmxusbpro's People

Contributors

blechdom avatar

Stargazers

Amir Arad avatar coldridj avatar

Watchers

 avatar  avatar

node-red-contrib-dmxusbpro's Issues

Example input

Hi

Is it possible to give an example what should be on the input of the node?
Where can I find the "DMX Presets with MongoDB2 and DMXUSBPRO node" example?

Kind Regards
Floris

Not installing

I'm not able to install it on Node Red running into a Raspberry Pi 4

Install Problems

I have set up a raspberry Pi for use with lightcontrol via node-red.
during installation of this node an error occoured and the installation stoped.
one solution is to downgrade the nodejs version from 12.X to 10.20.1.
After the downgrade the installation of this node was successfully and my node-red flow was working correctly.

Possible to install on Mac?

Trying to install on various Mac's give issues with node-gyp, such as:

gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ]
npm ERR! ../src/serialport.cpp:41:48: error: too few arguments to function call, single argument 'context' was not specified
npm ERR!   v8::String::Utf8Value path(info[0]->ToString());
npm ERR! 
...
npm ERR! 8 warnings and 17 errors generated.
npm ERR! make: *** [Release/obj.target/serialport/src/serialport.o] Error 1
npm ERR! gyp ERR! build error 
npm ERR! gyp ERR! stack Error: `make` failed with exit code: 2
npm ERR! gyp ERR! stack     at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:194:23)
npm ERR! gyp ERR! stack     at ChildProcess.emit (node:events:520:28)
npm ERR! gyp ERR! stack     at Process.ChildProcess._handle.onexit (node:internal/child_process:291:12)
npm ERR! gyp ERR! System Darwin 22.5.0
npm ERR! gyp ERR! command "/usr/local/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
npm ERR! gyp ERR! cwd /Users/tbjolset/dev/tmp/jone/node_modules/serialport
npm ERR! gyp ERR! node -v v16.14.0
npm ERR! gyp ERR! node-gyp -v v9.0.0
npm ERR! gyp ERR! not ok

Any chance that this library is even supported on Macs?
(node version: 16.14 and similar)

home assist and nodered

hi i got this error when i try to install in hassio

2023-01-30T00:36:23.617Z Install : node-red-contrib-dmxusbpro 1.0.4

2023-01-30T00:36:24.843Z npm install --no-audit --no-update-notifier --no-fund --save --save-prefix=~ --production --engine-strict [email protected]
2023-01-30T00:36:26.560Z [err] npm
2023-01-30T00:36:26.562Z [err] WARN config
2023-01-30T00:36:26.562Z [err] production Use --omit=dev instead.
2023-01-30T00:36:38.605Z [err] npm
2023-01-30T00:36:38.605Z [err] ERR! code 1
2023-01-30T00:36:38.606Z [err] npm ERR!
2023-01-30T00:36:38.606Z [err] path /config/node-red/node_modules/serialport
2023-01-30T00:36:38.612Z [err] npm ERR!
2023-01-30T00:36:38.612Z [err] command failed
2023-01-30T00:36:38.612Z [err] npm ERR! command sh -c prebuild-install || node-gyp rebuild
2023-01-30T00:36:38.612Z [err] npm ERR!
2023-01-30T00:36:38.613Z [err] gyp info it worked if it ends with ok
2023-01-30T00:36:38.613Z [err] npm ERR! gyp info using [email protected]
2023-01-30T00:36:38.613Z [err] npm ERR! gyp info using [email protected] | linux | arm64
2023-01-30T00:36:38.613Z [err] npm ERR! gyp ERR! find Python
2023-01-30T00:36:38.613Z [err] npm ERR!
2023-01-30T00:36:38.614Z [err] gyp ERR! find Python checking Python explicitly set from command line or npm configuration
2023-01-30T00:36:38.614Z [err] npm ERR!
2023-01-30T00:36:38.615Z [err] gyp ERR! find Python - "--python=" or "npm config get python" is "/usr/bin/python3"
2023-01-30T00:36:38.615Z [err] npm ERR! gyp ERR! find Python - "/usr/bin/python3" is not in PATH or produced an error
2023-01-30T00:36:38.615Z [err] npm ERR! gyp ERR! find Python Python is not set from environment variable PYTHON
2023-01-30T00:36:38.615Z [err] npm ERR! gyp ERR! find Python checking if "python3" can be used
2023-01-30T00:36:38.615Z [err] npm ERR! gyp ERR! find Python - "python3" is not in PATH or produced an error
2023-01-30T00:36:38.615Z [err] npm ERR! gyp ERR! find Python checking if "python" can be used
2023-01-30T00:36:38.615Z [err] npm ERR! gyp ERR! find Python - "python" is not in PATH or produced an error
2023-01-30T00:36:38.615Z [err] npm ERR! gyp ERR! find Python
2023-01-30T00:36:38.615Z [err] npm ERR! gyp ERR! find Python **********************************************************
2023-01-30T00:36:38.615Z [err] npm ERR! gyp ERR! find Python You need to install the latest version of Python.
2023-01-30T00:36:38.615Z [err] npm
2023-01-30T00:36:38.615Z [err] ERR! gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
2023-01-30T00:36:38.615Z [err] npm ERR! gyp ERR! find Python you can try one of the following options:
2023-01-30T00:36:38.615Z [err] npm ERR! gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable"
2023-01-30T00:36:38.615Z [err] npm ERR! gyp ERR! find Python (accepted by both node-gyp and npm)
2023-01-30T00:36:38.615Z [err] npm ERR! gyp ERR! find Python - Set the environment variable PYTHON
2023-01-30T00:36:38.615Z [err] npm
2023-01-30T00:36:38.618Z [err] ERR! gyp ERR! find Python - Set the npm configuration variable python:
2023-01-30T00:36:38.618Z [err] npm ERR! gyp ERR! find Python npm config set python "/path/to/pythonexecutable"
2023-01-30T00:36:38.618Z [err] npm ERR! gyp ERR! find Python For more information consult the documentation at:
2023-01-30T00:36:38.618Z [err] npm ERR! gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
2023-01-30T00:36:38.618Z [err] npm ERR! gyp ERR! find Python **********************************************************
2023-01-30T00:36:38.618Z [err] npm ERR! gyp ERR! find Python
2023-01-30T00:36:38.618Z [err] npm ERR! gyp ERR! configure error
2023-01-30T00:36:38.618Z [err] npm ERR! gyp ERR! stack Error: Could not find any Python installation to use
2023-01-30T00:36:38.618Z [err] npm ERR! gyp ERR! stack at PythonFinder.fail (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:330:47)
2023-01-30T00:36:38.618Z [err] npm ERR! gyp ERR! stack at PythonFinder.runChecks (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:159:21)
2023-01-30T00:36:38.618Z [err] npm ERR! gyp ERR! stack at PythonFinder. (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:202:16)
2023-01-30T00:36:38.618Z [err] npm ERR! gyp ERR! stack at PythonFinder.execFileCallback (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/find-python.js:294:16)
2023-01-30T00:36:38.618Z [err] npm ERR! gyp ERR! stack at exithandler (node:child_process:420:5)
2023-01-30T00:36:38.618Z [err] npm ERR! gyp ERR! stack at ChildProcess.errorhandler (node:child_process:432:5)
2023-01-30T00:36:38.618Z [err] npm ERR! gyp ERR! stack at ChildProcess.emit (node:events:513:28)
2023-01-30T00:36:38.618Z [err] npm ERR! gyp ERR! stack at ChildProcess._handle.onexit (node:internal/child_process:289:12)
2023-01-30T00:36:38.618Z [err] npm ERR! gyp ERR! stack at onErrorNT (node:internal/child_process:476:16)
2023-01-30T00:36:38.618Z [err] npm ERR! gyp ERR! stack at process.processTicksAndRejections (node:internal/process/task_queues:82:21)
2023-01-30T00:36:38.618Z [err] npm ERR! gyp ERR! System Linux 5.15.84-v8
2023-01-30T00:36:38.618Z [err] npm ERR! gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
2023-01-30T00:36:38.618Z [err] npm ERR! gyp ERR! cwd /config/node-red/node_modules/serialport
2023-01-30T00:36:38.618Z [err] npm ERR! gyp ERR! node -v v18.12.1
2023-01-30T00:36:38.618Z [err] npm ERR! gyp ERR! node-gyp -v v9.3.0
2023-01-30T00:36:38.618Z [err] npm ERR! gyp ERR! not ok
2023-01-30T00:36:38.624Z [err]
2023-01-30T00:36:38.625Z [err] npm ERR! A complete log of this run can be found in:
2023-01-30T00:36:38.625Z [err] npm
2023-01-30T00:36:38.625Z [err] ERR! /root/.npm/_logs/2023-01-30T00_36_26_440Z-debug-0.log
2023-01-30T00:36:38.664Z rc=1

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.