<<<<<<< HEAD
A modern, real-time air quality monitoring dashboard built for smart cities.
- 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.
- Frontend: React.js, Vite, Chart.js, Leaflet.js, Lucide Icons.
- Backend: Node.js, Express.
- Database: MongoDB.
- Node.js installed.
- MongoDB service running (locally or Atlas).
- OpenWeatherMap API Key.
- Navigate to
backend/ - Create a
.envfile from the provided template:PORT=5000 MONGODB_URI=mongodb://localhost:27017/smartair OPENWEATHER_API_KEY=YOUR_API_KEY
- Install dependencies:
npm install
- Start the server:
node server.js
- Navigate to
frontend/ - Install dependencies:
npm install
- Start the development server:
npm run dev
- 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. =======
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