WeeWx and adding Ecowitt WH41 AQI sensor

58 views
Skip to first unread message

brack...@gmail.com

unread,
Aug 4, 2022, 11:11:26 AMAug 4
to weewx-user
I recently changed from an Oregon PWS to an Ecowitt GW1102. When I first set it up - having installed the weewx-gw1000 driver from Github everything all magically started working. 

I have since try to add a WH41 Air Quality Sensor and I am unable to get it to show up on WeeWx. It shows up fine on the Ecowitt dashboard and also the  values appear in the loop packets e.g.

Aug 03 16:03:17 weatherpi python3[2216]: weewx[2216] INFO user.gw1000: GatewayDriver: Packet 2022-08-03 16:03:17 BST (1659538997): {'dateTime': '1659538997', 'daymaxwind': '10.2', 'dayRain': '0.0', 'inHumidity': '57', 'inTemp': '26.5', 'luminosity': '43240.0', 'monthRain': '9.2', 'outHumidity': '56', 'outTemp': '27.5', 'pm2_52': '4.0', 'pm2_52_24h_avg': '5.3', 'pressure': '1011.7', 'rain': '0.0', 'rainRate': '0.0', 'relbarometer': '1012.4', 'stormRain': '0.0', 'usUnits': '17', 'UV': '3', 'uvradiation': '100.0', 'weekRain': '0.0', 'wh32_batt': '0', 'wh32_sig': '4', 'wh40_batt': '1.43', 'wh40_sig': '4', 'wh41_ch1_batt': 'None', 'wh41_ch1_sig': '0', 'wh41_ch2_batt': '5', 'wh41_ch2_sig': '4', 'wh41_ch3_batt': 'None', 'wh41_ch3_sig': '0', 'wh68_batt': '1.64', 'wh68_sig': '4', 'windDir': '245', 'windGust': '4.6', 'windSpeed': '3.8', 'wn35_ch1_batt': 'None', 'wn35_ch1_sig': '0', 'yearRain': '9.2'}

Because I set up my Weewx around 2014 it didnt have the extended database schema so I have now updated that to the extended one (wview_extended schema) and there are now fields in the weewx.sdb with an archive table specifically called archive_day_pm2_5 but data isnt being saved to it (and therefore I assume not being displayed.

I have tried updating to the latest driver (gw1000-0.5.0b) and am running Weewx V4.8.0 and seasons skin 4.8.0.

I have even tried a wee_config --reconfigure --driver=user.gw1000 (not forgetting a weewx restart). 

All to no avail. What have I missed? 

TIA 

lcsneil

vince

unread,
Aug 4, 2022, 1:30:00 PMAug 4
to weewx-user
Quick look at the driver says it expects a different tag than the one you're seeing.

I think you might need something like:

[[field_map_extensions]]
  pm2_5 = pm2_52


gjr80

unread,
Aug 4, 2022, 4:36:08 PMAug 4
to weewx-user
Rather than the driver expecting a different tag I think this is more of a case of WeeWX (by default when using the view_extended schema) expecting PM2.5 data to appear in the field pm2_5. The fact you are seeing your PM2.5 data appear in the field pm2_52 and wh41_ch2_batt and wh41_ch2_sig are populated indicates your WH41 is appearing as WH41/43 channel 2 on your station. The field map extension approach suggested by Vince will certainly get your PM2.5 data into the field expected by WeeWX, but unless you have a specific reason for having your WH41 as channel 2 a more elegant solution is to use the Ecowitt WSView Plus app (via the More, Sensors ID menu) to move your WH41 from channel 2 to channel 1. This will result in your PM2.5 data appearing in field pm2_5 with no need for any WeeWX changes (it will also see your WH41 battery and signal data appear in field wh41_ch1_batt and wh41_ch1_sig respectively). Your PM2.5 data will be saved to database and if you are using the current Seasons skin your PM2.5 data should be automatically displayed.

As an aside, it is also worthwhile disabling all unused channels via the WSView Plus app to prevent multi-channel capable sensors appearing on different channels should something cause the Ecowitt gateway device to re-register sensors.

Gary

vince

unread,
Aug 4, 2022, 5:57:01 PMAug 4
to weewx-user
Cool explanation of how the channel numbers affect what the station reports to the driver.   Thanks !!!!

brack...@gmail.com

unread,
Aug 5, 2022, 2:45:11 AMAug 5
to weewx-user
Bingo, thanks Gary. Yes, forcing the WH41 to channel 1 has made it appear on Weewx stats page without any further intervention! 

Easy when you know how :) 

lcsneil

Reply all
Reply to author
Forward
0 new messages