climastation
v1.0.0
Published
Clima Station with Raspberry, ESP8266, DHT22 and node
Downloads
5
Readme
climaStation
It is an application in order to collect temperature and humidity from external sensor and publish results on a web page.
Server Hardware: Raspberry Version 2.0b External Hardware Sensor: ESP8266 + DHT22
Server software:
- apache2 configured with reverseproxy
- node.js External Sofwtware Sensor:
- LUAcode
Installation
Installing a DHT22 sensor direcly on the Raspberry:
- install quick2wire-gpio-admin with path modified on source code.
Create dir: /var/www/123Solar/
Install node:
- using [email protected]
- using [email protected]
Install node modules:
- [email protected] /home/pi/climaStation/node_modules/fs
- [email protected] /home/pi/climaStation/node_modules/jsonfile
- [email protected] /home/pi/climaStation/node_modules/moment
- [email protected] /home/pi/climaStation/node_modules/node-dht-sensor
- [email protected] /home/pi/climaStation/node_modules/pi-gpio
- [email protected] /home/pi/climaStation/node_modules/string
- [email protected] /home/pi/climaStation/node_modules/util
- [email protected] /home/pi/climaStation/node_modules/log4js
- [email protected] /home/pi/climaStation/node_modules/body-parser
- [email protected] /home/pi/climaStation/node_modules/express
- [email protected] /home/pi/climaStation/node_modules/request
- [email protected] /home/pi/climaStation/node_modules/stringify
- [email protected] /home/pi/climaStation/node_modules/chokidar
Launch
sudo node climaStation or with "crontab -e" @reboot cd /home/pi/climaStation && sudo node ClimaStation.js & > /dev/null