Tim,

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

https://github.com/steepleian/weewx-Weather34/blob/master/www/worldaqitop.php 
<https://github.com/steepleian/weewx-Weather34/blob/master/www/worldaqitop.php> 
(US/World)

And

https://github.com/steepleian/weewx-Weather34/blob/master/www/daqitop.php 
<https://github.com/steepleian/weewx-Weather34/blob/master/www/daqitop.php> (UK 
Specific)

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

https://claydonsweather.org.uk/weewx/weather34/index.php

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

IM.







> On 23 Sep 2020, at 00:26, 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://aqicn.org/calculator>
> https://en.wikipedia.org/wiki/Air_quality_index 
> <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/ 
>> <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] 
> <mailto:[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
>  
> <https://groups.google.com/d/msgid/weewx-user/03a971a4-3ff0-ad96-7faa-7f52dacc2289%40skybase.net?utm_medium=email&utm_source=footer>.

-- 
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/7460A710-FCDB-43E6-930D-338E13AEC3F6%40gmail.com.

Reply via email to