How thamidu-nadun/iot-green-house works
Main Components
a. Hardware Layer:
• Sensors (DHT22, Soil Moisture Sensor) to the ESP32
• Actuators (Relay Module controlling fans, pumps) connected to ESP32
• Power supply connections (5V USB, 12V)
b. Communication Layer:
• WiFi connection from ESP32 to the network
• HTTP/WebSocket protocols for data transmission
c. Software Stack:
• Frontend (React Application):
• Main components structure (Dashboard, Charts, Sensors)
• Asset management (SCSS/CSS)
• Component hierarchy
d. Backend Layer:
• Python server (app.py)
• API endpoints for data handling
Component Relationships
• Bidirectional data flow between ESP32 and Python backend
• REST/WebSocket communication between backend and frontend
• Data flow between React components
• Sensor data paths to visualization components
Specific Implementation Details
Frontend Structure:
Dashboard
• Main Display (Dashboard.jsx)
• Monitoring Components
• TemperatureSection
• Charts (Bar, Circular, Line)
• Sensor Cards
• Control Interface
Additional Elements
Supporting elements:
• System requirements and dependencies
• Data flow direction indicators
• Component version information
Critical Aspects to Highlight
• Real-time data flow paths
• Security implementations
• Error handling routes
• Scalability points
• Backup/failover systems