node-red-contrib-ui-reef

1.0.2 • Public • Published

node-red-contrib-ui-reef

platform

These nodes were designed to facilitate the creation of a Node-RED aquarium or hydroponics controller. node-red-dashboard (min v2.10.0) is required and must be installed first.

image

Install

Either use the Manage Palette option in the Node-RED Editor menu, or run the following command in your Node-RED user directory - typically ~/.node-red

npm install node-red-contrib-ui-reef

Probe

image

Probe accepts two types of data, live data or stored data. Live data can be fed via msg.payload or stored data via an array of objects with an x and y property:

Live data:

msg = { payload: 8.15 }

Stored data:

[
    { x: 1520527095000, y: 8.15 },
    { x: 1520934095000, y: 8.17 }
]

When providing data for the time scale, this node uses timestamps defined as milliseconds since the epoch (midnight January 1, 1970, UTC) internally. However, it will also accept most datetime formats by way of the included chartjs-adapter-moment plugin.

Value on the right will show most recent datapoint whether that be live data or stored data. If a symbol is specified it will be appended to this value only. Regardless of input data, the time component will be validated against the configured timeframe and older values dropped. Additionally, there are options to round values to a decimal place and/or map value(s) to a range.

Output

image

Output node is a highly modified fork of node-red-contrib-ui-multistate-switch and the Node-Red Function node. In essence, it provides a switch option to run a function on interval instead of on incoming msg. Function runs initially when the switch is set to the function option then repeats on the specified interval. Changing switch position to any other option will cancel the interval and send static value associated with selected option.

If toFront property is set in function the value will be sent to the front to be displayed in the upper-right hand of widget. Switch states will be restored on restart or reboot if Node-RED settings specify "localfilesystem" as store. Color option allows specific colors to be set for different switch positions.

Input

image

Input node is a modification of node-red-contrib-ui-multistate-switch which sets switch based on input value. Color option allows specific colors to be set for different switch positions.

Important Note

These nodes would not be possible without the following projects:

Package Sidebar

Install

npm i node-red-contrib-ui-reef

Weekly Downloads

11

Version

1.0.2

License

MIT

Unpacked Size

92.9 kB

Total Files

15

Last publish

Collaborators

  • maddytp