0.1.7 • Published 3 years ago

node-red-node-blinkstick v0.1.7

Weekly downloads
5
License
Apache-2.0
Repository
github
Last release
3 years ago

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

You also currently need to create a file /etc/udev/rules.d/80-blinkstick.rules containing

SUBSYSTEM=="usb", ATTRS{idVendor}=="20a0", ATTRS{idProduct}=="41e5", TAG+="uaccess"

and either reload the udev rules or reboot.

Install

Run the following command in your Node-RED user directory - typically ~/.node-red

npm i 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': 'green', 'duration': 500 }
{ 'task': 'morph', 'color': 'orange', 'duration': 500, 'steps': 20 }
0.1.7

3 years ago

0.0.4

3 years ago

0.1.16

6 years ago

0.1.15

7 years ago

0.1.13

8 years ago

0.1.12

8 years ago

0.1.11

8 years ago

0.1.10

8 years ago

0.1.9

8 years ago

0.1.8

9 years ago

0.1.5

9 years ago

0.1.1

9 years ago

0.1.0

9 years ago

0.0.3

10 years ago

0.0.2

10 years ago

0.0.1

10 years ago