1.0.0 • Published 8 years ago
climastation v1.0.0
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 npm@2.14.7
- using node@v4.2.1
Install node modules:
- fs@0.0.2 /home/pi/climaStation/node_modules/fs
- jsonfile@2.2.3 /home/pi/climaStation/node_modules/jsonfile
- moment@2.11.1 /home/pi/climaStation/node_modules/moment
- node-dht-sensor@0.0.8 /home/pi/climaStation/node_modules/node-dht-sensor
- pi-gpio@0.0.8 /home/pi/climaStation/node_modules/pi-gpio
- string@3.3.1 /home/pi/climaStation/node_modules/string
- util@0.10.3 /home/pi/climaStation/node_modules/util
- log4js@0.6.32 /home/pi/climaStation/node_modules/log4js
- body-parser@1.14.2 /home/pi/climaStation/node_modules/body-parser
- express@4.13.3 /home/pi/climaStation/node_modules/express
- request@2.67.0 /home/pi/climaStation/node_modules/request
- stringify@3.2.0 /home/pi/climaStation/node_modules/stringify
- chokidar@1.4.2 /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
1.0.0
8 years ago