Live District-Level AQI Forecast & Personalized Risk Advisor
Fetches European AQI from Open-Meteo's atmospheric model (CAMS) per district lat/lng. No API key, CORS-enabled. Fallback to Hanoi diurnal simulation.
Compares the 2-hour rolling average to 2 hours prior. A delta > 8 AQI = Rising ↑. A delta < −8 = Falling ↓. Otherwise Stable. Shown live on the AQI card.
Sliding 2-hour window scans the 24h forecast. Avoids 7–9 AM and 5–7 PM rush hour windows when AQI is equal. Returns the cleanest window with time context.
Base safe time per AQI tier (WHO/EPA-derived) × profile sensitivity multiplier ÷ activity breathing rate multiplier. Running intakes 5–10× more air than sitting.
PM2.5 (µg/m³) × ventilation rate (L/min) × time (min) × 0.001 × 0.4 deposition fraction. Estimates actual PM2.5 deposited in your lungs for your session.
Auto-detects 7–9 AM and 5–7 PM. Hanoi roadside measurements average 2–3× higher than station readings during peak traffic. Banner fires automatically.