Table of Contents
This project consists of 3 applications that cooperate with each other in order to detect danger events and warn the civilians about natural disasters and more. The backbone of this platform is the Edge Server. The other two applications are the Client Application and the Sensors Application. The server is responsible for gathering all the environment information from active sensors and process it rapidly in order to detect possible dangers. All known danger events must logged to a database and be reported to the clients in time.
-
Edge Server
-
Android Applications:
-
Database:
-
Other technologies:
There are 2 ways you can try the android applications out. You can either download our APK files or download the source code and proceed with a clean installation.
For the server you must create an SQL connection to the server with username set as root
and password set as password
. Then you need to create a database scheme with the name cp_registry
in this connection instance. These credentials are purely for demonstration purposes and can be changed through application.properties file. It is not recommended you store you Database credentials in public and non encrypted files. You also need to have an instance of Mosquitto Broker or any other MQTT broker running on you machine on port 1883
. Finally Gradle is necessary to build the project.
- In the project root folder open a cmd and type type
gradle build
. Then to start the server do one of the following:- Type
java -jar ./build/libs/server-1.0.0.jar
- Type
gradle bootRun
- Type
- Alternatively you can build and run the entire project with IntelliJ.
After the server has started, the frontend API will be available at http://localhost:8080/
- Install these APKs in your device or emulator (Need permission for installation from 3rd party applications)
- Alternatively you can build and run the projects with Android Studio (Need to enable USB debugging from developer options)
Here you can see the main features of the different applications.
- Main windows
- Danger alert scenarios
- Main windows
- Server frontend, normal operation
- Server frontend, danger event detection
- Server frontend, double danger event detection
- Sample of logged events
This project is licensed under the MIT License