How raghupathi24891a0545/ag-marknet works
Agri Connect is a bilingual smart-farming platform: farmers use the web app to provide farm details and location, request analysis, and receive crop/fertilizer recommendations alongside weather, soil, market, alert, and disease information. The frontend routes feature pages through a shared API client to Flask; backend analysis combines agronomic filtering and ML with location-based ETL, while a separate image-detection service supports crop diagnosis. The README documents major integrations and capabilities; some backend call details and several feature implementations were not sampled, so undocumented links are omitted.
Main entry points: app.js Page Router · api.py Flask API · api.js API Client · analysis.js Farm Analysis
Components 28
Farmer Web App
- Page Router
frontend/js/app.js - API Client
frontend/js/api.js - Farm Analysis
frontend/js/pages/analysis.js - Weather Page
frontend/js/pages/weather.js - Market Page
frontend/js/pages/market.js - Crop Doctor
frontend/js/pages/cropDoctor.js - Chatbot
frontend/js/pages/chatbot.js - Alerts Page
frontend/js/pages/alerts.js - Expert Directory
frontend/js/pages/experts.js - Home Dashboard
frontend/js/pages/home.js - English-Telugu
frontend/js/i18n.js - Data Charts
frontend/js/charts.js
Farm Intelligence
- Flask API
backend/api.py - Crop & Fertilizer ML
backend/predictions.py - Farm Data Store
backend/models/database.py
Agricultural Data
- Weather ETL
backend/etl/weather_etl.py - Soil ETL
backend/etl/soil_etl.py - Geocoding ETL
backend/etl/geocoding_etl.py - Market ETL
backend/etl/market_etl.py - Agriculture News
backend/etl/news_etl.py
Farmer Support
- Alert Engine
backend/alerts/alert_engine.py - Leaf Disease Service
image_detection/app.py
Other components
- Farmer
- OpenWeatherMap
- SoilGrids
- Geocoding Providers
- Agmarknet API
- News Sources
Connections 35
- Farmer → Page Router: uses
README.md - Page Router → Farm Analysis: routes to
frontend/js/app.js - Page Router → Weather Page: routes to
frontend/js/app.js - Page Router → Market Page: routes to
frontend/js/app.js - Page Router → Crop Doctor: routes to
frontend/js/app.js - Page Router → Chatbot: routes to
frontend/js/app.js - Page Router → Alerts Page: routes to
frontend/js/app.js - Page Router → Expert Directory: routes to
frontend/js/app.js - Page Router → Home Dashboard: routes to
frontend/js/app.js - Farm Analysis → API Client: requests analysis
frontend/js/pages/analysis.js - Weather Page → API Client: requests data
frontend/js/pages/weather.js - Market Page → API Client: requests prices
frontend/js/pages/market.js - Crop Doctor → API Client: requests diagnosis
frontend/js/pages/cropDoctor.js - Chatbot → API Client: requests answers
frontend/js/pages/chatbot.js - Alerts Page → API Client: requests alerts
frontend/js/pages/alerts.js - Farm Analysis → Data Charts: renders charts
frontend/js/pages/analysis.js - Weather Page → Data Charts: renders charts
frontend/js/pages/weather.js - Market Page → Data Charts: renders charts
frontend/js/pages/market.js - Page Router → English-Telugu: registers language changes
frontend/js/app.js - API Client → Flask API: sends API requests
frontend/js/api.js - API Client → Leaf Disease Service: uploads leaf images
frontend/js/api.js - Flask API → Crop & Fertilizer ML: requests predictions
backend/api.py - Flask API → Farm Data Store: uses models
backend/api.py - Flask API → Weather ETL: fetches weather
backend/api.py - Flask API → Soil ETL: fetches soil
backend/api.py - Flask API → Geocoding ETL: resolves location
backend/api.py - Flask API → Market ETL: fetches prices
backend/api.py - Flask API → Agriculture News: fetches news
backend/api.py - Flask API → Alert Engine: generates alerts
backend/api.py - Alert Engine → Weather ETL: fetches forecast
backend/alerts/alert_engine.py - Weather ETL → OpenWeatherMap: fetches conditions
README.md - Soil ETL → SoilGrids: retrieves soil data
README.md - Geocoding ETL → Geocoding Providers: resolves coordinates
README.md - Market ETL → Agmarknet API: fetches live prices
README.md - Agriculture News → News Sources: collects news
README.md