Minimal software requirments is:
- JDK 8.0_191;
- Maven 3.60+;
- Postgresql 10;
- Docker 17.05.0-ce, build 89658be
- Npm 6.4.1+;
- Node.js 10.13.0+.
npm install -g @angular/cli (install globally angular command-line interface)
cd front
ng serve --open
Run this in command line:
cd: server/src/main/resources
git describe --abbrev=0 > git_version.txt
cd ../../../
mvn spring-boot:run
To create your own measurment source you must have some hardware: any version of NodeMCU board and BMP-280 temperature and pressure sensor.
You should make such steps to setup and run your device:
- Connect sensor and board together via I2C and supply pins on each device;
- Setup Arduino IDE and ESP8266 support in "Board manager";
- Open and edit firmware file with .ino extention in /device/ directory by adding your server address, your router Wi-Fi SSID and password;
- Connect board to your host PC;
- Select your board version, port and parametrs in "Properties" tab;
- Just tap "Upload" button and wait while board is flashing;
Success!
To check board logs use "Serial monitor" (Ctrl+Shift+M in Arduino IDE).
Run commands below:
cd ./server
sudo docker build -f docker/Dockerfile . -t weatherobserver
sudo docker run --name postgres --network host -e POSTGRES_PASSWORD=postgres -d postgres
sudo docker run --network host weatherobserver