node-red-nodes/hardware/blinkstick
Dave Conway-Jones fa1453c0d4 point blinkstick to latest pre-req
and remove rtf tags
2016-02-22 18:56:42 +00:00
..
.gitignore Improvements to BlinkStick node 2014-11-18 17:16:19 +00:00
76-blinkstick.html point blinkstick to latest pre-req 2016-02-22 18:56:42 +00:00
76-blinkstick.js point blinkstick to latest pre-req 2016-02-22 18:56:42 +00:00
LICENSE Start moving nodes for npm install-ability 2014-07-04 14:51:55 +01:00
README.md point blinkstick to latest pre-req 2016-02-22 18:56:42 +00:00
package.json point blinkstick to latest pre-req 2016-02-22 18:56:42 +00:00

README.md

node-red-node-blinkstick

A Node-RED node to control a BlinkStick.

Pre-requisites

Depending on your operating system you may need to install some extra libraries before installing this node... I.E make sure it works outside of Node-RED first !

For more information see BlinkStick tutorials or the node module documentation.

Raspberry Pi / Debian / Ubuntu

sudo apt-get install -y libudev-dev

Currently you MUST run Node-RED as root in order to get sufficient permissions to talk to this USB driver.

Install

Run the following command in the root directory of your Node-RED install. Usually the is ~/.node-red

npm install node-red-node-blinkstick

Usage

BlinkStick output node. Expects a msg.payload with one of:

  • A hex string "#rrggbb" triple
  • "red,green,blue" three 0-255 values as a string
  • "random" will generate a random color
  • Standard HTML color name
  • object can override any of the parameters

An object payload can override any of the settings on the node. Omitted parameters are left intact. For example:

{ 'color': 'blue' }
{ 'task': 'blink', 'color': 'red' }
{ 'task': 'pulse', 'color': 'gree', 'duration': 500 }
{ 'task': 'morph', 'color': 'orange', 'duration': 500, 'steps': 20 }