Skip to content

dimafirs/WeatherObserver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

92 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

WeatherObserver

Minimal software requirments is:

  1. JDK 8.0_191;
  2. Maven 3.60+;
  3. Postgresql 10;
  4. Docker 17.05.0-ce, build 89658be
  5. Npm 6.4.1+;
  6. Node.js 10.13.0+.

Front run

npm install -g @angular/cli (install globally angular command-line interface)
cd front
ng serve --open

Server run

Run this in command line:

cd: server/src/main/resources
git describe --abbrev=0 > git_version.txt
cd ../../../
mvn spring-boot:run

Device 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:

  1. Connect sensor and board together via I2C and supply pins on each device;
  2. Setup Arduino IDE and ESP8266 support in "Board manager";
  3. Open and edit firmware file with .ino extention in /device/ directory by adding your server address, your router Wi-Fi SSID and password;
  4. Connect board to your host PC;
  5. Select your board version, port and parametrs in "Properties" tab;
  6. Just tap "Upload" button and wait while board is flashing;
    Success!
    To check board logs use "Serial monitor" (Ctrl+Shift+M in Arduino IDE).

Enjoy!

Docker

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

About

Repository with temperature server for KPI course of "Integration systems"

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors