node-red-node-blink1 0.0.14

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

npm install 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 the user directory of your Node-RED install. This is usually ~/.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, (or off)

Node Info

Version: 0.0.14
Updated 1 year, 6 months ago
License: Apache-2.0

Downloads

17 in the last day
55 in the last week
98 in the last month

Nodes

  • blink1

Keywords

  • node-red
  • blink1

Maintainers

  • dceejay
  • knolleary