Skip to content

Latest commit

 

History

History
63 lines (52 loc) · 2.28 KB

README.md

File metadata and controls

63 lines (52 loc) · 2.28 KB

Jayesh Iyer - IoT Lab Vehicle Tracker Sensor Application

IoT Lab Vehicle Sensor Application to process vehicle readings and generate alerts for abormal values

Built With

Versioning

This whole project was maintained using Github a Versioning tool.

Coding Style

  • Insert Vehicle Information.
    Vehicle informations are inserted or updated using below REST API with method PUT.

    PUT http://localhost:8080/CarTracker/rest/vehicle
    
  • Insert Vehicle Readings.
    Vehicle Readings are inserted using below REST API with method PUT.

    POST http://localhost:8080/CarTracker/rest/reading
    
  • Get Vehicle Informations.
    Vehicle informations are retreived using below REST API with method GET.

    GET http://localhost:8080/CarTracker/rest/vehicle
    
  • Get All Vehicle HIGH Priority Alerts.
    Vehicle Alerts that have Priority HIGH are retreived using below REST API with method GET.
    Note : Time conversion is implied in the workflow to convert current time from EST to UTC.

    GET http://localhost:8080/CarTracker/rest/alert
    
  • Get Vehicle Specific Alerts.
    All alerts for a specific vehicle are retreived using below REST API with method GET.

    GET http://localhost:8080/CarTracker/rest/alert/vehicle/{vin}
    

Prerequisite

  • Install Java 1.7 or latest.
  • Install MongoDB and Apache Tomcat Server.

Steps to Run

  • Download or Clone Repository to local directory git clone URL.
  • Open Command Prompt and navigate to local directory cd <localdirectory-path>.
  • Open the project using Eclipse IDE.
  • Install maven dependencies on Eclipse IDE.
    Right Click on Project >> Run As >> Maven Build
  • Start MongoDB server and import given database.
    mongorestore -d Sensor <localdirectory-path>/Sensor/ -u username -p password
  • Start the Apache server
  • Use provided REST APIs to test the application.

Author

  • Jayesh Iyer

Acknowledgments