Smart India Hackathon 2025 - Winning Solution for Delhi-NCR Air Pollution
Delhi-NCR faces severe air pollution with multiple overlapping sources (stubble burning, vehicles, industry, dust). Current solutions lack source-level granularity, citizen accessibility, and real-time policy feedback.
An integrated platform with 4 modules:
- MOOL - AI source identification
- DRISTI - AI forecasting
- Vayu Mitra - Citizen mobile app
- NIVARAN - Policy dashboard
[React Dashboard] โโ [FastAPI Backend] โโ [Flutter App]
โ
[SQLite] โโ [Mock AI Engine] โโ [External APIs]
- Backend: Python FastAPI, SQLAlchemy, SQLite
- Frontend: React.js, Chart.js, Leaflet, TailwindCSS
- Mobile: Flutter (Dart) with multilingual support
- AI/ML: Mock data engine (ready for real models)
- APIs: CPCB, OpenWeatherMap, Google Earth Engine (Phase 2)
vayu-mitra/
โโโ app/ # FastAPI Backend
โ โโโ main.py # API endpoints
โ โโโ models.py # Database models
โ โโโ schemas.py # Pydantic schemas
โ โโโ database.py # Database connection
โ โโโ mock_engine.py # Mock data generation
โโโ nivaran-dashboard/ # React Dashboard
โ โโโ src/
โ โ โโโ components/ # React components
โ โ โโโ App.js # Main app
โ โโโ package.json
โโโ vayu_mitra_app/ # Flutter Mobile App
โ โโโ lib/
โ โ โโโ screens/ # App screens
โ โ โโโ widgets/ # Reusable widgets
โ โ โโโ models/ # Data models
โ โ โโโ services/ # API services
โ โ โโโ providers/ # State management
โ โโโ pubspec.yaml
โโโ start_server.py # Backend startup
โโโ start_mvp.sh # Complete MVP startup
โโโ quick_start.sh # Quick start script
โโโ stop_project.sh # Stop all services
โโโ manage_project.sh # Main management script
โโโ README.md
- Python 3.8+
- Node.js 16+
- Flutter 3.0+
git clone <repository-url>
cd vayu-mitra# Option 1: Use management script (Recommended)
./manage_project.sh start
# Option 2: Use quick start
./quick_start.sh
# Option 3: Use full MVP script
./start_mvp.shThis will start:
- โ Backend API on http://localhost:8000
- โ React Dashboard on http://localhost:3000
- โ Flutter App (ready to run)
# Check status
./manage_project.sh status
# Stop all services
./manage_project.sh stop
# Restart everything
./manage_project.sh restart
# Run Flutter mobile app
./manage_project.sh mobilecd vayu-mitra
python -m venv venv
source venv/bin/activate # On Windows: venv\Scripts\activate
pip install -r requirements.txt
python start_server.pycd nivaran-dashboard
npm install
npm startcd vayu_mitra_app
flutter pub get
flutter run- ๐ Real-time AQI monitoring
- ๐ Interactive charts and visualizations
- ๐๏ธ Policy simulation sandbox
- ๐บ๏ธ Location-based data
- ๐ค AI-powered recommendations
- ๐ Multilingual support (English/Hindi)
- ๐ Location-based AQI display
โ ๏ธ Health alerts and advice- ๐ธ Pollution reporting with photos
- ๐ 24-hour forecast
- ๐ฃ๏ธ Safe routes (coming soon)
- ๐ RESTful API endpoints
- ๐ Real-time data processing
- ๐ค Mock AI engine
- ๐ Policy impact simulation
- ๐ CORS enabled for frontend
| Endpoint | Method | Description |
|---|---|---|
/ |
GET | API information |
/health |
GET | Health check |
/locations |
GET | Available locations |
/aqi/current/{location} |
GET | Current AQI data |
/aqi/forecast/{location} |
GET | 24-hour forecast |
/sources/{location} |
GET | Pollution source breakdown |
/policy/simulate |
POST | Policy impact simulation |
/init-data |
POST | Initialize mock data |
- Modern Design: Clean, professional interface
- Responsive: Works on desktop and mobile
- Accessible: Color-coded AQI levels
- Interactive: Real-time data updates
- Multilingual: English and Hindi support
- Intuitive: Easy-to-use navigation
# Test API endpoints
curl http://localhost:8000/health
curl http://localhost:8000/locations
curl http://localhost:8000/aqi/current/Delhi-Central- Open http://localhost:3000
- Test location switching
- Verify chart rendering
- Test policy simulation
cd vayu_mitra_app
flutter test
flutter run- Live Dashboard: Real-time pollution data visualization
- Policy Simulation: Interactive sliders showing policy impact
- Mobile App: Multilingual citizen interface
- AI Integration: Mock AI engine ready for real models
- End-to-End Flow: Complete data pipeline demonstration
- โก Real-time data updates
- ๐ 9 Delhi-NCR locations
- ๐ฏ Source-level granularity
- ๐ Multilingual support
- ๐ฑ Cross-platform compatibility
- Real AI Models: Replace mock engine with actual ML models
- Satellite Data: Google Earth Engine integration
- Advanced Forecasting: Temporal Fusion Transformer
- Real-time Routing: Live safe route calculation
- Push Notifications: Health alerts and updates
- Social Features: Community reporting and sharing
- Backend Development: FastAPI, PostgreSQL, SQLAlchemy
- Frontend Development: React.js, Chart.js, TailwindCSS
- Mobile Development: Flutter, Dart, Provider
- AI/ML Integration: Mock engine, ready for real models
- UI/UX Design: Modern, accessible, multilingual
This project is developed for Smart India Hackathon 2025.
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
For questions or support, please contact the Vayu Mitra team.
# Initialize git repository
git init
# Add all files
git add .
# Initial commit
git commit -m "Initial commit: Vayu Mitra MVP for Smart India Hackathon 2025"
# Add remote repository (replace with your GitHub URL)
git remote add origin https://github.com/yourusername/vayu-mitra.git
# Push to GitHub
git push -u origin main# Check status
git status
# Add changes
git add .
# Commit changes
git commit -m "Description of changes"
# Push to GitHub
git push- โ Complete source code
- โ Management scripts
- โ Documentation
- โ .gitignore (excludes sensitive files)
- โ README with setup instructions
๐ช๏ธ Vayu Mitra - Breathing Clean, Living Smart ๐ช๏ธ