diff --git a/docs/brainstorm/infrasturcture.md b/docs/brainstorm/infrasturcture.md index 8be7c12..3632b7e 100644 --- a/docs/brainstorm/infrasturcture.md +++ b/docs/brainstorm/infrasturcture.md @@ -21,3 +21,62 @@ In the middel layer we are showing the data flow and processing of the data at c ### UML diagram of software At the lowest level of our system we are showing how the software is designed. This is shown as a UML diagram. The diagram is made with mermaid. This shows the work flow of the different parts of the software which is running on the main server, for which we are using a Raspberry pi. The pi is located on the 6th floor of the school building in a locked server room. + +``` mermaid +classDiagram + +Node --> Raspberry pi : Websocket +Raspberry pi --> Website : getData +Raspberry pi <--> EnqueteNode : Websocket + +namespace Server { + class Raspberry pi { + +MariaDB + +Apache2 + +Python + Database() + Webserver() + Websocket() + + } + class Node { + +Co2 + +Temperature + +Humidity + +Tfok + +Sound + collectData() + + } +} + +namespace User { + class Website { + +Co2 + +Temperature + +Humidity + +Tfok + +Sound + +Graph + +Map + +Settings + GetData() + } + class EnqueteNode { + +Co2 + +Temperature + +Humidity + +Tfok + +Sound + +Graph + +Map + +QuestionResponse + EnqueteDisplay() + EnqueteButtons() + GetData() + + + } + +} +``` \ No newline at end of file