Skip to content

The reports component runs on a Node Js Express Server and reads the sensor data from MongoDB and provides a graphical representation of the data.

License

Notifications You must be signed in to change notification settings

hitdataexp/reportscomponent

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

36 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Urban Space Occupancy Analysis - Reports

Overview

This is a ECE Senior project on IoT and data analytics. The experiment intends to give an analytical synthesis of human behavior in a given space and time.

Software/Frameworks Used

  • Mongo DB
  • MongoChef IDE
  • NPM
  • Node Js
  • Angular Js
  • Bootstrap
  • AM Charts

The project holds 3 major stages.
  1. Data Collection

    The Sensor component - ( JAVA ) sits on an Application Server and listens to the Raspberry pi GPIO pins using the pi4j API. The sensor data is saved in to MongoDB. This data collectively provides an analytical representation of the data collected over a considerable period of time.

    • Motion Sensor to Raspberry Pi
    • MongoDB Data Storage

  2. Data Analysis

    Map Reduce is an algorithm to process huge volumes of data. The entire data process in basically broken into 2 steps.
    MAP Step - In this stage the data is grouped per day.
    Reduce Step - In this stage the value is summed for each day.
    The Map Reduce process is repeated for each of the sensors for the entire data base.

    For example let us consider the following set of data for a particular Sensor id : HALL_SENSOR
    # Sensor Id Day Time
    1 HALL_SENSOR Sunday 12:20:000
    2 HALL_SENSOR Sunday 17:50:000
    3 HALL_SENSOR Monday 22:32:000
    4 HALL_SENSOR Tuesday 11:10:000
    5 HALL_SENSOR Tuesday 12:22:000

    Mapped Data - (Step 1)

    Day Value
    Sunday [1, 1]
    Monday [1]
    Tuesday [1, 1]

    Reduced Data - (Step 2)

    Day Value
    Sunday 2
    Monday 1
    Tuesday 2

  3. Web Based Display
  4. The UI is built on Bootstrap Framework, ANgular JS running on Node.JS. The Application has MongoDB based security management. The Processed data is presented in the form of 2 charts

    • Daily View

      Occupancy volume per day in a week. This is displayed for each of Sensors.

About

The reports component runs on a Node Js Express Server and reads the sensor data from MongoDB and provides a graphical representation of the data.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published