Internet of Things -like web-application for monitoring construction site air quality.
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.
-
Get JSON-data from device
- Device ID
- Time
- Pollution
- Temp
- Humidity
- Device ID
-
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.
-
- Customer model Storing customer data. Login information, devices owned, email etc.