How ayoubziat/retrofit-heizungsanlage works
Main Components
• Main Application: Represented by src/main.cpp, which is the entry point.
• Communication Module: Found under lib/Comm including configuration files and credentials. This handles data transmission and communication with external services.
• Sensor Integration: The lib/dht module (dht_sensor.cpp, dht_sensor.h) provides sensor data (likely temperature and possibly humidity) for the heating system.
• Opto Module: Located in lib/Opto (optolink.cpp & optolink.h), this seems to handle control or interfacing with specific heating system components.
• External Integration Services:
• Grafana—under lib/Grafana, which provides a dashboard (grafana_dashboard.json).
• Node-RED flows—under lib/Node-red-flow for wiring up flows and orchestrating external automation.
• InfluxDB—mentioned in the README setup guide and likely used to store time-series sensor data.
Interactions
• The Main Application initiates the system and calls upon the Communication Module (Comm) to handle data transfer.
• The Communication Module likely utilizes configuration and credentials (credentials.h) to securely transmit sensor or control data.
• Sensor data is retrieved from the DHT module and may also integrate readings via the Opto module.
• External services are connected via APIs or other communication protocols defined in the Comm module.
Architectural Patterns & Design Principles
• Modularity: The clear separation into various lib directories (Comm, dht, Opto, Grafana, Node-red-flow) emphasizes a modular structure where each component encapsulates a specific functionality.
• Integration with External Systems: Note that the external services (InfluxDB, Grafana, Node-RED) are critical to the project’s monitoring and control capabilities.