Add Soil Temp Sensor

67 views
Skip to first unread message

O S

unread,
Dec 31, 2025, 11:48:46 AM (10 days ago) 12/31/25
to weewx-user
Hello all,

I have an Ecowitt soil temperature sensor that is being picked up by the gateway (GW1200), but not by WeeWX (not on the report page, anyway).

I am running WeeWX on a R-Pi 1, Debian Bookworm.

Log is here: https://pastebin.com/Z26g3Xic with debug set to 1. The only changes I have made is to override some values and plots to exclude them from the html report page (Seasons).

I have absolutely no idea where to start with this, so help from you people would be much appreciated, as usual.

Thanks :)

Ole Andreas Gløersen

unread,
Dec 31, 2025, 2:22:43 PM (10 days ago) 12/31/25
to weewx...@googlegroups.com
I don't have a complete guide for your problem, but use "sudo journalctl -u weewx -f" to check for sensor ID. I have also made a guide for implementing my unknown sensors to WeeWX.

Check it out for then you can use it as an approach for your problem.

--
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 visit https://groups.google.com/d/msgid/weewx-user/12f358fe-7d1a-45e0-8428-cccfc162e0f0n%40googlegroups.com.
GW3000_with_WS68_WN32_WH40H_guide.pdf

vince

unread,
Dec 31, 2025, 2:34:18 PM (10 days ago) 12/31/25
to weewx-user
I have the soil temp sensor and a gw1200 here.

I just added a [[field_map_extensions]] item to map it to a weewx db element

[GW1000]
    [[field_map_extensions]]
        soilTemp1 = temp9   # map driver 'temp9' to weewx 'soilTemp1'
                            # wh34_ch1_batt could be mapped to an available field
                            # so if you want its battery status saved to the db



O S

unread,
Dec 31, 2025, 4:26:36 PM (10 days ago) 12/31/25
to weewx-user
Hi Vince, thanks - like this?

##############################################################################

[GW1000]
    [[field_map-extensions]]
        soilTemp1 = temp9
    # This section is for the Ecowitt Gateway driver.

    # How often to poll the API, default is every 20 seconds:
    poll_interval = 20

    # The driver to use:
    driver = user.gw1000
    ip_address = auto
    port = 45000
    sensor_map = wh40_batt:batteryStatus

##############################################################################

O S

unread,
Dec 31, 2025, 4:50:20 PM (10 days ago) 12/31/25
to weewx-user
Sorry, like this:

##############################################################################

[GW1000]

   
    # This section is for the Ecowitt Gateway driver.

    # How often to poll the API, default is every 20 seconds:
    poll_interval = 20

    # The driver to use:
    driver = user.gw1000
    ip_address = auto
    port = 45000
    sensor_map = wh40_batt:batteryStatus
    [[[field_map_extensions]]]
         soilTemp1 = temp9

##############################################################################

On Wednesday, December 31, 2025 at 7:34:18 PM UTC vince wrote:

O S

unread,
Dec 31, 2025, 4:52:12 PM (10 days ago) 12/31/25
to weewx-user
... and with the correct amount of brackets! DOH!

vince

unread,
Dec 31, 2025, 4:52:17 PM (10 days ago) 12/31/25
to weewx-user
I have no idea what the sensor_map element is nor what it would do.  And your later reply had too many [[[ ]]] levels.

If you are using Gary's original GW1000 driver then just add the [[field_map_extensions]] two lines to the [GW1000] section in weewx.conf, then restart weewx.

[GW1000]
    poll_interval = 20
    driver = user.gw1000
    ip_address = 192.168.2.87     # gw1200
    port = 45000
    [[field_map_extensions]]
        outTempBatteryStatus = wh26_batt  # outside t+h sensor
        batteryStatus1 = wh31_ch1__batt   # indoor t+h sensors on channels 1-5
        batteryStatus2 = wh31_ch2__batt
        batteryStatus3 = wh31_ch3__batt
        batteryStatus4 = wh31_ch4__batt
        batteryStatus5 = wh31_ch5__batt
        batteryStatus8 = wh51_ch1__batt   # soil moisture
        soilTemp1 = temp9                 # wh34 soil temp
                                          # unfortunately no batteryStatus9 exists for wh34_ch1_batt

        rain              = t_rain        # WH40BH as primary rain sensor
        rainBatteryStatus = wh40_batt     # and its battery status



If you are running a dpkg installation of weewx, you can test the driver with:
PYTHONPATH=/etc/weewx/bin python3 -m user.gw1000 --test-driver --ip-address=192.168.2.87

O S

unread,
Dec 31, 2025, 5:16:52 PM (10 days ago) 12/31/25
to weewx-user
Thanks.

I didn't add the sensor_map line, so I have no idea why it's there either!

OK, so what I have done is right then, I have added:

[[field_map_extensions]]
         soilTemp1 = temp9

to the bottom of the [GW1000] section.

What do I do to get the value under Current Conditions and a plot on the report page? Please?

Thanks.
Reply all
Reply to author
Forward
0 new messages