@revolutionpi/node-red-dashboard-2-hmi

0.0.4 • Public • Published

@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:

  1. Start Node-RED Docker container with a volume mounted at /data that points to a local directory
  2. Install @flowfuse/node-red-dashboard either via Web UI (Settings->Manage Palette) or by installing it via npm in the directory of the docker volume
  3. 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:

  1. Build the code with npm run build or npm run build:dev
  2. Create a .tgz npm bundle with npm pack
  3. Change directory to the share docker volume and run npm install PATH/TO/TGZ-FILE
  4. Restart docker container (can be skipped if only changes to the widgets in /ui were made)

Package Sidebar

Install

npm i @revolutionpi/node-red-dashboard-2-hmi

Weekly Downloads

76

Version

0.0.4

License

GPL-2.0-or-later

Unpacked Size

47.5 kB

Total Files

11

Last publish

Collaborators

  • lzech-revolutionpi