# superodin404-debug/strawberry-agri-automation-fertigation-system architecture

> Architecture diagram of the GitHub repository superodin404-debug/strawberry-agri-automation-fertigation-system, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/superodin404-debug/strawberry-agri-automation-fertigation-system
- Repository: https://github.com/superodin404-debug/strawberry-agri-automation-fertigation-system

## Overview

SAAFS’s evidenced runtime is a strawberry fertigation batch calculator: the sample entry point requests scaled ingredient amounts for a growth stage and prints a recipe. The calculator also exposes stage lookup, lifecycle summaries, ingredient and formula data, and input validation. The README describes broader telemetry, cloud/edge control, and vision ambitions, but the sampled code does not show those integrations; this map focuses on implemented behavior.

Main entry points: [`strawberry-agri-automation-fertigation-system/ strawberry_fertigation_calculator.py`](https://github.com/superodin404-debug/strawberry-agri-automation-fertigation-system/blob/main/strawberry-agri-automation-fertigation-system/%20strawberry_fertigation_calculator.py) (Fertigation Calculator), [`strawberry-agri-automation-fertigation-system/main.py`](https://github.com/superodin404-debug/strawberry-agri-automation-fertigation-system/blob/main/strawberry-agri-automation-fertigation-system/main.py) (Example Runner)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Example Entry"]
  node_sample["Example Runner<br/>[main.py]"]
end

subgraph group_calculation["Recipe Calculation"]
  node_calculator["Fertigation Calculator"]
  node_ingredients["Ingredient Catalog"]
  node_stages["Stage Formulas"]
  node_validation["Input Validation"]
  node_scaling["Dosage Scaling"]
end

subgraph group_output["Recipe Output"]
  node_batch["Batch Sheet Renderer"]
  node_stdout(("Console Output"))
end

node_user(("Operator"))

node_user -->|"runs example"| node_sample
node_sample -->|"requests calculation"| node_calculator
node_sample -->|"requests recipe"| node_calculator
node_calculator -->|"validates inputs"| node_validation
node_calculator -->|"retrieves formula"| node_stages
node_calculator -->|"scales dosages"| node_scaling
node_batch -->|"prints sheet"| node_stdout
node_calculator -.->|"labels materials"| node_ingredients

click node_sample "https://github.com/superodin404-debug/strawberry-agri-automation-fertigation-system/blob/main/strawberry-agri-automation-fertigation-system/main.py"
click node_calculator "https://github.com/superodin404-debug/strawberry-agri-automation-fertigation-system/blob/main/strawberry-agri-automation-fertigation-system/%20strawberry_fertigation_calculator.py"
click node_ingredients "https://github.com/superodin404-debug/strawberry-agri-automation-fertigation-system/blob/main/strawberry-agri-automation-fertigation-system/%20strawberry_fertigation_calculator.py"
click node_stages "https://github.com/superodin404-debug/strawberry-agri-automation-fertigation-system/blob/main/strawberry-agri-automation-fertigation-system/%20strawberry_fertigation_calculator.py"
click node_validation "https://github.com/superodin404-debug/strawberry-agri-automation-fertigation-system/blob/main/strawberry-agri-automation-fertigation-system/%20strawberry_fertigation_calculator.py"
click node_scaling "https://github.com/superodin404-debug/strawberry-agri-automation-fertigation-system/blob/main/strawberry-agri-automation-fertigation-system/%20strawberry_fertigation_calculator.py"
click node_batch "https://github.com/superodin404-debug/strawberry-agri-automation-fertigation-system/blob/main/strawberry-agri-automation-fertigation-system/%20strawberry_fertigation_calculator.py"

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_sample toneBlue
class node_calculator,node_ingredients,node_stages,node_validation,node_scaling toneAmber
class node_batch,node_stdout toneMint
class node_user toneIndigo
```

## Components

### Example Entry

- [Example Runner](https://github.com/superodin404-debug/strawberry-agri-automation-fertigation-system/blob/main/strawberry-agri-automation-fertigation-system/main.py): `strawberry-agri-automation-fertigation-system/main.py`

### Recipe Calculation

- [Fertigation Calculator](https://github.com/superodin404-debug/strawberry-agri-automation-fertigation-system/blob/main/strawberry-agri-automation-fertigation-system/%20strawberry_fertigation_calculator.py): `strawberry-agri-automation-fertigation-system/ strawberry_fertigation_calculator.py`
- [Ingredient Catalog](https://github.com/superodin404-debug/strawberry-agri-automation-fertigation-system/blob/main/strawberry-agri-automation-fertigation-system/%20strawberry_fertigation_calculator.py): `strawberry-agri-automation-fertigation-system/ strawberry_fertigation_calculator.py`
- [Stage Formulas](https://github.com/superodin404-debug/strawberry-agri-automation-fertigation-system/blob/main/strawberry-agri-automation-fertigation-system/%20strawberry_fertigation_calculator.py): `strawberry-agri-automation-fertigation-system/ strawberry_fertigation_calculator.py`
- [Input Validation](https://github.com/superodin404-debug/strawberry-agri-automation-fertigation-system/blob/main/strawberry-agri-automation-fertigation-system/%20strawberry_fertigation_calculator.py): `strawberry-agri-automation-fertigation-system/ strawberry_fertigation_calculator.py`
- [Dosage Scaling](https://github.com/superodin404-debug/strawberry-agri-automation-fertigation-system/blob/main/strawberry-agri-automation-fertigation-system/%20strawberry_fertigation_calculator.py): `strawberry-agri-automation-fertigation-system/ strawberry_fertigation_calculator.py`

### Recipe Output

- [Batch Sheet Renderer](https://github.com/superodin404-debug/strawberry-agri-automation-fertigation-system/blob/main/strawberry-agri-automation-fertigation-system/%20strawberry_fertigation_calculator.py): `strawberry-agri-automation-fertigation-system/ strawberry_fertigation_calculator.py`
- **Console Output**

### Other components

- **Operator**

## Connections

- Operator → Example Runner: runs example (evidence: `strawberry-agri-automation-fertigation-system/main.py`)
- Example Runner → Fertigation Calculator: requests calculation (evidence: `strawberry-agri-automation-fertigation-system/main.py`)
- Example Runner → Fertigation Calculator: requests recipe (evidence: `strawberry-agri-automation-fertigation-system/main.py`)
- Fertigation Calculator → Input Validation: validates inputs (evidence: `strawberry-agri-automation-fertigation-system/ strawberry_fertigation_calculator.py`)
- Fertigation Calculator → Stage Formulas: retrieves formula (evidence: `strawberry-agri-automation-fertigation-system/ strawberry_fertigation_calculator.py`)
- Fertigation Calculator → Dosage Scaling: scales dosages (evidence: `strawberry-agri-automation-fertigation-system/ strawberry_fertigation_calculator.py`)
- Batch Sheet Renderer → Console Output: prints sheet (evidence: `strawberry-agri-automation-fertigation-system/ strawberry_fertigation_calculator.py`)
- Fertigation Calculator → Ingredient Catalog: labels materials (evidence: `strawberry-agri-automation-fertigation-system/ strawberry_fertigation_calculator.py`)
