AI-driven real-time climate risk analysis platform for detecting flood and heatwave threats using live weather intelligence.
π https://climate-shield.onrender.com
Climate Shield is a lightweight climate intelligence platform that combines:
- π¦ Real-time weather monitoring
- β Flood and heatwave risk analysis
- π€ AI-powered climate awareness chatbot
- π Modern analytics dashboard
- π Location-based weather insights
Users can enter:
- City
- State
- Country
and instantly receive:
- Live weather data
- Flood risk score
- Heatwave risk score
- Climate alerts
- Safety guidance
Climate Shield fetches live weather data using the OpenWeatherMap API and displays:
- Temperature
- Humidity
- Rainfall
- Wind Speed
The backend computes:
Based on:
- Rainfall
- Humidity
- Wind speed
Based on:
- Temperature
- Humidity
The platform automatically generates alerts such as:
- β Flood Risk Detected
- β Heatwave Risk Detected
- β No major climate risks detected
Climate Shield includes an integrated AI chatbot that provides:
- Flood awareness
- Heatwave precautions
- Cyclone safety guidance
- Climate change information
- Disaster preparedness suggestions
The chatbot is lightweight and rule-based.
Built using:
- HTML5
- CSS3
- Vanilla JavaScript
Frontend features:
- Glassmorphism UI
- Responsive design
- Animated result cards
- Interactive chatbot widget
- Live climate analysis
Powered by:
- Python
- Flask
- Flask-CORS
Backend responsibilities:
- Weather API communication
- Risk calculations
- Climate alert generation
- Chatbot API responses
- Frontend serving
| Technology | Purpose |
|---|---|
| Python | Backend logic |
| Flask | API server |
| Flask-CORS | Cross-origin support |
| HTML/CSS/JS | Frontend |
| OpenWeatherMap API | Live weather data |
| Render | Deployment |
Climate-Shield/
βββ AI-chatbot/
β βββ chatbot.py
β
βββ backend/
β βββ alertsystem.py
β
βββ Frontend/
β βββ index.html
β βββ chatbot.js
β βββ script.js
β βββ style.css
β β
β βββ Analysis/
β βββ analysis.html
β βββ analysis.css
β βββ analysis.js
β
βββ CONTRIBUTING.md
βββ LICENSE
βββ README.md
βββ requirements.txtgit clone https://github.com/thetechguardians/Climate-Shield.git
cd Climate-Shieldpython -m venv venv
venv\Scripts\activatepython3 -m venv venv
source venv/bin/activatepip install -r requirements.txtCreate a .env file in the root directory:
OPENWEATHER_API_KEY=your_api_key_hereGet your free API key from:
https://openweathermap.org/api
python backend/alertsystem.pyBackend runs on:
http://127.0.0.1:5000
Open:
Frontend/index.html
OR serve locally:
cd Frontend
python -m http.server 8000{
"city": "Guwahati",
"state": "Assam",
"country": "India"
}{
"success": true,
"weather": {
"temperature": 29,
"humidity": 83,
"rainfall": 5,
"wind_speed": 12
},
"risks": {
"flood_risk": 0.62,
"heat_risk": 0.41
},
"alerts": [
"β Flood Risk Detected"
]
}{
"message": "What precautions should I take during floods?"
}{
"success": true,
"response": "You should avoid low-lying areas during floods."
}pip install -r requirements.txtgunicorn backend.alertsystem:app| Variable | Description |
|---|---|
| OPENWEATHER_API_KEY | OpenWeatherMap API Key |
- π§ Rain prediction forecasting
- π Interactive GIS climate maps
- π² SMS / Email emergency alerts
- π° Satellite weather integration
- π§ Machine learning risk prediction
- π Multi-language support
Contributions are welcome.
Please read:
CONTRIBUTING.md
before submitting pull requests.
This project is licensed under the MIT License.
Developed by Team Climate Shield.
- π¬ Discussions: GitHub Discussions
- π Bug Reports: Open an Issue
- π§ Direct Contact: Create an issue for any questions
- π± Instagram: @vikrant.__07
- πΌ LinkedIn: Vikrant Kumar Mehta
- π GitHub: @Vikrant0207
Climate Shield aims to make climate risk awareness:
- Fast
- Accessible
- Intelligent
- Easy to understand
for communities, students, researchers, and emergency responders.
If this project helped you, please consider:
- β Starring this repository
- π΄ Forking it to contribute
- π’ Sharing it with others
- π Following for more amazing projects
- π Contribute improvements