Added purple air sensor info and computed air quality index; weewx really needs to make this part of standard package

82 views
Skip to first unread message

Joel Bion

unread,
May 24, 2019, 9:52:08 PM5/24/19
to weewx-user
Hi - I added the reading of the purple air sensor info from the purple air extension by Kenneth Baker - which works great. The result looks 'ok' - not great - see https://westvi.com/weather

Then I had to write a bunch of code *around* that which computed an estimated air quality index (AQI) from the latest PM2.5 data, showed the correct 'air quality information color', etc. That's ugly code because it's added to the web page template, as I did not want to add this to Baker's extension (yes, it would be possible to put in the calculated AQI in that.)

My point is this - a LOT of weather enthusiasts have not just a weather station - but an air quality monitor. I think this is getting to be common enough that perhaps this functionality should be part of the base package in the weewx distribution, with the PM2.5 values (and perhaps the computed AQI) added as additional fields to the main archive database.

Thoughts? (and yes, I think moving to Python 3 should be a higher priority than this)

vince

unread,
May 25, 2019, 12:12:23 PM5/25/19
to weewx-user
On Friday, May 24, 2019 at 6:52:08 PM UTC-7, Joel Bion wrote:
Thoughts? (and yes, I think moving to Python 3 should be a higher priority than this)


Thoughts ?
Sure - triple what you are paying for weewx and maybe somebody might consider it.
Only partially kidding there.  Maybe.

We're all volunteers here.

In the ideal case, somebody with enough interest (you) to spend the time (you) would fork the original extension you started with in order to to add the AQI calculation to enhance the (free) software you started with.  And that person (you) would provide those enhancements back upstream to the original extension author so they could update their extension with more features.  Then you'd benefit, the original author would benefit, and others with similar interests would benefit.

Incidentally, what you're looking for also exists if you search for "weewx aqi" on google.

There's a separate add-on for the PA extension that does the AQI calculation.


Joel Bion

unread,
May 25, 2019, 6:52:40 PM5/25/19
to weewx-user
On Saturday, May 25, 2019 at 9:12:23 AM UTC-7, vince wrote:
On Friday, May 24, 2019 at 6:52:08 PM UTC-7, Joel Bion wrote:
Thoughts? (and yes, I think moving to Python 3 should be a higher priority than this)


Thoughts ?
Sure - triple what you are paying for weewx and maybe somebody might consider it.
Only partially kidding there.  Maybe.


weewx is a great package - and fair point -  is there a way to donate?
Reply all
Reply to author
Forward
0 new messages