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/blink1
2016-03-02 13:27:52 +00:00
..
77-blink1.html more node-red-nodes hardware section info updates 2016-02-12 21:27:02 +00:00
77-blink1.js Fix listing errors in node-red-nodes 2016-03-01 21:10:58 +00:00
LICENSE Add npms for various hardware nodes, Blink1, DigiRGB, LEDBorg, PiFace 2014-07-08 22:57:42 +01:00
package.json update analysis and utility nodes info style 2016-03-02 13:27:52 +00:00
README.md update hardware nodes info style 2016-03-02 13:27:52 +00:00

node-red-node-blink1

A Node-RED node to control a Thingm Blink(1) LED.

Pre-requisites

As the blink1 is a USB HID device you may need some extra hardware libraries as documented here and here.

Specifically Ubuntu/Debian/Raspbian users may need to

sudo apt-get install libusb-1.0-0-dev

and also setup these udev rules in /etc/udev/rules.d/51-blink1.rules

SUBSYSTEM=="input", GROUP="input", MODE="0666"
SUBSYSTEM=="usb", ATTRS{idVendor}=="27b8", ATTRS{idProduct}=="01ed", MODE:="666", GROUP="plugdev"

Install

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

npm i node-red-node-blink1

Usage

Sends the msg.payload to a Thingm Blink(1) LED device. The payload can be any of the following:

  • a three part csv string of r,g,b - e.g. red is 255,0,0
  • a hex colour #rrggbb - e.g. green is #00FF00
  • a @cheerlights colour name - e.g. blue

The colours it accepts are - red, amber, green, blue, cyan, magenta, yellow, orange, pink, purple, white, warmwhite (or oldlace), black, (and off)