1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00
node-red-nodes/hardware/blinkstick
Dave C-J 317aaa1b64 Handle users of old Blinkstick npm a bit more nicely.
Don't  barf (quite so badly) on new API calls if they don't exist yet.
2014-11-20 08:44:05 +00:00
..
.gitignore Improvements to BlinkStick node 2014-11-18 17:16:19 +00:00
76-blinkstick.html Handle users of old Blinkstick npm a bit more nicely. 2014-11-20 08:44:05 +00:00
76-blinkstick.js Handle users of old Blinkstick npm a bit more nicely. 2014-11-20 08:44:05 +00:00
LICENSE Start moving nodes for npm install-ability 2014-07-04 14:51:55 +01:00
package.json Handle users of old Blinkstick npm a bit more nicely. 2014-11-20 08:44:05 +00:00
README.md Improvements to BlinkStick node 2014-11-18 17:16:19 +00:00

node-red-node-blinkstick

A Node-RED node to control a BlinkStick.

Install

Run the following command in the root directory of your Node-RED install:

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 }

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