Christian-Me / node-red-contrib-ui-iro-color-picker

Node-RED dashboard color picker widget utilizing the iro.js library. Can be configured as a widget or modal popup window. Individual components can be combined,
Apache License 2.0
4 stars 3 forks source link
color-picker node-red node-red-contrib node-red-dashboard

node-red-contrib-ui-iro-color-picker

Color picker node utilizing the iro.js widget.

The node-red node is highly customizable inside the editor by choosing and combining several components either as a widget or a popup window.

For latest Updates see the change log in the end of this document.

For color conversion the node-red-contrib-chroma node is a good companion.

screenshots

as widget

as popup

on iOS device

Install

Either use the Editor - Menu - Manage Palette - Install option, or run the following command in your Node-RED user directory (typically ~/.node-red) after installing Node-RED-dashboard.

npm i node-red-contrib-ui-iro-color-picker

Examples

Examples can be imported via import/examples in the top right menu of the editor

  1. mixed widgets (all auto size)
  2. vertical sliders (custom size, label above the widget)
  3. compact buttons (modal popups custom button size in a compact layout)
  4. tuneable white (special feature for tunable LEDs)

Inputs

Send msg.payload to this node to change the color of the color picker widget. The format can be any of the color formats iro.js supports

in addition the following numeric input formats are supported to set individual parameters

if a numeric msg.payload is received it is assumed that the value corresponds to the output format. In this case the output format has to be set to a single value format!

Send msg.enable false to disable the widget.

Outputs

Node will send the color value as msg.payload. The format can be one of the input formats. The supported formats of iro.js are expanded by 3 formats, especially to handle RGB(W) LEDs:

General configuration

Component configuration

iro.js offers a variety of different color picker styles. These can be combined as required showing a part of the color definition

Changelog

0.1.7

0.1.6 bugfix

0.1.5 bugfix

0.1.4

0.1.3

0.1.2

0.1.1

0.1.0

0.0.7

Requirements