@maddytp/node-red-dashboard-2-ui-reef 1.0.0
Set of UI nodes for aquarium automation based on @flowfuse/node-red-dashboard
node-red-dashboard-2-ui-reef
These nodes were designed to facilitate the creation of a Node-RED aquarium or hydroponics controller. @flowfuse/node-red-dashboard is required and must be installed first.
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 @maddytp/node-red-dashboard-2-ui-reef
Feed
Feed node is intended to trigger feed or maintenance cycles. The On Start
value is sent when first initialized with the On Cancel
value sent at the end of countdown or when cancelled.
Probe
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:
msg = {
payload: [
{ 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 epoch (midnight January 1, 1970, UTC) internally. However, it will also accept most datetime formats.
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. 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
Output node combines elements of the core function
and dashboard button group
nodes to allow static or dynamic output. Static options send value on selection whereas the function option will modify msg
inputs in the same way the core function
node operates.
If msg.display
property is set in function the value will be sent to the UI to be displayed in the upper-right hand of widget. Switch state is stored in node context so it can be restored on restart if Node-RED settings specify "localfilesystem" as store. Color option allows specific colors to be set for different switch positions.
Input
Input node is a modification of dashboard button-group
node 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:
- Node-Red - Node-RED
- FlowFuse Dashboard - @flowfuse/node-red-dashboard