How gopu-005/farmer_app-main works
This is a web application for farm management and crop-health support. Farmers can onboard plots and crops, review plot-specific dashboard information, and submit plant images for disease prediction and treatment guidance. The sampled backend also generates crop workflows and market estimates using an AI API, fetches weather data, and reads or updates per-user plot records. The templates indicate login, onboarding, dashboard, history, and prediction views. Several routes and template-to-backend connections are unsampled, so those links are not asserted.
Main entry points: app.py Web application
Components 16
Farmer views
- Login view
templates/login.html - Onboarding view
templates/onboarding.html - Dashboard view
templates/dashboard.html - History view
templates/history.html - Prediction view
templates/prediction.html
Application workflows
- Web application
app.py - Plot onboarding
app.py - Plot dashboard
app.py - Image diagnosis
app.py - Crop workflows
app.py - Market estimates
app.py - Plant classifier
app.py
External services
- Plot records
- Gemini AI service
- WeatherAPI
Other components
- Farmer
Connections 13
- Farmer → Web application: uses
- Web application → Plot onboarding: routes
app.py - Web application → Plot dashboard: routes
app.py - Web application → Image diagnosis: routes
app.py - Plot onboarding → Plot records: writes plots
- Plot dashboard → Plot records: reads plots
app.py - Plot dashboard → WeatherAPI: fetches forecast
app.py - Plot onboarding → Crop workflows: generates plans
app.py - Crop workflows → Gemini AI service: requests generation
app.py - Image diagnosis → Plant classifier: predicts disease
app.py - Image diagnosis → Plot records: reads location
app.py - Image diagnosis → Market estimates: requests estimate
app.py - Market estimates → Gemini AI service: requests estimate