AI-powered water management for South African agriculture
# AgriFlow Intelligence
A production-ready agricultural temperature monitoring dashboard for South African farmers. Real-time IoT sensor data visualization with intelligent heat alerts and crop protection insights.
## 🎯 Project Overview
AgriFlow Intelligence is an AI-powered temperature monitoring platform designed for commercial farmers in Free State and Western Cape provinces. This MVP focuses on:
- **Real-time temperature monitoring** from farm sensors
- **Automated heat alerts** with configurable thresholds
- **Rule-based field intelligence** for irrigation decisions
- **Historical data analysis** with interactive charts
- **Built-in sensor simulator** for testing and demos
## 🚀 Features
### Core Features
- ✅ **Live Temperature Dashboard** - Hero display with color-coded states (safe/warning/critical)
- ✅ **Interactive Line Chart** - Recharts visualization with threshold reference lines
- ✅ **Smart Alert System** - Automatic warning and critical alerts
- ✅ **Field Intelligence Panel** - Rule-based insights for crop management
- ✅ **Sensor Simulator** - Generate test readings with configurable frequency
- ✅ **CSV Export** - Download temperature data for analysis
- ✅ **Time Range Filtering** - View live, today, or 7-day historical data
### Technical Features
- ✅ **Backend-Ready API Layer** - All endpoints configured and documented
- ✅ **Mock Data Fallback** - Works without backend for demos
- ✅ **Real-time Polling** - Auto-refresh with configurable intervals
- ✅ **LocalStorage Persistence** - Save threshold settings
- ✅ **Responsive Design** - Dark theme optimized for data density
- ✅ **South African Context** - SAST timezone, regional crop references
## 📁 Project Structure
```
/src
├── app/
│ ├── components/
│ │ ├── Navbar.tsx # Top navigation with status indicators
│ │ ├── TemperatureHero.tsx # Large current temp display
│ │ ├── DailyStats.tsx # Min/Max/Avg cards
│ │ ├── LiveChart.tsx # Recharts line …