A small powerfull weather-station for the raspberrypi based on nodejs combined with a cool iOS-App to show realtime-data, history in charts and more.
The App can you find here: comming soon...
- RaspberryPi 2/3 or Zero W with raspbian jessy
- DHT22, BMP180 Sensor and cables
- Nodejs v6 and some dependencys (package.json)
- MySQL-Database
Install script is comming ....
-
resize microSD-Card with
sudo raspi-config
-
set locales, timezone with raspi-config
-
enable i2c with raspi-config
-
exit raspi-config and reboot
-
check resized filesystem using the whole sd-card with
df -h
-
Install git if not installed & cloning repo
sudo apt-get -y install vim git-core git clone https://github.com/Hendrik44/pi-weather-server.git cd pi-weather-server
-
run install script
sh install.sh
-
reboot
-
run pi-weather (need to run with root-permission, because server is need hardware-access)
sudo pm2 start index.js --name pi-weather
-
add server to automatically run on bootup
sudo pm2 save
http://raspberrypi.local:3000/live/sensor
To get a single realtime data call http://raspberrypi.local:3000/live/sensor and after the slash temperature, humidity, pressure to get the value you want.
http://raspberrypi:3000/api/live/sensor/temperature
http://raspberrypi:3000/api/history/sensor/
BE CAREFUL:
all history data from database a completely removed http://raspberrypi:3000/api/history/delete
This project was a part of my bachelor thesis and now opensource see LICENSE file.