This project was developed and tested on Raspberry Pi 4 with GrovePi+ on Debian Bookworm (Rasperry Pi OS 12), Node 18.19.1 and npm 10.2.4.
-
npm install node-red-contrib-iot4h
(in /home/pi/.node-red/node_modules/) node-red-restart
See https://nodered.org/docs/user-guide/messages
Usually, the "value" of a message is stored in its payload
field.
To make integration with other nodes easy, the payload of a sensor
message only contains its values, all additional information is stored
in other properties.
If a sensor returns multiple values (e.g. temperature and humidity),
msg.payload
is an array of these values.
In addition to that, msg.valueTypes
is an array of value type
specifications {unit: ..., name: ..., type: ...}
.
This additional information is used for displaying sensor values on the LCD and when sending datapoints to the OpenDash platform.
- Save Variable
- Load Variable
- Timestamp
- Comparison Filter
- Moving Average
- Array Index
- Gate
- Gate Switch
- Thingsboard