- maven
- python3
- python3-numpy
- Check out D3S_Server repository.
- In directory Server run:
mvn package
and after thatmvn spring-boot:run
. - After the spring boot server started, go to directory Core and run
python3 main.py
.
- Check out Smartphone-Sensing-Framework repository from
github.com/dcseteame/Smartphone-Sensing-Framework
and make sure to be in branchD3S@SSF2.0_AndroidStudio_2019
. - In
ConfigApp.java
changebackendURL
to the IP address of the machine, where the backend runs. - Build and run the app on at least 2 smartphones.
- Place both smartphones side by side on a table and wait for both to connect and register to the server. By observing the debug output of the python application, the connected devices can be noticed. Alternatively all registered devices can be looked up at the web page of the spring boot server:
http://{IP}:35673/devices
. - Shake the table slightly. Both smartphones should now send data to the server. After a moment the python application should print out
EARTHQUAKE!
at the debug output. - Now take one smartphone and put it on another table.
- Shake ONE of both tables. Make sure the other table doesn't get affected.
- The system should not report any earthquakes.