Adafruit_PM25AQI
Adafruit_PM25AQI copied to clipboard
Concentration to AQI calculation for US and China.
Concentration to AQI calculation for US and China. Add fail reason and verbose info. Check start byte more strickly. Parse version and error code.
Tested on PMSA003I-C

@tyeth Want to take a look at this?
Hi @jiangyi1985 and thanks for your contribution!
~~I saw that the way your segmenting for PM2.5 (12 and <12.1 meant to be up to and including 12) compared to PM10 (55 + 55 meant to be upto and including 54), seem to be different, the latter should probably follow the former.~~
I'm using this reference from the US EPA https://www.airnow.gov/sites/default/files/2020-05/aqi-technical-assistance-document-sept2018.pdf however I cannot find a reference for calculating the Chinese AQI. Most information seems very old, like before 2018, and unofficial. Where did you get the values for the AQI for China?
@tyeth When I wrote the code last year, I referenced this wiki page: https://en.wikipedia.org/wiki/Air_quality_index
Now that I've checked where the data of China & US are referenced, the sources seem to be legit.
Here's the reference of China's data: https://www.mee.gov.cn/ywgz/fgbz/bz/bzwb/jcffbz/201203/t20120302_224166.shtml
@tyeth Conflict resolved
Thanks for the updates! I've run out of time this week and am off for a bit. @brentru if you want to have a look, otherwise I'm back January 6th, but there's also a very small chance I'll test it over the holiday period.
On Thu, 19 Dec 2024 at 12:13, Ivan Jiang @.***> wrote:
@tyeth https://github.com/tyeth Conflict resolved
— Reply to this email directly, view it on GitHub https://github.com/adafruit/Adafruit_PM25AQI/pull/12#issuecomment-2553629076, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABTBZ47QQSHXKWNHWBHFFU32GKZ5LAVCNFSM6AAAAABT2U6IFOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKNJTGYZDSMBXGY . You are receiving this because you were mentioned.Message ID: @.***>