London Air Quality sensor component

London air quality API provided by Kings at https://www.londonair.org.uk/LondonAir/API/

Sensor would take an area code and display hourly/daily/weekly air quality.
Quick exploration of the data https://github.com/robmarkcole/Useful-python-for-medical-physics/blob/master/Experiments%20in%20ipython%20notebooks/Requests/London%20Air%20Quality%203-7-2017.ipynb

Anybody interested?

You can do that today with a REST sensor.

True, but could determine nearest data using lat-long coordinates and get an estimate of accumulated exposure as you travel around London with a custom sensor.

The Kings College data is already available in WAQI (see the sourcing part way down the page on http://aqicn.org/city/united-kingdom/city-of-london-farringdon-street/) so I think you can already get access to the data through the WAQI component: https://home-assistant.io/components/sensor.waqi/

Is there more data available through the KCL api which isn’t in WAQI?

Thanks for the link! Appears to only have a sensor for the City, whereas the kings api has sensor data by Borough, and even at the end of my road… :slight_smile:

You can use the locations option in the config to narrow it down, so mine brings back just a single monitoring site, less than 2 miles from my home.

As you can hopefully tell, I’m interested in tracking air quality too so if you think there’s additional data you can bring back through the KCL API then I’m all up for testing it :slight_smile:

1 Like

Checking the sites covered by WAQI below vs the KCL API here KCL covers each of 33 local authorities and each of those can have multiple sensors.

Barking and Dagenham
Barnet
Bexley
Brent
Bromley
Camden
City of London
Croydon
Ealing
Enfield
Greenwich
Hackney
Hammersmith and Fulham
Haringey
Harrow
Havering
Hillingdon
Hounslow
Islington
Kensington and Chelsea
Kingston
Lambeth
Lewisham
Merton
Newham
Redbridge
Richmond
Southwark
Sutton
Tower Hamlets
Waltham Forest
Wandsworth
Westminster

Also WAQI reports a single index (overall AQ index) whilst KCL gives a breakdown by ‘species’.

I put my latest exploration of the data on github

WAQI locations

Yes !
Worldwide Air Quality website doesn’t seem to email me any more…

I’ve located my Site Code, but i’m having a brain fart with how/what to do with the python script to then make it usable as a card in HASS…

Well could either use a rest sensor for the specific site/species of interest, or make a custom component

OK my component is on Github, please send any feedback :slight_smile:

Hi Rob

I have added the London air component in my configuration.yaml but get an error saying that London air sens or component not found. Is this made available in HA yet?

It’s s in 0.52 :slight_smile:

Ah right will wait patiently then.

Source on https://github.com/robmarkcole/London-air-quality-HASS

Yeah followed that and that’s when I get the error message.

Don’t worry, all working in 0.52

1 Like

2 posts were split to a new topic: London air quality platform issue