You never said what kind of station you have so I can't speculate what your
station is emitting, but you need to define field_map_extensions to map
what the gateway measures into weewx database elements.
On Saturday, October 4, 2025 at 3:38:50 PM UTC-7 [email protected] wrote:
> I managed today to make my new weather station working with weewx, coming
> from netatmo to ecowitt. It seems much more capable, so I'm happy.
>
> Only I need a little push with, this: How do I make it show the rain
> gauge. It shows zero though it has been pouring down all day (46mm).
>
> I also would like to add the meassures from the soil moisture sensor WH51.
> How do I get around that?
>
> /Bent
>
--
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 [email protected].
To view this discussion visit
https://groups.google.com/d/msgid/weewx-user/447b5d71-c1da-4771-be4d-ac5323098f5fn%40googlegroups.com.
#############################################################################
[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 = 192.168.2.87 # gw1200
port = 45000
[[field_map_extensions]]
outTempBatteryStatus = wh26_batt # actually a wh32 but the driver maps
it to wh26 internally
batteryStatus1 = wh31_ch1__batt # multiple wh31 indoors t+h sensors
batteryStatus2 = wh31_ch2__batt
batteryStatus3 = wh31_ch3__batt
batteryStatus4 = wh31_ch4__batt
batteryStatus5 = wh31_ch5__batt
batteryStatus8 = wh51_ch1__batt # moisture maps to soilMoist1
automatically
soilTemp1 = temp9 # wh34s soil temperature sensor
# unfortunately no batteryStatus9
exists for wh34_ch1_batt
rain = t_rain # use WH40BH as primary rain sensor
stormRain = t_rainevent
rainRate = t_rainrate
dayRain = t_rainday
weekRain = t_rainweek
monthRain = t_rainmonth
yearRain = t_rainyear
rainBatteryStatus = wh40_batt
windBatteryStatus = ws85_batt # WS85 as the primary wind sensor
# map WS85 piezo wind sensor to new elements in the db
# so we can compare piezo and tipper readings and tune the piezo in the
ecowitt app
#
p_rain = p_rain # WS85 as the piezo wind sensor
p_stormRain = p_rainevent
p_rainRate = p_rainrate
p_dayRain = p_rainday
p_weekRain = p_rainweek
p_monthRain = p_rainmonth
p_yearRain = p_rainyear
#
# IMPORTANT - to use the above, we need to add columns to the db,
fortunately the
# gw1000 driver already maps these to unit groups so no other
action is needed
#
# Add the typically optional --config option to have it figure out the
# non-standard db name from the config file.
#
# weectl database add-column p_rain
--config=/home/pi/weewx-data/ecowitt.conf
# weectl database add-column p_rainRate
--config=/home/pi/weewx-data/ecowitt.conf
# weectl database add-column p_rainBatteryStatus
--config=/home/pi/weewx-data/ecowitt.conf
#-------- how to test --------------
# (for pip installations)
# source weewx-venv/bin/activate
# PYTHONPATH=~/weewx-data/bin python3 -m user.gw1000 --test-driver
--ip-address=192.168.2.87
# for a dpkg installation (found in an old google search)
# PYTHONPATH=/etc/weewx/bin:/usr/share/weewx python3 -m user.gw1000
--test-driver --ip-address=192.168.2.87
#--------- (example data)--------------
# 2025-10-04 18:38:01 UTC (1759603081): 'dateTime': '1759603081',
'daymaxwind': '1.7', 'dayRain': '0.0', 'extraHumid1': '56', 'extraHumid2':
'56', 'extraHumid3': '58', 'extraHumid4': '62', 'extraHumid5': '76',
'extraTemp1': '20.6', 'extraTemp2': '19.9', 'extraTemp3': '19.9', 'extraTemp4':
'20.7', 'extraTemp5': '18.4', 'extraTemp9': '14.9', 'heap_free': '115252',
'inHumidity': '57', 'inTemp': '20.2', 'monthRain': '8.9', 'outHumidity': '86',
'outTemp': '15.7', 'p_dayRain': '0.0', 'p_monthRain': '7.9', 'p_rain': 'None',
'p_rainRate': '0.0', 'p_stormRain': '0.0', 'p_weekRain': '16.0', 'p_yearRain':
'17.3', 'pressure': '1007.2', 'rain': 'None', 'rainRate': '0.0',
'relbarometer': '1007.2', 'soilMoist1': '65', 'stormRain': '0.0', 'usUnits':
'17', 'weekRain': '14.7', 'wh31_ch1_batt': '0', 'wh31_ch1_sig': '4',
'wh31_ch2_batt': '0', 'wh31_ch2_sig': '4', 'wh31_ch3_batt': '0',
'wh31_ch3_sig': '4', 'wh31_ch4_batt': '0', 'wh31_ch4_sig': '3',
'wh31_ch5_batt': '0', 'wh31_ch5_sig': '4', 'wh32_batt': '0', 'wh32_sig': '4',
'wh40_batt': '1.43', 'wh40_sig': '4', 'wh51_ch1_batt': '1.2', 'wh51_ch1_sig':
'4', 'windDir': '330', 'windGust': '1.7', 'windSpeed': '1.4', 'wn34_ch1_batt':
'1.36', 'wn34_ch1_sig': '4', 'ws85_batt': '3.28', 'ws85_sig': '4', 'yearRain':
'16.3'
#############################################################################