A simple Node-RED node which runs a Python script to get readings from the Pimoroni Envirophat, then parses those readings as a Javascript object and appends them to a message.
- You must have Node.js and Node-RED installed. Instructions can be found here.
- You must have the Pimoroni Envirophat libraries installed on your Raspberry Pi. Instructions for this can be found here. In short, just run the following command in your terminal:
curl https://get.pimoroni.com/envirophat | bash
Instructions for testing a node module locally can be found here.
The node can be found in npm. To install it, go to your node red directory (usually ~./node-red) and use the following command:
npm install node-red-contrib-envirophat
Note that you will need to restart Node-RED before the node will be loaded. On Raspberry Pi, you can do this with:
node-red-stop && node-red-start
All configuration of the node can be done through the Node-RED UI.
See the node's Node Help page within Node-RED for more details/defaults.
For questions and help, email Tobi.