An open API service indexing awesome lists of open source software.

https://github.com/robmarkcole/london-air-quality

Queries the London air quality data feed provided by Kings College London
https://github.com/robmarkcole/london-air-quality

Last synced: about 1 year ago
JSON representation

Queries the London air quality data feed provided by Kings College London

Awesome Lists containing this project

README

          

[![Code style: black](https://img.shields.io/badge/code%20style-black-000000.svg)](https://github.com/ambv/black)
[![PyPI Version](https://img.shields.io/pypi/v/london-air-quality.svg)](https://pypi.org/project/london-air-quality/)

# London-Air-Quality
Queries the London air quality data feed provided by Kings College London via [Londonair.org](https://www.londonair.org.uk/LondonAir/Default.aspx).

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.

## Development
* Use `venv` -> `python3 -m venv venv` then `source 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/*` and `venv/bin/black tests/test_london_air_quality.py`