mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
61ac8fefae
* Ability to select BlinkStick by serial number * Look up serial numbers of connected BlinkSticks * Ability to set blink, morph and pulse animations * Ability to control the parameters of those animations like duration, * steps, repeats and delay * Repeat blink and pulse animation until new payload is received * Automatically find BlinkStick if it was removed and then plugged back in * Connectivity status when "Node Status" is enabled in the menu * Override parameters with payload object * Improved text in the info pane
33 lines
1.3 KiB
Markdown
33 lines
1.3 KiB
Markdown
node-red-node-blinkstick
|
|
========================
|
|
|
|
A <a href="http://nodered.org" target="_new">Node-RED</a> node to control a <a href="http://www.blinkstick.com/" target="_new">BlinkStick</a>.
|
|
|
|
Install
|
|
-------
|
|
|
|
Run the following command in the root directory of your Node-RED install:
|
|
|
|
npm install node-red-node-blinkstick
|
|
|
|
|
|
Usage
|
|
-----
|
|
|
|
<i><a href="http://www.blinkstick.com" target="_new">BlinkStick</a></i> output node. Expects a <b>msg.payload</b> with one of:
|
|
|
|
* A hex string <b>"#rrggbb"</b> triple
|
|
* <b>"red,green,blue"</b> three 0-255 values as a string
|
|
* <b>"random"</b> will generate a random color
|
|
* <i><a href="http://www.w3schools.com/html/html_colornames.asp" target="_new">Standard HTML color</a></i> name
|
|
* <b>object</b> 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 <i><a href="http://www.blinkstick.com/help/tutorials" target="_new">BlinkStick tutorials</a></i> or the <i><a href="https://github.com/arvydas/blinkstick-node" target="_new">node module</a></i> documentation.
|