hotNipi / node-red-dashboard-2-ui-gauge-linear

A linear type of gauge node for node-red dashboard 2.0
Apache License 2.0
0 stars 0 forks source link

A linear type of gauge node for node-red dashboard 2.0

A linear type of gauge node for the flowfuse Node-RED Dashboard 2.0

linear gauge for node-red dashboard 2.0

Install

The usual method of installing is to use Manage Palette in the node red editor and search for @hotnipi/node-red-dashboard-2-ui-gauge-linear and install it.

Using npm directly, cd into your node red user directory (usually .node-red in your home folder) and from there run

npm install @hotnipi/node-red-dashboard-2-ui-gauge-linear

Inputs

Pass the value in msg.payload. This may be a Number or a string that represents a number.

Certain configuration values can be overridden dynamically be passing in an object in msg.ui_update. See Dynamic Properties below.

Configuration

Dynamic Properties

Certain properties can be overridden by passing an object in msg.ui_update. The name of the item in msg.ui_update is generally the name of the propety being overridden. For example, the Ticks definitions may be changed by passing in array in msg.ui_update.ticks.

CSS overrides

The label, value and limits can be hidden by adding pre-built modifier class names to the Class field:

For more specific modifications of display elements override styles in the normal way using a ui-template node. In particular:

The color of the value

.myclass .hotnipi-gauge-linear-value{
    color: red;
}

Other notes