An integrated web application providing weather forecasts, crop-specific advisories and livestock care recommendations to support data-driven decision making in agriculture.
- Overview
- Objectives
- Problem Statement
- Major Challenges
- SDG Alignment
- Technical Details
- Key Features
- UI Design Architecture
- Installation
- Usage
- Testing
- Authors
- Acknowledgements
- References
The Weather-based Agro-Advisories application delivers timely, location-specific weather information—including rainfall, temperature, humidity and wind speed—and provides tailored advisories for crops and livestock. It integrates impact-based forecasting and warning services, empowering farmers to make informed decisions and mitigate risks.
- Enhance agricultural resilience through precision advisories.
- Integrate advanced, impact-based weather forecasting.
- Improve resource optimisation and risk mitigation.
- Provide an intuitive web-based platform for end users.
Unpredictable weather and lack of tailored advisory services expose farmers to crop failure and livestock health issues. Existing solutions are often generic, leading to inefficiencies and economic losses.
- Limited Precise Advisories. Generic forecasts insufficient for specific regions, crops and livestock.
- Delayed Warnings. Absence of impact-based alerts hampers timely action.
- Data Complexity. Farmers struggle with interpreting raw meteorological data.
- Connectivity Constraints. Rural areas often have poor internet access.
- Holistic Management. Lack of integrated livestock care advisories.
Goal | Alignment Point |
---|---|
SDG 2: Zero Hunger | Promotes sustainable agriculture and improved nutrition through precise advisories, reducing crop and livestock losses. |
SDG 13: Climate Action | Empowers communities to adapt to climate variability with impact-based warnings and data-driven practices. |
- Frontend: HTML5, Tailwind CSS, JavaScript
- Backend: PHP, MySQL
- APIs: OpenWeatherMap for meteorological data
- Database Schema:
- Database:
agradata
- Table:
mastertable
(ID
,State
,District
,Language
,fileName
,folderPath
)
- Database:
- Real-time current weather and 5‑day forecast.
- Region- and crop-specific advisories.
- Livestock care recommendations.
- Impact-based forecasting and alerting.
- PDF view and download of advisory reports.
- Admin dashboard for data upload and user management.
Wireframes and UI flow diagrams are available in the docs/ui
directory. Highlights include:
- Search Interface: City or district lookup.
- Advisory Dashboard: Interactive forecast cards and PDF viewers.
- Admin Panel: Secure upload of advisory documents and data management.
-
Clone the repository
git clone https://github.com/DebarjunChakraborty/WeatherAdvisory_Dec2023.git cd WeatherAdvisory_Dec2023
-
Configure database
- Create
agradata
in MySQL. - Import
schema/mastertable.sql
.
- Create
-
Set environment
- Copy
.env.example
to.env
and update credentials. - Obtain an API key from OpenWeatherMap and add to
.env
.
- Copy
-
Install dependencies
composer install npm install
-
Serve application
php -S localhost:8000 -t public
- Farmers & Extension Workers: Access via browser, enter location to retrieve advisories.
- Admins: Login to upload/adapt crop and livestock advisory PDFs.
Automated tests were executed using Selenium IDE to validate:
- Login flows (admin and user).
- Forecast retrieval and display.
- PDF view/download operations.
- Impact-based alert generation.
- Debarjun Chakraborty
Thanks to Reliance Foundation for the internship opportunity and guidance.
- OpenWeatherMap API: https://openweathermap.org/api
- Tailwind CSS: https://tailwindcss.com/
- Selenium IDE: https://www.selenium.dev/selenium-ide/