This repository contains the code base for ui-led, a third-party node for the Node-RED Dashboard 2.0.
Configuration Options
The ui-led node has the following configuration options:
General
- 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 x height
Label Styling
- 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.
LED Styling
- 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.
Values
- Maps a value to a respective color. If a value is provided that it doesn't recognise, a general grey color will be used.
关于 @flowfuse/node-red-dashboard-2-ui-led 的常见问题
@flowfuse/node-red-dashboard-2-ui-led 是什么?
A simple LED status indicator for the Node-RED Dashboard 2.0
如何安装 @flowfuse/node-red-dashboard-2-ui-led?
在项目目录运行 npm install @flowfuse/node-red-dashboard-2-ui-led,或使用 pnpm add / yarn add / bun add。
@flowfuse/node-red-dashboard-2-ui-led 支持 TypeScript 吗?
该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/flowfuse__node-red-dashboard-2-ui-led 是否存在。
@flowfuse/node-red-dashboard-2-ui-led 支持 ESM 还是 CommonJS?
同时提供 ES Module 与 CommonJS 入口,import 和 require() 都可以使用,打包工具会自动选择合适的版本。
@flowfuse/node-red-dashboard-2-ui-led 需要什么版本的 Node.js?
package.json 的 engines 字段要求 Node.js >=14。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。
@flowfuse/node-red-dashboard-2-ui-led 可以商用吗?
@flowfuse/node-red-dashboard-2-ui-led 使用 Apache-2.0 许可。宽松许可:允许商业使用、修改和再分发,并附带明确的专利授权;分发时需保留许可与 NOTICE 文件,修改过的文件要注明改动。以上为概括,不构成法律意见,请以许可原文为准。
@flowfuse/node-red-dashboard-2-ui-led 的下载量有多少?
根据 npm 官方下载统计,@flowfuse/node-red-dashboard-2-ui-led 在 2026/10/15 – 2026/11/13 这 30 天内被下载 3,089 次,日均约 103 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。
@flowfuse/node-red-dashboard-2-ui-led 还在维护吗?
最新版本 1.1.1 发布于 2026/09/24(1 个月前);至今共发布 3 个版本,其中过去 12 个月发布了 1 个;首次发布于 2024/02/17。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。