Re: [weewx-user] Accessing Database From Service Extension

2024-04-21 Thread Carter Humphreys
Ah that looks like it should do the trick! I’ll give it a try and reach back out if I have any issues. Thanks Tom!CarterOn Apr 21, 2024, at 11:40, Tom Keffer wrote:Take a look at the section Programming interface in the documentation and see if that answers your question.On Sun, Apr 21, 2024 at

Re: [weewx-user] Accessing Database From Service Extension

2024-04-21 Thread Tom Keffer
Take a look at the section *Programming interface * in the documentation and see if that answers your question. On Sun, Apr 21, 2024 at 9:17 AM carter.hu...@gmail.com < carter.humphrey...@gmail.com> wrote: > I have PM 2.5

Re: [weewx-user] Accessing Database From Service Extension

2024-04-21 Thread Carter Humphreys
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,

Re: [weewx-user] Accessing Database From Service Extension

2024-04-21 Thread p q
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

[weewx-user] Accessing Database From Service Extension

2024-04-21 Thread carter.hu...@gmail.com
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