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 β¦