A machine learning-based web application that predicts rainfall probability based on weather parameters.
- Real-time rainfall prediction
- Location-based weather data
- Historical prediction tracking
- Weather trend visualization
- Mobile-responsive design
- Python 3.11
- Flask
- SQLite
- scikit-learn
- Tailwind CSS
- Chart.js
- Clone the repository:
git clone https://github.com/yourusername/rainfall-prediction.git
cd rainfall-prediction- Install dependencies:
pip install -r requirements.txt- Set up environment variables:
Create a
.envfile with:
OPENWEATHER_API_KEY=your_api_key_here
FLASK_ENV=development
- Run the application:
python app.py- Open your browser and go to
http://localhost:5000
app.py: Main Flask applicationdatabase.py: SQLite database operationstemplates/: HTML templatesmodels/: Trained ML modelsstatic/: Static assets
GET /: Home pagePOST /predict: Make rainfall predictionGET /history: Get prediction historyGET /locations: Get saved locationsPOST /add_location: Add new location
- Fork the repository
- Create your feature branch
- Commit your changes
- Push to the branch
- Create a Pull Request
MIT License