/protopaja-web

Protopaja 2018-kesä projektityö

Primary LanguageHTMLMIT LicenseMIT

Protopaja

IoT web app

Internet of Things -like web-application for monitoring construction site air quality.

Techniques used:

Arduino WifiClient: Send data to server.

Apache: Run server.

Django: Framework for application.

Django channels: Make websocket connection to client.

SQLite: Database for managing devices and data.

Chart.js: Draw charts from data.

Devicedata application

  1. Get JSON-data from device

    • Device ID
      • Time
      • Pollution
      • Temp
      • Humidity
  2. Make two models out of JSON-data

    • Device

      • Device ID : Specific ID number. Generated.
      • Device info : Device name, location etc. Given by user.
      • Log: History of warnings. Generated
    • Data

      • ForeignKey to Device : Links many Data-models to one Device.
      • Date : Date of data received by Arduino master device.
      • Pollution : Pollution data. (numbers/labels)?
      • Temp : Temperature as float.
      • Humidity : Humidity as int.

Future improvements

  1. Customer model Storing customer data. Login information, devices owned, email etc.