Three parts
- client part (run on raspberry gathering unit
- server part (run on the cloud server)
- arduino firmware (run on arduino or other avr mcu)
We have two versions of the server - Node.js + MongoDB based server and PHP + MySQL based server.
- mongodb database (mongod running)
- node package manager (npm)
sudo npm install n -g
sudo n stable
git clone https://github.com/hecko/env_monitoring.git
cd env_monitoring/nodejs_server
npm install
node ./app.js
See directory php_server.
- apply MySQL schema to a MySQL database
- edit config.php
Application installed on Raspberry PI gathering data from Arduino and posting the data to the server.
cd /opt
git clone https://github.com/hecko/env_monitoring.git
cp env_monitoring/rpi_client/env.cron /etc/cron.d/env