adds infrastructuur uitleg

This commit is contained in:
Sietse Jonker
2024-02-09 12:32:20 +01:00
parent 9a9b81ae3c
commit bff5a619fa

27
docs/infrastructuur.md Normal file
View File

@@ -0,0 +1,27 @@
# Infrastructuur
## Database en nodes
![Database en nodes](assets/ImagesSp1/Sp1DataTrack.jpg)
You can see that in the picture we've drew all the nodes and the tables for the database, every node has multiple sensors and only node 1 has an extra screen. The database is used to store all the data that the nodes collect. Here is a picture that shows what the nodes do:
![Nodes](assets/ImagesSp1/Sp1Node.jpg)
You can see that every node measures:
- Temperature
- Humidity
- CO2 level
- Sound level
The nodes are connected to the database using post requests, every node sends a post request to the database with the sensordata it has collected. The database then stores this data in the right table. This is the table called "Node" in the first picture.
## Database
The database is used to store all the data that the nodes collect. The database is a MySQL database and is hosted on the Raspberry Pi. The database has 3 tables:
- One for the nodes
- One for the enquete data
- one for the questions of the enquete
We are considering making a table to connect the enquetedata and questions.