@revolutionpi/node-red-dashboard-2-hmi 0.0.4
Human-Machine-Interface UI components for Node-RED and @flowfuse/node-red-dashboard
@revolutionpi/node-red-dashboard-2-hmi
Human-Machine-Interface UI components for Node-RED Dashboard 2.0
hmi-push-button
A customisable round button designed after industrial HMI Pushbuttons.
Can be configured to have different background colors
or show symbols for Off (I)
or On (0)
Development
See here for general information about developing third party widgets for @flowfuse/node-red-dashboard
Develop locally in a Docker container
If you want to run Node-RED in a Docker container and use that to develop widgets you must follow these steps:
Setup
Necessary only once
Simply run ./docker-start.sh
or do it manually:
- Start Node-RED Docker container with a volume mounted at
/data
that points to a local directory - Install
@flowfuse/node-red-dashboard
either via Web UI (Settings->Manage Palette) or by installing it vianpm
in the directory of the docker volume - Restart docker container
Publish
Necessary after every change to the code. As the Docker container cannot access your local files directly, you need to copy the code to the shared volume
Simply run ./docker-dev.sh
or do it manually:
- Build the code with
npm run build
ornpm run build:dev
- Create a
.tgz
npm bundle withnpm pack
- Change directory to the share docker volume and run
npm install PATH/TO/TGZ-FILE
- Restart docker container (can be skipped if only changes to the widgets in
/ui
were made)