Add soil moisture data

114 views
Skip to first unread message

Invisible Man

unread,
Oct 1, 2023, 9:51:57 AM10/1/23
to weewx-user
Hi,
I just acquired a new soil moisture sensor (EcoWitt). I added it to the weather station and it works fine. Now, I'd like to get the value with Weewx.
I already use the the Interceptor driver (https://github.com/matthewwall/weewx-interceptor) which works fine for months/years, and I see now the new soil moisture data in it.
But I forgot how to do add the value to Weewx and both display the current moisture + display a curve for it. Can you help me out ?

This is the interceptor packet:

Oct  1 15:17:39 vegan weewx[14762] DEBUG user.interceptor: raw packet: {'dateTime': 1696166258, 'usUnits': 1, 'temperature_in': 80.1, 'humidity_in': 54.0, 'pressure': 29.935, 'temperature_out': 83.5, 'humidity_out': 49.0, 'wind_dir': 279.0, 'wind_speed': 0.45, 'wind_gust': 2.24, 'solar_radiation': 407.46, 'uv': 3.0, 'rain_rate': 0.0, 'rain_total': 10.74, 'soil_moisture_1': 23.0, 'wh65_battery': 0.0, 'wh25_battery': 0.0, 'soil_battery_1': 1.4, 'rain': 0.0}
Oct  1 15:17:39 vegan weewx[14762] DEBUG user.interceptor: mapped packet: {'dateTime': 1696166258, 'usUnits': 1, 'pressure': 29.935, 'outHumidity': 49.0, 'inHumidity': 54.0, 'outTemp': 83.5, 'inTemp': 80.1, 'windSpeed': 0.45, 'windGust': 2.24, 'windDir': 279.0, 'radiation': 407.46, 'rain': 0.0, 'rainRate': 0.0, 'UV': 3.0, 'soilMoist1': 23.0}

Notice soilMoist1. That's what I want to get :)

I am running:

  • Weewx 4.10.2
  • on a Raspberry Pi 3
  • The weather station is a EcoWitt HP2551AE_Pro_V1.8.0
I have the weather station & Weewx for years, and it works. It's just the sensor that I added today :)

Interceptor configuration:

[Interceptor]
    driver = user.interceptor
    device_type = ecowitt-client
    port = 8090
    iface = eth0

Thanks !
Axelle

Invisible Man

unread,
Oct 1, 2023, 4:32:27 PM10/1/23
to weewx-user
Ok, I'm approaching the solution. In skin.conf I added the following to generate the daymoistsoil.png

+       [[[daymoistsoil]]]
+            [[[[soilMoist1]]]]

and then in index.html.tmpl:

+         <img src="daymoistsoil.png" alt="Humidite sol" />

It should be working... at least daymoistsoil.png gets generated.
Reply all
Reply to author
Forward
0 new messages