This project is established with Flask, MySQL, Sprak and AWS. The frontend was developed with html. On the other hand, Flask was used to build backend, API server and router. MySQL was used to build the database.
- Generate a summary to show the driving behavior of each driver.
- Monitor the driving speed of each driver in real time.
For 1), display the driving behavior information during the given period in a HTML table. The information should includes the car plate number, the cumulative number of times of overspeed and fatigue driving, the total time of overspeed and neutral slide.
For 2), use a diagram to visualize the driving speed of each driver during the given period. The diagram automatically updated every 30 seconds for monitoring the driving speed.
SetUpDatabase.sql was used to set up both databases for function 1 and function 2.
spark_select.py was used to analyze driver driving behavior since the data( detail-records ) is so big. Also, uploadDrivingBehavior.py was used to upload the result to mysql.
Considering not having a real-time monitoring device, write.py is used to emulate it and generate data.