Skip to content
This repository has been archived by the owner on Aug 27, 2021. It is now read-only.

Latest commit

 

History

History
46 lines (32 loc) · 1.2 KB

installation.md

File metadata and controls

46 lines (32 loc) · 1.2 KB

Node Red orchestrator D2D flow

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.

Installation

Node Red

Follow the guide at this link

Apache & PHP

  • Follow the procedures at apache.org and php.net respectively

Configuration

GPIO

Schema pin

Setting.js

  1. Open setting.js
  2. Change the path:
    • old path: lib/flows/orchestrator.json
    • new path: lib/flows/orchestrator-D2D.json
  3. save the file and exit

Apache

  1. Open /etc/hosts file
  2. Insert this entry:
  3. Save the file and exit
  4. Set virtual host with this url : www.xampp-json.org in httpd.conf file
  5. Restart Apache

PHP

  1. Copy chart_to_img folder in Apache's htdocs folder (e.g. /var/www/html/)

Node Red

  1. Install humidity sensor node (dht11):

    • Full procedure at this link
  2. Install batcher node:

    • npm install node-red-contrib-batcher

Run flow

via terminal: sudo node-red -s settings.js