How baddamakshaya01-star/agricast works
AgriCast AI helps farmers compare crop-price forecasts and field-specific crop recommendations. In the web workflow, a farmer uses the dashboard to request a forecast; the server reads market data and invokes the forecasting engine, then returns results for display. Crop recommendations are a distinct decision stage: the recommender evaluates field and risk inputs and calls the forecaster for harvest-price estimates. The CLI offers parallel access. The excerpts establish these main calls; some dashboard capabilities are documented but their individual routes are not shown.
Main entry points: data_generator.py Dataset Loader / Generator · server.py HTTP API · cli.py Forecast CLI · recommender.py Crop & Portfolio Advisor
Components 12
User Interfaces
- Web Dashboard
static/app.js - Translations
static/i18n.js - Forecast CLI
src/cli.py
Web Service
- HTTP API
src/server.py - Market Data & CSV Import
src/server.py
Decision Engines
- Price Forecasting
src/forecaster.py - Crop & Portfolio Advisor
src/recommender.py
Market Data
- Dataset Loader / Generator
src/data_generator.py - Market / Weather Dataset
data/crop_market_weather_data.csv - SQLite Market Store
data/agricast.db - Crop Profiles
data/crop_profiles.json
Other components
- Farmer / Planner
Connections 15
- Farmer / Planner → Web Dashboard: uses
README.md - Web Dashboard → HTTP API: requests forecast
static/app.js - Web Dashboard → Translations: reads translations
static/app.js - HTTP API → Price Forecasting: runs forecast
src/server.py - HTTP API → Crop & Portfolio Advisor: requests recommendations
src/server.py - HTTP API → Dataset Loader / Generator: loads market data
src/server.py - Crop & Portfolio Advisor → Price Forecasting: forecasts harvest prices
src/recommender.py - Crop & Portfolio Advisor → Dataset Loader / Generator: loads crop profiles
src/recommender.py - Dataset Loader / Generator → Market / Weather Dataset: loads / writes
src/data_generator.py - Dataset Loader / Generator → SQLite Market Store: writes dataset
src/data_generator.py - Dataset Loader / Generator → Crop Profiles: reads profiles
src/data_generator.py - Forecast CLI → Dataset Loader / Generator: loads data
src/cli.py - Forecast CLI → Price Forecasting: runs forecast
src/cli.py - Forecast CLI → Crop & Portfolio Advisor: requests advice
src/cli.py - Farmer / Planner → Forecast CLI: runs commands
README.md