ToddGreenfield / homebridge-airnow

Homebridge plugin for AirNow Web-API Air Quality Sensor
36 stars 10 forks source link

Change Which AQI Used From AirNow #3

Closed grokdesigns closed 6 years ago

grokdesigns commented 6 years ago

I see in the code that the AQI from Ozone is used from AirNow, which shows an Air Quality of 43/Excellent in my dashboard, however, the overall AQI on the AirNow site reflects 110. Is there a way to change which AQI is used?

ToddGreenfield commented 6 years ago

Hi. That is correct, currently the first parameter is used for overall AQI as in my area typically Ozone is used for the AQI (so I thought). After some testing of various zip codes is looks like the API is actually just using the highest number returned from any Ozone, PM2.5 and PM10 (if those are returned). It looks like this should follow that model. Would that work for you?

grokdesigns commented 6 years ago

That would be perfect!

ToddGreenfield commented 6 years ago

Fixed. Thanks for catching this.