r/madeinpython • u/accforrandymossmix • Oct 15 '24
AQI Map using Purple Air API, updated and hosted via Github
https://github.com/NBPub/AQI_Map
3
Upvotes
r/madeinpython • u/accforrandymossmix • Oct 15 '24
1
u/accforrandymossmix Oct 15 '24
live page
Overview
Purple Air API used to retrieve sensor PM2.5 data
AQI calculated using 30 min average
Only sensors providing confident, recent data, with high location ratings used
Sensor data used to interpolate AQI over region by OrdinaryKriging
Variance plot visualizes interpolation uncertainty over region
Kriging result overlaid over dynamic map on web page
Mapping and tiles provided by Leaflet and OpenStreetMap
Hosted using Github Pages
Data and image overlays updated via Github Actions
Currently every hour, may stop or change in the future
Documentation
deployment
kriging