A smart solution for unpredictable weather conditions in Agriculture with Kwara, Nigeria as a target area.
# 🌾 AgriSense Kwara: Real-Time Climate Monitoring & Maize Advisory Engine
**AgriSense Kwara** is a climate-smart decision engine designed to help smallholder farmers and agricultural cooperatives in Kwara State, Nigeria, optimize maize planting windows and mitigate drought risk.
By combining **agronomy fundamentals**, **satellite climate data**, and **rural-first communication protocols (SMS)**, AgriSense bridge the gap between high-tech machine learning models and farmers operating in low-bandwidth, off-grid environments.
---
## 📌 The Problem & Context
In Kwara State—a pivotal agricultural hub in Nigeria—unpredictable rainfall patterns and mid-season dry spells lead to early planting failures. Up to **40% of maize seeds planted in rural Nigeria fail to germinate** due to premature planting triggered by brief, false early rains.
While modern web dashboards exist, **over 70% of Nigeria’s farming population resides in rural areas** with limited access to smartphones or mobile internet.
---
## 💡 The AgriSense Solution
AgriSense uses a dual-layer approach:
1. **B2B Web Portal (Streamlit):** Designed for farm extension officers, seed companies, and grain aggregators to monitor live, localized climate risks across Kwara LGAs (Ilorin West, Kaiama, Asa, Ifelodun, etc.).
2. **Rural SMS Pipeline (Termii API):** Translates real-time climate predictions into simple, actionable SMS advisories delivered directly to feature phones in local dialects—requiring **zero app downloads or internet access** for the farmer.
---
## ✨ Key Features
* **Real-Time Climate Ingestion:** Fetches daily precipitation, temperature ranges, and 7-day rolling rainfall totals via Open-Meteo & GEE climate endpoints.
* **Automated Planting Decision Engine:**
* 🟢 **SAFE TO PLANT:** Sufficient 7-day moisture threshold ($\ge 30\text{mm}$) and low dry-spell streak.
* 🟡 **CAUTION / HOLD:** Moderate moisture; flags a 24–48 hr observation window.
* 🔴 **DO NOT PLANT:** High drought/heat risk; alert …