This repository contains the code base for ui-led
, a third-party node for the Node-RED Dashboard 2.0.
The ui-led
node has the following configuration options:
- Name: The name of the node within the context of the Node-RED editor.
- Group: The UI Group that the LED will render inside.
- Size: The relative size of the LED with
width
xheight
- Text: The label to display next to the LED.
- Placement: Which side of the LED the label will be displayed.
- Alignment: Within the space to the left/right of the LED, how the label will be aligned in that space.
- Shape: "Circle" or "Square"
- Show Border: Should the LED have a fixed border around the shape, emulating a physical LED.
- Show Glow: Should the LED have a glow effect.
- Maps a value to a respective color. If a value is provided that it doesn't recognise, a general grey color will be used.