Queries the London air quality data feed provided by Kings College London via Londonair.org.
28 London Boroughs have monitoring sites at different geographical positions within the borough, and each of those sites can monitor up to six different kinds of pollutant. The pollutants are Carbon Monoxide (CO2), Nitrogen Dioxide (NO2), Ozone (O3), Sulfur Dioxide (SO2), PM2.5 & PM10 particulates. Nominally data is published hourly, but in my experience this can vary.
- Use
venv
->python3 -m venv venv
thensource venv/bin/activate
pip install -r requirements.txt
pip install -r requirements-dev.txt
- Install in editable mode ->
pip install -e .
- Run tests with
venv/bin/pytest tests/test_london_air_quality.py
- Black format with
venv/bin/black london_air_quality/*
andvenv/bin/black tests/test_london_air_quality.py