Kenya Weather Intelligence Dashboard with Agricultural Advisory
# Kenya Weather Intelligence Dashboard
A responsive React dashboard for Kenyan weather powered by Open-Meteo API. Features intelligent agricultural advisory, crop recommendations, and pest risk assessment based on real-time weather data.
## Features
- County-based weather selection with searchable dropdown
- Auto location weather detection using browser geolocation
- Current weather card with temperature, humidity, wind and feels-like details
- 7-day forecast cards
- Scrollable hourly forecast for the current day
- AI weather insight card
- Agricultural advisory with crop recommendations
- Pest risk level assessment
- Soil moisture indicators
- Dark/light theme toggle
- Fully responsive design (mobile, tablet, desktop)
## Setup
1. Clone the repository:
```bash
git clone
github.com
cd weather-ai-dashboard
```
2. Install dependencies:
```bash
npm install
```
3. Create a `.env` file based on `.env.example`:
```bash
cp .env.example .env
```
Note: This project uses Open-Meteo API which is free and requires no API key by default.
4. Start the app:
```bash
npm start
```
The app will open at `
localhost`
## Project Structure
```
src/
├── App.js # Main app logic and state
├── App.css # Global styles and responsive design
├── api/
│ └── weatherService.js # Weather API integration
├── components/
│ ├── SearchBar.jsx # County selection dropdown
│ ├── CurrentWeather.jsx # Current weather display
│ ├── ForecastCard.jsx # Daily forecast card
│ ├── HourlyForecast.jsx # Hourly forecast scroll
│ ├── AISummary.jsx # AI-generated weather summary
│ ├── AgriculturalAdvisory.jsx # Crop & farming recommendations
│ └── Loader.jsx # Loading spinner
└── data/
├── kenyaCounties.js # County list data
└── agriculturalData.js # Crop data and agricultural logic
```
## Features in Detail
### Agricultural Advisory
- Real-time …