How mohannadelhachimi/aquapilot-ai works
AquaPilot AI is a Streamlit water-management prototype with manager and farmer dashboards. Users enter through role-based demo authentication; the selected dashboard presents regional network monitoring or parcel-specific irrigation guidance, including weather-driven risk and energy recommendations, salinity scenarios, and water-token trading. Simulated consumption supports leak analysis, while weather and climatology use external data sources. Edges reflect README descriptions and the supplied source index or excerpts; unsampled implementation details are not inferred.
Main entry points: farm.py Farmer dashboard · regional.py Manager dashboard · app.py Role navigation · bourse.py Water-token market
Components 22
Entry and dashboards
- Role navigation
app.py - Demo authentication
core/auth.py - Farmer dashboard
views/farm.py - Manager dashboard
views/regional.py
Farm guidance
- Irrigation planning
core/agro.py - Evapo-Shield
core/evapo.py - Water-energy Nexus
core/nexus.py - SalinityGuard
core/salinity.py - Climate archive
connectors/climatology.py - Historical weather
connectors/nasa_power.py
Regional oversight
- Synthetic consumption
core/synthetic.py - Leak detection
core/anomaly.py - Network analysis
core/network.py
Shared services
- Weather forecast
connectors/open_meteo.py - Farm configuration
core/storage.py - Agronomic references
core/reference.py - Shared UI components
ui/style.py - Water-token market
core/bourse.py - Market state
data/bourse.json
Other components
- User
- Open-Meteo
- NASA POWER
Connections 34
- User → Role navigation: opens
README.md - Role navigation → Demo authentication: authenticates
app.py - Role navigation → Farmer dashboard: routes by role
README.md - Role navigation → Manager dashboard: routes by role
README.md - Role navigation → Shared UI components: uses
app.py - Farmer dashboard → Shared UI components: renders with
views/farm.py - Manager dashboard → Shared UI components: renders with
views/regional.py - Farmer dashboard → Farm configuration: loads and saves
views/farm.py - Farmer dashboard → Irrigation planning: plans irrigation
views/farm.py - Farmer dashboard → Evapo-Shield: computes risk
views/farm.py - Farmer dashboard → Water-energy Nexus: plans pumping
views/farm.py - Farmer dashboard → SalinityGuard: compares scenarios
views/farm.py - Farmer dashboard → Climate archive: loads climatology
views/farm.py - Farmer dashboard → Historical weather: loads history
views/farm.py - Farmer dashboard → Weather forecast: loads forecast
views/farm.py - Manager dashboard → Weather forecast: loads forecast
views/regional.py - Weather forecast → Open-Meteo: requests forecast
connectors/open_meteo.py - Historical weather → NASA POWER: requests history
README.md - SalinityGuard → Irrigation planning: uses crop water
core/salinity.py - SalinityGuard → Agronomic references: uses crop parameters
core/salinity.py - Irrigation planning → Agronomic references: uses crop parameters
core/agro.py - Evapo-Shield → Agronomic references: uses loss limits
core/evapo.py - Water-energy Nexus → Evapo-Shield: applies risk threshold
core/nexus.py - Water-energy Nexus → Agronomic references: uses energy parameters
core/nexus.py - Manager dashboard → Leak detection: detects and diagnoses
views/regional.py - Manager dashboard → Synthetic consumption: loads simulated data
views/regional.py - Manager dashboard → Network analysis: analyzes demand
views/regional.py - Manager dashboard → Water-energy Nexus: computes regional plan
views/regional.py - Manager dashboard → Evapo-Shield: uses risk model
views/regional.py - Farmer dashboard → Water-token market: uses token market
views/farm.py - Manager dashboard → Water-token market: administers market
views/regional.py - Water-token market → Demo authentication: seeds demo accounts
core/bourse.py - Water-token market → Synthetic consumption: seeds demo farms
core/bourse.py - Water-token market → Market state: persists state
README.md