Skip to content

git-lakshy/sih-25

Repository files navigation

๐ŸŒช๏ธ Vayu Mitra - AI-Powered Clean Air Intelligence

Smart India Hackathon 2025 - Winning Solution for Delhi-NCR Air Pollution

๐ŸŽฏ Problem Statement

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.

๐Ÿš€ Our Solution

An integrated platform with 4 modules:

  1. MOOL - AI source identification
  2. DRISTI - AI forecasting
  3. Vayu Mitra - Citizen mobile app
  4. NIVARAN - Policy dashboard

๐Ÿ—๏ธ Architecture

[React Dashboard] โ†โ†’ [FastAPI Backend] โ†โ†’ [Flutter App]
                      โ†“
[SQLite] โ†โ†’ [Mock AI Engine] โ†โ†’ [External APIs]

๐Ÿ› ๏ธ Tech Stack

  • 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)

๐Ÿ“ฆ Project Structure

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

๐Ÿš€ Quick Start

Prerequisites

  • Python 3.8+
  • Node.js 16+
  • Flutter 3.0+

1. Clone and Setup

git clone <repository-url>
cd vayu-mitra

2. Start Complete MVP

# 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.sh

This will start:

3. Project Management

# 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 mobile

4. Individual Component Setup

Backend API

cd vayu-mitra
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
pip install -r requirements.txt
python start_server.py

React Dashboard

cd nivaran-dashboard
npm install
npm start

Flutter Mobile App

cd vayu_mitra_app
flutter pub get
flutter run

๐Ÿ“ฑ Features

React Dashboard (NIVARAN)

  • ๐Ÿ“Š Real-time AQI monitoring
  • ๐Ÿ“ˆ Interactive charts and visualizations
  • ๐ŸŽ›๏ธ Policy simulation sandbox
  • ๐Ÿ—บ๏ธ Location-based data
  • ๐Ÿค– AI-powered recommendations

Flutter Mobile App (Vayu Mitra)

  • ๐ŸŒ Multilingual support (English/Hindi)
  • ๐Ÿ“ Location-based AQI display
  • โš ๏ธ Health alerts and advice
  • ๐Ÿ“ธ Pollution reporting with photos
  • ๐Ÿ“Š 24-hour forecast
  • ๐Ÿ›ฃ๏ธ Safe routes (coming soon)

Backend API

  • ๐Ÿ”Œ RESTful API endpoints
  • ๐Ÿ“Š Real-time data processing
  • ๐Ÿค– Mock AI engine
  • ๐Ÿ“ˆ Policy impact simulation
  • ๐Ÿ”„ CORS enabled for frontend

๐Ÿ”— API Endpoints

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

๐ŸŽจ UI/UX Highlights

  • 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

๐Ÿงช Testing

Backend Testing

# Test API endpoints
curl http://localhost:8000/health
curl http://localhost:8000/locations
curl http://localhost:8000/aqi/current/Delhi-Central

Frontend Testing

Mobile Testing

cd vayu_mitra_app
flutter test
flutter run

๐Ÿš€ Demo Features

For Judges

  1. Live Dashboard: Real-time pollution data visualization
  2. Policy Simulation: Interactive sliders showing policy impact
  3. Mobile App: Multilingual citizen interface
  4. AI Integration: Mock AI engine ready for real models
  5. End-to-End Flow: Complete data pipeline demonstration

Key Metrics

  • โšก Real-time data updates
  • ๐Ÿ“Š 9 Delhi-NCR locations
  • ๐ŸŽฏ Source-level granularity
  • ๐ŸŒ Multilingual support
  • ๐Ÿ“ฑ Cross-platform compatibility

๐Ÿ”ฎ Phase 2 Enhancements

  • 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

๐Ÿ‘ฅ Team

  • 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

๐Ÿ“„ License

This project is developed for Smart India Hackathon 2025.

๐Ÿค Contributing

  1. Fork the repository
  2. Create a feature branch
  3. Make your changes
  4. Test thoroughly
  5. Submit a pull request

๐Ÿ“ž Support

For questions or support, please contact the Vayu Mitra team.

๐Ÿ™ GitHub Setup

Initial Setup

# 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

Daily Workflow

# Check status
git status

# Add changes
git add .

# Commit changes
git commit -m "Description of changes"

# Push to GitHub
git push

Project Files Included

  • โœ… Complete source code
  • โœ… Management scripts
  • โœ… Documentation
  • โœ… .gitignore (excludes sensitive files)
  • โœ… README with setup instructions

๐ŸŒช๏ธ Vayu Mitra - Breathing Clean, Living Smart ๐ŸŒช๏ธ

About

our shot at sih-25

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors