This flow is able to retrieve humidity and temperature data from a sensor, store them in a file and convert in images. It can also show data as a chart.
Follow the guide at this link
- Follow the procedures at apache.org and php.net respectively
- Open setting.js
- Change the path:
- old path: lib/flows/orchestrator.json
- new path: lib/flows/orchestrator-D2D.json
- save the file and exit
- Open /etc/hosts file
- Insert this entry:
- 127.0.0.1 www.xampp-json.org
- Save the file and exit
- Set virtual host with this url : www.xampp-json.org in httpd.conf file
- Restart Apache
- Copy chart_to_img folder in Apache's htdocs folder (e.g. /var/www/html/)
-
Install humidity sensor node (dht11):
- Full procedure at this link
-
Install batcher node:
- npm install node-red-contrib-batcher
via terminal: sudo node-red -s settings.js