Node-RED makes it easy to connect the physical world into the IoT. Wireless Sensors are one example of things, and applied in this exercise.
|Raspberry Pi with JeeLink attached, and JeeNode USB at back.|
Wireless sensor transmits following JSON messages:
The format is compatible with the internal representation of flow data elements in Node-RED. These messages are received by the serial port receiver node.
|Serialport handler in Node-RED|
|Node-RED serial port configuration window.|
|Custom function to parse JSON messages received from serial port.|
|Configuration window for switch rules in Node-RED.|