Author Topic: Configure Weewx-AQI with Ecowitt PM2_5  (Read 1836 times)

0 Members and 1 Guest are viewing this topic.

Offline TinkerTown

  • Senior Member
  • **
  • Posts: 68
Configure Weewx-AQI with Ecowitt PM2_5
« on: July 02, 2021, 04:42:36 PM »
I was thinking of adding an Air Quality display to my Weewx running the Belchertown skin and someone pointed me to this extension Weewx-AQI, but it is configured to work with a Purple Air sensor.

I was wondering if anyone had the settings, or a guide, to configuring that extension, but with the Ecowitt PM2_5 sensor? I am not too good on coding and my Google searches haven't had much luck finding a guide or anything to getting it working with the Ecowitt sensor, so I thought I would ask here.

Weewx-AQI Extension https://github.com/jonathankoren/weewx-aqi
Ecowitt WH41 PM2.5 Air Quality Sensor Monitor Outdoor
https://lovingtonweather.com

Ecowitt GW1000 | WS-2902C |Weewx on Raspberry Pi
WU: KNMLOVIN14  |  PWSweather: PWSLOVNM1
CWOP: FW9112; https://lovingtonweather.com

Offline ajay

  • Member
  • *
  • Posts: 23
Re: Configure Weewx-AQI with Ecowitt PM2_5
« Reply #1 on: August 10, 2021, 10:12:52 PM »
I'd like to know the same! Anyone?

Online Gyvate

  • Forecaster
  • *****
  • Posts: 3296
Re: Configure Weewx-AQI with Ecowitt PM2_5
« Reply #2 on: August 11, 2021, 05:15:06 PM »
I'm not working with the Belchertown skin, but in principle you should be able to depict - at least as a table or as a graph - all values from the weewx database.
The WH41/43 or the WH45 with its PM2.5 and PM10 observations should be stored in the weewx database if you use the proper database schema and have either created the missing entries/rows or have repurposed other fields/rows to accommodate the AQ observations.

That said, if you own a GW1000 the fields/values are available and only need to be placed on the skin. The fields and their names can be found in the Gary's GW1000 wiki at https://github.com/gjr80/weewx-gw1000/wiki (field map).

What I would do is go through the skin.conf and related files of the Belchertown skin and see how e.g. temperature or humidity are put into a graph, copy that  section and then add the pm_25 etc. fields by renaming the copied tempout etc. fields. That should work.
WS2350 1.6.7, GW1000(3) 1.7.7,WH2650 WiFi (2) 1.7.7 (test/backup), GW1100 2.3.1, GW2000(3) 3.1.1, HP2551 1.9.5,5.1.5;HP3500 1.7.2,WS3800 1.2.8, WN1910 1.2.3,WN1980 1.2.3;
Ecowitt WS90(2)1.3.5/1.4.0, WS80(2)1.2.5, WS68, WS69, WH40, WH31, WH31-EP, WN30, WN34L, WN35, WH32, WH32-EP, WH32B, WH57 [Lightning], WH41 [PM2.5], WH51, WH45, WH55
MeteobridgePro(2)[test,prod] 5.8 Mar 01 2024, 15185 - Blake-Larsen Sun Recorder - RPi4/weewx 4.8.0/4.10.2/CumulusMX 3283/Meteobridge RPi4B-2GB(3169)
Barani Meteoshield Pro, MetSpec Rad02 - Ecowitt 5763,34418;WU ISAARB3(WH4000SE),ISAARB22(HP2553), http://meshka.eu

Offline djende

  • Member
  • *
  • Posts: 1
    • Weather for Imperial PA near Pittsburgh
Re: Configure Weewx-AQI with Ecowitt PM2_5
« Reply #3 on: June 30, 2023, 11:31:06 PM »
@Tinker Town

I looked at your weather site and I see you were able to get the air quality readings. Did you end up with that WH41 Sensor? I'm about to take this project on myself and order the sensor. If you can let me know so I don't waste my time ordering it. Doesn't seem to be much information about aqi sensors that work with weewx and a lot of them are extremely expensive. Thanks!

https://weather.kevinheaven.net

Online Gyvate

  • Forecaster
  • *****
  • Posts: 3296
Re: Configure Weewx-AQI with Ecowitt PM2_5
« Reply #4 on: July 01, 2023, 06:02:41 AM »
@Tinker Town

I looked at your weather site and I see you were able to get the air quality readings. Did you end up with that WH41 Sensor? I'm about to take this project on myself and order the sensor. If you can let me know so I don't waste my time ordering it. Doesn't seem to be much information about aqi sensors that work with weewx and a lot of them are extremely expensive. Thanks!

https://weather.kevinheaven.net
if you look up my weather landing page (signature), you can see two WH41 and a WH45 working and being shown by weewx, Meteobridge, Meteotemplate, CumulusUtils etc.

For weewx it depends on how your data go to weewx - via the Ecowitt Gateway API driver (aka GW1000 API driver) or the Interceptor driver (depending what your console can do - only custom server then Interceptor, also Ecowitt Gateway API, then the weewx Ecowitt Gateway API driver) - the Interceptor driver needs to be modified to show more than the basic sensors.
see also https://www.wxforum.net/index.php?topic=40730.0 (matrix, data communiation etc.)

You can also read Gary's excellent WiKi on the weewx Ecowitt Gateway driver https://github.com/gjr80/weewx-gw1000/wiki

as you have already (your link) a different station brand model (Acurite I read), you can integrate a WH41 either via the weewx RTL433-SDR driver, or get yourself an Ecowitt GW1100 along with the WH41 and have the AQI data provided by one of the Ecowitt weewx drivers.
There are discussion and approaches in the Google weewx user group about how to integrate several sources of observations.
« Last Edit: July 01, 2023, 06:09:17 AM by Gyvate »
WS2350 1.6.7, GW1000(3) 1.7.7,WH2650 WiFi (2) 1.7.7 (test/backup), GW1100 2.3.1, GW2000(3) 3.1.1, HP2551 1.9.5,5.1.5;HP3500 1.7.2,WS3800 1.2.8, WN1910 1.2.3,WN1980 1.2.3;
Ecowitt WS90(2)1.3.5/1.4.0, WS80(2)1.2.5, WS68, WS69, WH40, WH31, WH31-EP, WN30, WN34L, WN35, WH32, WH32-EP, WH32B, WH57 [Lightning], WH41 [PM2.5], WH51, WH45, WH55
MeteobridgePro(2)[test,prod] 5.8 Mar 01 2024, 15185 - Blake-Larsen Sun Recorder - RPi4/weewx 4.8.0/4.10.2/CumulusMX 3283/Meteobridge RPi4B-2GB(3169)
Barani Meteoshield Pro, MetSpec Rad02 - Ecowitt 5763,34418;WU ISAARB3(WH4000SE),ISAARB22(HP2553), http://meshka.eu