0.1.0 • Published 3 years ago

node-red-node-blink1 v0.1.0

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

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

Out 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)

In Outputs the current color value of the Blink(1) LED device in the msg.payload with the r,g,b values as an array e.g. 255,0,0.

If the Blink(1) is off the device returns 0,0,0. Instead of 0,0,0 the node returns "off".

0.1.0

3 years ago

0.0.18

3 years ago

0.0.17

7 years ago

0.0.16

8 years ago

0.0.15

8 years ago

0.0.14

8 years ago

0.0.13

8 years ago

0.0.12

8 years ago

0.0.11

9 years ago

0.0.10

9 years ago

0.0.9

9 years ago

0.0.8

9 years ago

0.0.7

9 years ago

0.0.6

9 years ago

0.0.5

9 years ago

0.0.3

9 years ago

0.0.2

10 years ago

0.0.1

10 years ago