GW1000 driver doesn't show values from WH46

188 views
Skip to first unread message

j.fri...@gmail.com

unread,
Jul 29, 2024, 8:55:21 AM7/29/24
to weewx-user
Hello,

I added new WH46 to my Ecowitt system. I can view data in ecowitt.net and in mobile application too.

My main system is weewx https://pocasi.frimlovi.com but the new WH46 data didn't appear automatically in dashboard.

If I run PYTHONPATH=/usr/share/weewx:/etc/weewx/bin python3 /etc/weewx/bin/user/gw1000.py --test-service --ip-address=my_IP it shows data from all measures correctly but from WH46 it shows only data about battery and signal -  'wh45_batt': '5', 'wh45_sig': '4'

I use the latest version of GW1000 driver - 0.6.1

I tryed to add data in weewx.conf - [[field_map_extensions]] and in skin.conf in appearance but nothing changed.

Can you help me please ?

Thank you in advance.

Jarda

Rainer Lang

unread,
Jul 29, 2024, 2:28:30 PM7/29/24
to weewx...@googlegroups.com

not sure if Gary has already considered the new WH46 situation into the 0.6.1 driver version
the API response is different depending on whether a WH45 or a WH46 are connected to a console/gateway with the local Ecowitt API
- there can only be one WH45/46 connected - either a WH45 or a WH46

in case of a WH46 sensor being registered not the marker 0x70 (that's WH45) is provided but 0x6B

--
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/c9451823-c62f-4b70-801c-ad77943d4c6bn%40googlegroups.com.

gjr80

unread,
Jul 30, 2024, 7:51:16 AM7/30/24
to weewx-user
You can try v0.6.3b1 which includes support for the WH46 air quality sensor. If a WH46 is connected the v0.6.3 driver should emit the same temperature, PM2.5, PM10 and CO2 fields as with a WH45. Additional fields pm1_0, pm1_0_24h_avg, pm4_0, pm4_0_24h_avg should also be emitted with the WH46 PM1 and PM4 data and 24hour averages respectively. v0.6.3 should also automatically determine whether a WH45 or WH46 is present and correctly name WH45/WH46 battery and signal state fields.

Note that I have had to change the names of a the PM10 fields emitted by the driver when used with a WH45 sensor. This will only affect you if you previously used a WH45 sensor. The driver now emits pm10_0 and pm10_0_24h_avg fields (previously the fields were pm10 and pm10_24h_avg). Users who have previously used a WH45 sensor will need to either change their field map if mapping these fields to some other WeeWX field, or if the pm10 and pm10_24h_avg fields are used in the database schema the database fields will need to be renamed to the new field names.

v0.6.3 also includes support for the WS85 sensor array as well as including a revised approach to device discovery that is much more reliable than the previous approach. Note the recommended approach remains to specify the device IP address in the WeeWX config file rather than have the driver rely on discovery

I have not released v0.6.3 yet, rather I have kept it at b1 until someone verifies it's use it with a WH45/46. If you wish to try v0.6.3b1 the following instructions should be used:

1. Rename your existing gateway driver to gw1000_0_6_1.py so you can easily revert if necessary:
$ cp /etc/weewx/bin/user/gw1000.py /etc/weewx/bin/user/gw1000_0_6_1.py

2. Download the v0.6.3b1 driver file and save it to /etc/weewx/bin/user:

3. You can run the driver directly as you did in you OP, you should see the WH46 obs fields as well as WH46 battery and signal state data. You might also find using the --live-data option useful when running the driver directly.

4. If you are happy running the driver directly you can restart WeeWX and it will pick up the v0.6.3 driver.

Note the above commands may require prefixing with sudo. If you need to revert to your original driver just delete /etc/weewx/bin/user/gw1000.py and rename /etc/weewx/bin/user/gw1000_0_6_1.py to /etc/weewx/bin/user/gw1000.py

If any problems please let me know.

Gary

j.fri...@gmail.com

unread,
Aug 1, 2024, 2:08:48 AM8/1/24
to weewx-user
Hi Gary,

the  v0.6.3b1 works wery well. There is only one possible issue with PMI 4. index.html page shows it in other way then others values .

Thank you very much for your help.

Jarda

Outout from the driver :
'pm1_0': '9.5', 'pm1_0_24h_avg': '1.5', 'pm2_55': '10.6', 'pm2_55_24h_avg': '2.5', 'pm4_0': '11.0', 'pm4_0_24h_avg': '3.2', 'pm10_0': '11.2', 'pm10_0_24h_avg': '3.6'

Database values :
PM1.0  = 10.6333333333333
PM2.5  = 11.7
PM4.0  =  12.0666666666667
PM10 =  12.2666666666667

Index.html page :
Výstřižek.PNG



Dne úterý 30. července 2024 v 13:51:16 UTC+2 uživatel gjr80 napsal:

Rainer Lang

unread,
Aug 1, 2024, 5:52:06 AM8/1/24
to weewx...@googlegroups.com

you probably need to define the units/unit group for pm4_0 in extensions.py 😎

--
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.

gjr80

unread,
Aug 1, 2024, 7:11:56 AM8/1/24
to weewx-user
As Rainer mentioned the issue is likely that the unit group has not been defined for the PM4 obs type in your database (though this will depend on your driver setup, database schema and skin you are using). Unit groups for additional obs types are often defined by the user in extensions.py, but can also be done in the driver. The gateway driver does define unit groups for all WeeWX fields in the default field map that do not appear in the default WeeWX schema (ie the wview_extended schema). I neglected to update this portion of the driver for the new/updated 'PM' fields in v0.6.3.b1, I have since made the necessary changes. If you delete the v0.6.3b1 driver using:

$ rm /etc/weewx/bin/user/gw1000.py

and then download v0.6.3b2 in it's place using:
and finally restart WeeWX your PM4 data should display with correct formatting/labelling.

Gary

Jaromír Friml

unread,
Aug 1, 2024, 7:14:37 AM8/1/24
to weewx...@googlegroups.com
Hi,

I don't think so. Other units as PM1_0 or PM2_5 etc. don't have definition in extensions.py and values show incorrect format.

Thank you for your help.

čt 1. 8. 2024 v 11:52 odesílatel 'Rainer Lang' via weewx-user <weewx...@googlegroups.com> napsal:
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/rjVtv33PnNk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/b5c0dc8b-438c-4919-8f60-d99d23d71d84%40gmail.com.

Jaromír Friml

unread,
Aug 1, 2024, 7:23:59 AM8/1/24
to weewx...@googlegroups.com
Hi Gary,

It works very well now.

Thank you for your help.

Jarda

čt 1. 8. 2024 v 13:12 odesílatel gjr80 <gjrod...@gmail.com> napsal:
--
You received this message because you are subscribed to a topic in the Google Groups "weewx-user" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/weewx-user/rjVtv33PnNk/unsubscribe.
To unsubscribe from this group and all its topics, send an email to weewx-user+...@googlegroups.com.

gjr80

unread,
Aug 1, 2024, 5:34:51 PM8/1/24
to weewx-user
Thank you for the feedback.

I have now released v0.6.3.

Gary

Reply all
Reply to author
Forward
0 new messages