WH51 soil moisture

109 views
Skip to first unread message

Mark Fraser

unread,
Jul 4, 2022, 6:44:01 AM7/4/22
to weewx...@googlegroups.com
I've just added a WH51 soil moisture sensor to Weewx 4.8 running
Weewx_SDR by adding the following lines to weewx.conf:

SoilMoist1 = soil_moisture_percent.00dc59.FOWH51Packet
batteryStatus1 = battery_ok.00dc59.FOWH51Packet
supplyVoltage = battery_mV.00dc59.FOWH51Packet


batteryStatus and supplyVoltage are showing on the Seasons skin, but I'm
not seeing a graph or anything under current conditions. Is there
anything else I need to change or should I be using soil_moisture_raw
instead of soil_moisture_percent?

Mark Fraser

unread,
Jul 4, 2022, 7:19:02 AM7/4/22
to weewx-user
It is also reporting battery low even though  'battery_ok.00dc59.FOWH51Packet': 1.0

Andy

unread,
Jul 4, 2022, 9:35:40 AM7/4/22
to weewx-user
Change the battery line just below IDENTIFIER = "Fineoffset-WH51" in the bin/user/sdr.py driver to:
pkt['battery'] = 0 if obj.get('battery_ok') == 1 else 1

Mark Fraser

unread,
Jul 4, 2022, 11:48:57 AM7/4/22
to weewx...@googlegroups.com
After posting this, I noticed my error and changed SoilMoist1 to soilMoist1. It now works.
Reply all
Reply to author
Forward
0 new messages