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 <[email protected]> wrote:
> 
> 
> 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
> 
> 
> 
> 
> 
>> On 23/9/20 2:06 am, Daniel Rich wrote:
>> 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/
>> 
>> 
>> 
>> 
>> 
>> 
>> 
> -- 
> 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 [email protected].
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/weewx-user/03a971a4-3ff0-ad96-7faa-7f52dacc2289%40skybase.net.

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/F727C164-6280-4FAD-BD31-AAFC2E9A4971%40johnkline.com.

Reply via email to