node-red-contrib-iot4h
v1.0.1
Published
Node Red nodes for programming education in IoT4H workshops.
Downloads
13
Readme
IoT4H GrovePI Nodes
This project was developed and tested on Raspberry Pi 4 with GrovePi+ on Bullseye (Rasperry Pi OS 11), Node 18.19.1 and npm 10.2.4.
Installation
npm install node-red-contrib-iot4h
(in /home/pi/.node-red/node_modules/)node-red-restart
Nodes
msg
Properties
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.
Code Replacement Nodes
- Save Variable
- Load Variable
- Timestamp
- Comparison Filter
- Threshold Filter
- Variable Comparison Filter
- Moving Average
- Array Index