This project aims to develop a time series forecasting system for predicting weekly fresh prices of vegetables and fruits in the Agrovia kingdom. The system uses historical weather and price data to forecast future prices, enabling the effective implementation of the Freezer Gambit, which allows Magnus Greenvale to preserve produce for better market prices.
The solution provides an API for forecasting future prices of agricultural commodities in various regions of Agrovia. The forecasts are based on a dataset that includes weather data (temperature, rainfall, humidity) and price data for commodities (fruits and vegetables). The system is designed to predict prices up to 4 weeks ahead and continuously adapt with new incoming data via streaming or API calls.
- Time Series Forecasting: Predicts weekly prices of commodities one month ahead.
- Data Pipeline: Incorporates new data dynamically through APIs or streaming sources.
- Dockerized: The entire solution is packaged within a Docker container for easy deployment.
- Business Insights: Provides actionable recommendations for AgroChill's cold storage strategy.
docker pull lasitharandula/agrochill:latest
docker run -p 8000:8000 lasitharandula/agrochill:latest
http://localhost:8000/docs
The API is also deployed via GitHub Actions and is accessible 24/7. The workflow:
- Deploys the API and makes it accessible via a public URL
- Runs a cron job at midnight (00:00 UTC) daily to retrain all models with the latest data
- Provides the API URL as an artifact in the GitHub Actions workflow
To access the deployed API:
- Go to the Actions tab in the GitHub repository
- Click on the latest successful workflow run
- Download the api-url artifact
- Open the URL in your browser to access the API documentation