TP Service Architecture based on meta-micro-micro-services
See Controller
See Application
Sensor-Service retrieves data: indoor temperature = 22°C, outdoor temperature = 20°C, CO2 = 900 ppm, presence = detected.
Decision-Service processes rules: Outdoor temperature is lower than indoor and between 18-27°C → Open windows. Presence detected → Keep lights on. CO2 threshold exceeded → Open windows further.
Actuator-Service executes: Sends command to actuators to open windows and turn on lights.
To run the different services using Spring Boot, follow these steps:
-
Build the project using Maven:
mvn clean install
-
Run the Sensor-Service:
mvn spring-boot:run -pl sensor-service
-
Run the Decision-Service:
mvn spring-boot:run -pl decision-service
-
Run the Actuator-Service:
mvn spring-boot:run -pl actuator-service
To start the front end navigate to frontend/ and execute python3 -m http.server