# loicdl31/orchidia architecture

> Architecture diagram of the GitHub repository loicdl31/orchidia, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-16). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/loicdl31/orchidia
- Repository: https://github.com/loicdl31/orchidia

## Overview

Orchidia is an IoT botanical-monitoring platform: sensors feed Arduino boards, then MQTT and Node-RED, with measurements stored in MySQL and presented by a PHP web application. The documented product includes live dashboards, plant/board/sensor management, history and reports, configurable alerts, notifications, and operational-health detection. The available tree contains only the README, so component paths and internal implementation links cannot be verified; the graph reflects documented architecture and capabilities only.

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ingest["Data collection"]
  node_sensors["Environmental sensors"]
  node_arduino["Arduino boards"]
  node_mqtt["MQTT broker"]
  node_nodered["Node-RED flow"]
  node_mysql[("Measurement database")]
end

subgraph group_web["Web operations"]
  node_phpapp["PHP web application"]
  node_plants["Plant management"]
  node_boards["Board management"]
  node_sensorid["Sensor identification"]
end

subgraph group_insight["Monitoring and insights"]
  node_dashboard["Live dashboard"]
  node_history["Measurement history"]
  node_reports["Report generation"]
  node_alerts["Configurable alerts"]
  node_notifications["Automatic notifications"]
  node_health["Equipment health"]
  node_recommendations["Growing recommendations"]
end

subgraph group_experience["User experience"]
  node_preferences["Display preferences"]
  node_languages["Multilingual interface"]
  node_accessibility["Accessibility options"]
  node_userdocs["User documentation"]
end

node_grower(("Grower"))

node_sensors -->|"send readings"| node_arduino
node_arduino -->|"publish readings"| node_mqtt
node_mqtt -->|"deliver messages"| node_nodered
node_nodered -->|"store measurements"| node_mysql
node_mysql -->|"supply data"| node_phpapp
node_grower -->|"uses"| node_phpapp
node_phpapp -->|"provides management"| node_plants
node_phpapp -->|"provides management"| node_boards
node_phpapp -->|"identifies sensors"| node_sensorid
node_phpapp -->|"presents live data"| node_dashboard
node_phpapp -->|"presents history"| node_history
node_phpapp -->|"generates reports"| node_reports
node_phpapp -->|"provides configuration"| node_alerts
node_phpapp -->|"provides notifications"| node_notifications
node_phpapp -->|"detects missing data"| node_health
node_phpapp -->|"provides recommendations"| node_recommendations
node_phpapp -->|"supports customization"| node_preferences
node_phpapp -->|"supports languages"| node_languages
node_phpapp -->|"supports accessibility"| node_accessibility
node_phpapp -->|"provides documentation"| node_userdocs

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_sensors,node_arduino,node_mqtt,node_nodered,node_mysql toneBlue
class node_phpapp,node_plants,node_boards,node_sensorid toneAmber
class node_dashboard,node_history,node_reports,node_alerts,node_notifications,node_health,node_recommendations toneMint
class node_preferences,node_languages,node_accessibility,node_userdocs toneRose
class node_grower toneIndigo
```

## Components

### Data collection

- **Environmental sensors**
- **Arduino boards**
- **MQTT broker**
- **Node-RED flow**
- **Measurement database**

### Web operations

- **PHP web application**
- **Plant management**
- **Board management**
- **Sensor identification**

### Monitoring and insights

- **Live dashboard**
- **Measurement history**
- **Report generation**
- **Configurable alerts**
- **Automatic notifications**
- **Equipment health**
- **Growing recommendations**

### User experience

- **Display preferences**
- **Multilingual interface**
- **Accessibility options**
- **User documentation**

### Other components

- **Grower**

## Connections

- Environmental sensors → Arduino boards: send readings (evidence: `README.md`)
- Arduino boards → MQTT broker: publish readings (evidence: `README.md`)
- MQTT broker → Node-RED flow: deliver messages (evidence: `README.md`)
- Node-RED flow → Measurement database: store measurements (evidence: `README.md`)
- Measurement database → PHP web application: supply data (evidence: `README.md`)
- Grower → PHP web application: uses (evidence: `README.md`)
- PHP web application → Plant management: provides management (evidence: `README.md`)
- PHP web application → Board management: provides management (evidence: `README.md`)
- PHP web application → Sensor identification: identifies sensors (evidence: `README.md`)
- PHP web application → Live dashboard: presents live data (evidence: `README.md`)
- PHP web application → Measurement history: presents history (evidence: `README.md`)
- PHP web application → Report generation: generates reports (evidence: `README.md`)
- PHP web application → Configurable alerts: provides configuration (evidence: `README.md`)
- PHP web application → Automatic notifications: provides notifications (evidence: `README.md`)
- PHP web application → Equipment health: detects missing data (evidence: `README.md`)
- PHP web application → Growing recommendations: provides recommendations (evidence: `README.md`)
- PHP web application → Display preferences: supports customization (evidence: `README.md`)
- PHP web application → Multilingual interface: supports languages (evidence: `README.md`)
- PHP web application → Accessibility options: supports accessibility (evidence: `README.md`)
- PHP web application → User documentation: provides documentation (evidence: `README.md`)
