Adafruit_PM25AQI icon indicating copy to clipboard operation
Adafruit_PM25AQI copied to clipboard

Concentration to AQI calculation for US and China.

Open jiangyi1985 opened this issue 3 years ago • 4 comments

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

jiangyi1985 avatar Jul 23 '22 12:07 jiangyi1985

image

jiangyi1985 avatar Jul 23 '22 12:07 jiangyi1985

@tyeth Want to take a look at this?

brentru avatar Nov 01 '23 22:11 brentru

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.~~ image

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 avatar Nov 03 '23 13:11 tyeth

@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

jiangyi1985 avatar Nov 06 '23 07:11 jiangyi1985

@tyeth Conflict resolved

jiangyi1985 avatar Dec 19 '24 12:12 jiangyi1985

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: @.***>

tyeth avatar Dec 20 '24 23:12 tyeth