Skip to content

Latest commit

 

History

4 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

<<<<<<< HEAD

SmartAir – Hyperlocal Air Quality Monitoring System

A modern, real-time air quality monitoring dashboard built for smart cities.

Features

  • Real-time Monitoring: Fetch AQI and pollutant data (PM2.5, PM10, CO, etc.) using OpenWeatherMap API.
  • Interactive Map: Hyperlocal visualization using Leaflet.js.
  • AQI Trends: Historical data visualization with Chart.js.
  • Health Advisories: Actionable health tips based on current air quality.
  • ML Predictions: Simple linear regression to predict short-term pollution trends.
  • Premium UI: Modern dark-mode dashboard with glassmorphism.

Tech Stack

  • Frontend: React.js, Vite, Chart.js, Leaflet.js, Lucide Icons.
  • Backend: Node.js, Express.
  • Database: MongoDB.

Setup Instructions

Prerequisites

  • Node.js installed.
  • MongoDB service running (locally or Atlas).
  • OpenWeatherMap API Key.

Backend Setup

  1. Navigate to backend/
  2. Create a .env file from the provided template:
    PORT=5000
    MONGODB_URI=mongodb://localhost:27017/smartair
    OPENWEATHER_API_KEY=YOUR_API_KEY
  3. Install dependencies:
    npm install
  4. Start the server:
    node server.js

Frontend Setup

  1. Navigate to frontend/
  2. Install dependencies:
    npm install
  3. Start the development server:
    npm run dev

How to use

  • Enter your latitude and longitude or use the GPS button to see hyperlocal air quality.
  • View pollutant breakdowns and historical trends.
  • Follow the health advisories to stay safe. =======

Smart_Air

SmartAir is a smart city solution that monitors and visualizes real-time air pollution data to help citizens and authorities understand environmental conditions and take informed actions.

92351d7e3babbfaecd63fa003c6ba424f61d6188

About

SmartAir is a smart city solution that monitors and visualizes real-time air pollution data to help citizens and authorities understand environmental conditions and take informed actions.

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages