Thanks. So the calculation of AQI I have in my extension already, however I need the average value from the weewx database of the PM2.5 for a more realistic AQI. I essentially want to create a new variable that is the AQI based on the rolling 24-hour average and add that to the database.

On Apr 21, 2024, at 11:09, p q <peterquinn...@gmail.com> wrote:


You might be able to use the python library https://pypi.org/project/python-aqi/


On Sun, Apr 21, 2024 at 9:17 AM carter.hu...@gmail.com <carter.humphrey...@gmail.com> wrote:
I have PM 2.5 data being feed into WeeWx via a custom service extension. What I want to do is calculate the air quality index (AQI) based on the PM2.5 data. The EPA references the correct way of doing this as using the 24-hour average PM2.5.

So my question is, is there a way for an extension to access the weewx database a pull the average value of a variable over the last 24 hours?

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/03f80a01-a1ab-4ee7-9ae1-244312a74115n%40googlegroups.com.


--
Peter Quinn
(415)794-2264

--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/-mBPA6zENp4/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAA1SM22%3DtUXpkHLdxBHePbtn_JcmCEidHdHSigfB4ztVd3cVtw%40mail.gmail.com.

--
You received this message because you are subscribed to the Google Groups "weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/05ED37C7-708C-49EB-BE0F-308F21766E7E%40gmail.com.

Reply via email to