AQI with Belchertown ??

224 views
Skip to first unread message

Tim Tuck

unread,
Sep 22, 2020, 6:37:17 AM9/22/20
to weewx-user
Hi all,

Just wondering if anyone is displaying AQI with their Belchertown skin ?

I'm using the AQI extension

https://github.com/jonathankoren/weewx-aqi

It appears to be working but I'll have to wait 24hrs to see if the data
is being recorded in the aqi.db.

I haven't tried to display the data yet since I don't have any data to
display as yet :)

But I thought I'd ask if any has AQI on their Belchertown skin would
they like to share the config to achieve that.

thanks

Tim


Colin Larsen

unread,
Sep 22, 2020, 6:39:47 AM9/22/20
to weewx-user

--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/cc75c921-d92a-6289-7af7-b19062a1f2e6%40skybase.net.

Tim Tuck

unread,
Sep 22, 2020, 6:48:26 AM9/22/20
to weewx...@googlegroups.com

Hi Colin,

That looks good, what sensors are you using for that ?

Are you using the AQI extension or doing something else ?

cheers

Tim

Colin Larsen

unread,
Sep 22, 2020, 7:07:46 AM9/22/20
to weewx-user
Hi Tim

That's a custom AQI sensor forwarding data over wifi, captured by the pi that runs weewx, saved to a file then grabbed by a weewx utility called Filepile and the data added to the database. The rest is easy :)

Colin

Daniel Rich

unread,
Sep 22, 2020, 12:07:15 PM9/22/20
to weewx-user
I  have it working with my PurpleAir and the weewx-purple extension.

All I had to do was add pm2_5 to my sensor list and create a graph:
station_observations = barometer, dewpoint, outHumidity, rainWithRainRate, pm2_5, radiation

And in /etc/weewx/skins/Belchertown/graphs.conf:
    [[chart7]]
        title = Air Quality
        [[[pm2_5]]]
           name = AQI PM 2.5
           zIndex = 1
           color = "#becc00"
        [[[pm1_0]]]
           name = AQI PM 1.0
           zIndex = 1
           color = "#ffc83f"
        [[[pm10_0]]]
           name = AQI PM 10.0
           zIndex = 1
           color = "#c83fff"

You can see it in action at https://www.lapseofthought.com/weather/

Dan Rich <dr...@employees.org> http://www.employees.org/~drich/
"Step up to red alert!" "Are you sure, sir?
It means changing the bulb in the sign..."
        - Red Dwarf (BBC)

Colin Larsen

unread,
Sep 22, 2020, 4:30:54 PM9/22/20
to weewx-user
I modified the code on this AQI unit to send the data via UDP packets to my Weewx server


I also use the complete WeatherDuino suite as my station, so it made sense to head this direction


Cheers
Colin

Tim Tuck

unread,
Sep 22, 2020, 7:27:06 PM9/22/20
to weewx...@googlegroups.com

Hi Daniel,

All cool but you are plotting PM not AQI .

AQI is a value calculated from either a single PM type  or multiple PM types.

https://aqicn.org/calculator

https://en.wikipedia.org/wiki/Air_quality_index

The AQI plugin is supposed to do that and it creates a new db to save the AQI values in it.

I have an Ecowitt PM2.5 monitor and that data is being saved to the weewx db, I'm investigating how I can calculate AQI from that data using the AQI plugin and then show the actual AQI via the Belchertown skin.

I've just been wondering if anyone else has done that, and if so, how ?

If not one has done that yet, I'll plod on and eventually work it out :)

cheers

Tim

steeple ian

unread,
Sep 22, 2020, 8:17:27 PM9/22/20
to weewx...@googlegroups.com
Tim,

This is how I did it for the Weather34 skin: -


And


See on the website, two top row modules in the centre.


Also if you click in the centre of either module, you will get a pop-up info window.

IM.







--
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+...@googlegroups.com.

John Kline

unread,
Sep 22, 2020, 8:44:15 PM9/22/20
to weewx...@googlegroups.com
Hi Tim,

You do not need a separate database to store AQI.  It can be derived with xtypes.  And AQI can be and is plotted.  That is what weewx-purple is doing for US EPA AQI.  It’s also using xtypes to compute LRAPA PM2.5 values and UNBC PM2.5 values.


On Sep 22, 2020, at 4:27 PM, Tim Tuck <ti...@skybase.net> wrote:



Tim Tuck

unread,
Sep 22, 2020, 11:48:15 PM9/22/20
to weewx...@googlegroups.com

Hi Ian,

That looks good, and it works on an iPad!, I'll have to install that too.

I have an old iPad 1 mounted on the wall to serve as the dashboard for weather so the Weather34 skin will do nicely for that. It was using an older version of that skin from somewhere else but it has issues now.

thanks

Tim

Tim Tuck

unread,
Sep 22, 2020, 11:51:29 PM9/22/20
to weewx...@googlegroups.com

OK, so the weewx-purple is doing the maths which is all well and good but not immediately obvious since most AQI displays have a nice button with good, moderate,bad etc. like Ian's Weather34 display.

Each to their own I suppose :)

cheers

Tim

Tim Tuck

unread,
Sep 23, 2020, 1:03:53 AM9/23/20
to weewx...@googlegroups.com
Hi All,

On reviewing the Australian standard for AQI I'll have to modify the
underlying code of the AQI plugin or do something similar to the code in
Weather34 skin to get an Australian version.

Interestingly the EPA's AQI PM2.5 thresholds are close but higher than
Australia's, the UK's is worse again and India's is a shocker!

I've worked out how to get the AQI plugin data onto the Belchertown
skin, you can see it on my test sever here...

http://metoffice.skybase.net/weewx/belchertown/

cheers

Tim





Reply all
Reply to author
Forward
0 new messages