Back to catalogue
Project
Weather Forecast App
Farm weather forecaster and crop activity advisor: a React dashboard and Flask API with Random Forest models that predict weather readings and classify planting, fertilizing, or harvesting conditions for 5 Nigerian cities.
How it’s builtHow it’s built
Weather Forecast App · Farm weather forecaster and crop activity advisor for five Nigerian cities
I built a React dashboard and Flask API that take location, crop and current weather readings, predict the next readings with a Random Forest regressor, and classify whether conditions suit planting, fertilizing or harvesting with a Random Forest classifier. It covers 5 Nigerian cities and 5 crops, and earlier per-city models are kept in the repo.
- cities / crops supported
- 5 / 5
- farm activity classes
- 3
- weather variables forecast
- 5
- current models plus older per-city model/scaler files
- 2 + 10
Technology and what it does here
- scikit-learn RandomForestRegressor
- Multi-output forecast of the five weather variables (forecast-model.pk)
- scikit-learn RandomForestClassifier
- Activity recommendation from location, crop and weather (model.pk)
- Flask
- POST /predict loads models and returns forecast plus activity
- React 18 (Create React App)
- Dashboard form and forecast display, proxied to Flask on port 5000
- Radix UI Themes
- Dashboard components and icons
- pickle
- Model and LabelEncoder persistence
Implementation details
- Model classes were identified from pickle opcodes without loading: RandomForestClassifier, RandomForestRegressor and LabelEncoder.
- The classifier input is [location, crop, temperature, rainfall, humidity, soil moisture, wind speed].
Technologies
- React
- API Integration
