GW1000 and WeeWX field mapping

189 views
Skip to first unread message

Steven Sheeley

unread,
Jan 19, 2021, 8:51:07 PM1/19/21
to weewx-user

Good day every one. I know that there have been many threads on this but I can not get my install to work at all.  Well, actually, it's mostly working. Website is publicly access able at https://wendywx.myndworx.com.au. My issue is that I am not seeing Outside Temp, Outside Humidity or Barometric Pressure. I've set up the GW1000 using the WS View Android App and everything shows up there (Other than the defective WH55, which is being replaced) and I've set it up to send data to www.ecowitt.net and all readings show up there.

Here's the specs"
  1. Raspberry Pi 4B Latest OS (Buster) Fresh and clean install
  2. Booting from a 64GB M.2 SSD drive
  3. Apache and PHP installed
  4. WeeWX v4.3.0 fresh installed
  5. GW1000 v0.2.0 installed
  6. List of sensors
    1.  GW1000 PWS Gateway
    2. WH31  Multi-Channel Temperature and humidity Sensor 
    3. WH40  Wireless Self-Emptying Rain Collector Rainfall Sensor 
    4. WH41  PM2.5 Air Quality Sensor Monitor Outdoor 
    5. WH43  PM2.5 Air Quality Sensor for Indoor Use 
    6. WH51  Wireless Soil Moisture Sensor Max 8 Channels Soil Humidity Tester (x4)
    7. WH55  Wireless Water Leak Detection Sensor with Loud Audio Alarm
    8. WH57  Wireless Lightning Detection Sensor with Email Alert
    9. WS68  Wireless Solar Powered Anemometer with Light & UV Sensor
Live data from the GW1000 via the --live-data parameter

pi@wendywx:~ $ sudo PYTHONPATH=/usr/share/weewx python3 -m user.gw1000 --live-data
Using configuration file /etc/weewx/weewx.conf

Interrogating GW1000 at 192.168.0.107:45000

GW1000 live sensor data: absbarometer: 1021.5, datetime: 1611105772, daymaxwind: 6.1, gustspeed: 1.5, humid1: 45, inhumid: 35, intemp: 26.6, light: 110510.0, lightningcount: 0, lightningdettime: None, lightningdist: None, pm251: 10.0, pm251_24h_avg: 11.0, pm252: 8.0, pm252_24h_avg: 6.1, rainday: 0.0, rainevent: 0.0, rainmonth: 6.0, rainrate: 0.0, rainweek: 0.2, rainyear: 6.0, relbarometer: 1021.5, soilmoist1: 39, soilmoist2: 39, soilmoist3: 39, soilmoist4: 37, temp1: 21.0, uv: 313.8, uvi: 8, wh31_ch1_batt: 0, wh31_ch1_sig: 4, wh40_batt: 0, wh40_sig: 4, wh41_ch1_batt: 5, wh41_ch1_sig: 4, wh41_ch2_batt: 3, wh41_ch2_sig: 4, wh51_ch1_batt: 0, wh51_ch1_sig: 4, wh51_ch2_batt: 0, wh51_ch2_sig: 4, wh51_ch3_batt: 0, wh51_ch3_sig: 4, wh51_ch4_batt: 0, wh51_ch4_sig: 4, wh57_batt: 4, wh57_sig: 4, wh68_batt: 1.56, wh68_sig: 4, winddir: 355, windspeed: 1.3

I've tried the following in weewx.conf

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

[GW1000]
    # This section is for the GW1000 API driver.

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

    # The driver to use:
    driver = user.gw1000
    ip_address = 192.168.0.107
    port = 45000

    [[field_map_extensions]]
        #--- the defaults map inTemp, inHumidity
        # outTemp
        extraTemp1 = temp1
        # outHumidity
        extraHumid1 = humid1
##############################################################################

But that's not working so I'm sure I'm doing that wrong.  I'd like to get the weather34 skin operational, but can go any farther till I get the baseline working so I'm hoping that someone here can lend a helping hand and lead me out of the darkness.

Thanks for the assist mate.

gjr80

unread,
Jan 19, 2021, 9:13:26 PM1/19/21
to weewx-user
From what you have posted I do not see anything wrong. —live-data displays all of the sensor data straight from the GW1000 so no mapping (that is why you see temp1, humid1 etc and not WeeWX field names). If you want to see the results post mapping (ie what the driver sends to WeeWX) you need to run WeeWX directly or run the driver directly with —test-driver command line option.

When you say you are ‘not seeing Outside Temp, Outside Humidity’ do you mean WeeWX fields outTemp and outHumidity are not being populated and you want them populated? If so you need to remove the extraTemp1 and extraHumid1 mappings as they are taking the data that is normally mapped to outTemp and outHumidity (you can only map a field once in the driver). With the mapping you have now outside temperature and outside humidity are being mapped to WeeWX fields extraTemp1 and extraHumid1. If you run WeeWX directly you will see this.

It’s possible the lack of outTemp is preventing WeeWX from calculating one of the pressure fields, would need to see the results of running WeeWX directly to comment further.

Gary

Steven Sheeley

unread,
Jan 19, 2021, 9:58:24 PM1/19/21
to weewx...@googlegroups.com
OK, starting un-mapped and clean.  I've commented out the field mapping as it wasn't working before I tried the field mapping.  Here's what weewx shows when run directly, a LOOP, a REC and a LOOP:

LOOP:   2021-01-20 13:50:23 AEDT (1611111023) altimeter: 30.214931325260572, dateTime: 1611111023, daymaxwind: 6.1, dayRain: 0.0, extraHumid1: 44, extraTemp1: 71.42, inDewpoint: 49.92640514397384, inHumidity: 34, inTemp: 80.96000000000001, lightning_distance: None, lightning_last_det_time: None, lightning_strike_count: 0, luminosity: 115940.0, maxSolarRad: 1061.283312378295, monthRain: 0.2362204724409449, pm2_5: 9.0, pm2_51_24h_avg: 10.6, pm2_52: 7.0, pm2_52_24h_avg: 6.3, pressure: 30.1264932475, rain: 0.0, rainRate: 0.0, relbarometer: 1020.2, soilMoist1: 38, soilMoist2: 38, soilMoist3: 38, soilMoist4: 36, stormRain: 0.0, usUnits: 1, UV: 8, uvradiation: 313.8, weekRain: 0.2, wh31_ch1_batt: 0, wh31_ch1_sig: 4, wh40_batt: 0, wh40_sig: 4, wh41_ch1_batt: 4, wh41_ch1_sig: 4, wh41_ch2_batt: 3, wh41_ch2_sig: 4, wh51_ch1_batt: 0, wh51_ch1_sig: 4, wh51_ch2_batt: 0, wh51_ch2_sig: 4, wh51_ch3_batt: 0, wh51_ch3_sig: 4, wh51_ch4_batt: 0, wh51_ch4_sig: 4, wh57_batt: 4, wh57_sig: 4, wh68_batt: 1.56, wh68_sig: 4, windDir: 355, windGust: 5.816048815042191, windSpeed: 4.697577889072539, yearRain: 0.2362204724409449
REC:    2021-01-20 13:50:00 AEDT (1611111000) altimeter: 30.214931325260572, dateTime: 1611111000, daymaxwind: 6.1, dayRain: 0.0, ET: None, extraHumid1: 43.0, extraTemp1: 71.42, inDewpoint: 49.92640514397384, inHumidity: 34.0, inTemp: 80.96000000000001, interval: 5.0, lightning_distance: None, lightning_last_det_time: None, lightning_strike_count: 0.0, luminosity: 116090.0, maxSolarRad: 1061.4627989986568, monthRain: 0.2362204724409449, pm2_5: 9.0, pm2_51_24h_avg: 10.6, pm2_52: 7.0, pm2_52_24h_avg: 6.3, pressure: 30.1264932475, rain: 0.0, rainRate: 0.0, relbarometer: 1020.2, soilMoist1: 38.0, soilMoist2: 38.0, soilMoist3: 38.0, soilMoist4: 36.0, stormRain: 0.0, usUnits: 1, UV: 8.0, uvradiation: 313.8, weekRain: 0.2, wh31_ch1_batt: 0, wh31_ch1_sig: 4, wh40_batt: 0, wh40_sig: 4, wh41_ch1_batt: 4, wh41_ch1_sig: 4, wh41_ch2_batt: 3, wh41_ch2_sig: 4, wh51_ch1_batt: 0, wh51_ch1_sig: 4, wh51_ch2_batt: 0, wh51_ch2_sig: 4, wh51_ch3_batt: 0, wh51_ch3_sig: 4, wh51_ch4_batt: 0, wh51_ch4_sig: 4, wh57_batt: 4, wh57_sig: 4, wh68_batt: 1.56, wh68_sig: 4, windDir: 15.0, windGust: 4.473883703878609, windGustDir: 15, windrun: 0.3169000956914015, windSpeed: 3.8028011482968176, yearRain: 0.2362204724409449
LOOP:   2021-01-20 13:50:53 AEDT (1611111053) altimeter: 30.211971180044973, dateTime: 1611111053, daymaxwind: 6.1, dayRain: 0.0, extraHumid1: 44, extraTemp1: 71.42, inDewpoint: 50.0837333345728, inHumidity: 34, inTemp: 81.14, lightning_distance: None, lightning_last_det_time: None, lightning_strike_count: 0, luminosity: 116090.0, maxSolarRad: 1061.0988940654713, monthRain: 0.2362204724409449, pm2_5: 9.0, pm2_51_24h_avg: 10.6, pm2_52: 7.0, pm2_52_24h_avg: 6.3, pressure: 30.12354024875, rain: 0.0, rainRate: 0.0, relbarometer: 1020.1, soilMoist1: 38, soilMoist2: 38, soilMoist3: 38, soilMoist4: 36, stormRain: 0.0, usUnits: 1, UV: 8, uvradiation: 313.8, weekRain: 0.2, wh31_ch1_batt: 0, wh31_ch1_sig: 4, wh40_batt: 0, wh40_sig: 4, wh41_ch1_batt: 4, wh41_ch1_sig: 4, wh41_ch2_batt: 3, wh41_ch2_sig: 4, wh51_ch1_batt: 0, wh51_ch1_sig: 4, wh51_ch2_batt: 0, wh51_ch2_sig: 4, wh51_ch3_batt: 0, wh51_ch3_sig: 4, wh51_ch4_batt: 0, wh51_ch4_sig: 4, wh57_batt: 4, wh57_sig: 4, wh68_batt: 1.56, wh68_sig: 4, windDir: 354, windGust: 6.934519741011844, windSpeed: 4.92127207426647, yearRain: 0.2362204724409449

Still, the Seasons Report shows no data for Outside Temp or Humidity.
--
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/5crj5Jg_b_0/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/400dda98-86cc-46cb-8abd-06c78b8f3cd2n%40googlegroups.com.

gjr80

unread,
Jan 20, 2021, 1:21:08 AM1/20/21
to weewx-user
I do apologise, please ignore my previous post. I don't know what I was thinking but it was clearly wrong, will teach me to rush a reply before going out.

temp1-8 (default mapped to extraTemp1-8) come from your WH31 sensors. outtemp (default mapped to outTemp) and outhumid (default mapped to outHumidity) are a little more complex. If you have a WH32 it will provide outtemp and outhumid. I believe the x-in-1 sensor arrays (WH65, WS68 and WS80) also provide outtemp and outhumid (my testing/development has been limited to WH32 based systems so I am relying on literature here). In your case, given your list of sensors and the --live-data output provided, you have no sensor that provides what the GW1000 calls outtemp and outhumid.

Your WH31 cannot provide outtemp and outhumid but what you can do is map the temperature and humidity data from a WH31 to WeeWX fields outTemp and outHumidity. Your --live-data output suggests you have just one WH31 and it is on channel 1. If you want to map its output to outTemp/outHumidity you need a [[field_map_extensions]] stanza like this:

    [[field_map_extensions]]
        outTemp = temp1
        outHumidity = humid1

This will remove WeeWX fields extraTemp1 and extraHumid1 from future loop packets/archive records. You can check its operation by running WeeWX directly or running the driver directly with the --test-driver command line option.

Regards your missing pressure, once you have outTemp see if that causes WeeWX to calculate the missing pressure, bear in mind though it could take 12 hours (of outTemp data) before the calculation occurs.

My apologies again for misleading you.

Gary

Steven Sheeley

unread,
Jan 20, 2021, 2:10:53 AM1/20/21
to weewx...@googlegroups.com
No worries mate.

I've added the Field Map Extension stanza as you wrote it and here's what WeeWX is showing now.

LOOP:   2021-01-20 18:05:42 AEDT (1611126342) altimeter: 30.143887807128014, appTemp: 73.64474084003541, barometer: 30.138999904876254, cloudbase: 3863.5213972385827, dateTime: 1611126342, daymaxwind: 8.7, dayRain: 0.0, dewpoint: 56.566963406178594, heatindex: 72.87400000000001, humidex: 78.91044937032157, inDewpoint: 55.02112432622511, inHumidity: 52, inTemp: 73.75999999999999, lightning_distance: None, lightning_last_det_time: None, lightning_strike_count: 0, luminosity: 52540.0, maxSolarRad: 430.78504964077194, monthRain: 0.2362204724409449, outHumidity: 56, outTemp: 73.22, pm2_5: 13.0, pm2_51_24h_avg: 9.3, pm2_52: 7.0, pm2_52_24h_avg: 6.9, pressure: 30.0556212775, rain: 0.0, rainRate: 0.0, relbarometer: 1017.8, soilMoist1: 36, soilMoist2: 37, soilMoist3: 37, soilMoist4: 35, stormRain: 0.0, usUnits: 1, UV: 4, uvradiation: 140.0, weekRain: 0.2, wh31_ch1_batt: 0, wh31_ch1_sig: 4, wh40_batt: 0, wh40_sig: 4, wh41_ch1_batt: 4, wh41_ch1_sig: 4, wh41_ch2_batt: 3, wh41_ch2_sig: 4, wh51_ch1_batt: 0, wh51_ch1_sig: 4, wh51_ch2_batt: 0, wh51_ch2_sig: 4, wh51_ch3_batt: 0, wh51_ch3_sig: 4, wh51_ch4_batt: 0, wh51_ch4_sig: 4, wh57_batt: 4, wh57_sig: 4, wh68_batt: 1.56, wh68_sig: 4, windchill: 73.22, windDir: 352, windGust: 4.473883703878609, windSpeed: 2.9080244075210957, yearRain: 0.2362204724409449
REC:    2021-01-20 18:05:00 AEDT (1611126300) altimeter: 30.14177341564022, appTemp: 70.99912262862394, barometer: 30.136872688919674, cloudbase: 3945.9957528208333, dateTime: 1611126300, daymaxwind: 8.7, dayRain: 0.0, dewpoint: 56.28121909875954, ET: None, heatindex: 72.92528571428572, humidex: 78.82493358748115, inDewpoint: 55.42406167682481, inHumidity: 52.0, inTemp: 74.19714285714288, interval: 5.0, lightning_distance: None, lightning_last_det_time: None, lightning_strike_count: 0.0, luminosity: 52940.0, maxSolarRad: 440.59787025988487, monthRain: 0.2362204724409449, outHumidity: 55.285714285714285, outTemp: 73.29714285714286, pm2_5: 13.0, pm2_51_24h_avg: 9.3, pm2_52: 7.0, pm2_52_24h_avg: 6.9, pressure: 30.05351199267857, rain: 0.0, rainRate: 0.0, relbarometer: 1017.7285714285714, soilMoist1: 36.0, soilMoist2: 37.0, soilMoist3: 37.0, soilMoist4: 35.0, stormRain: 0.0, usUnits: 1, UV: 4.0, uvradiation: 140.0, weekRain: 0.2, wh31_ch1_batt: 0, wh31_ch1_sig: 4, wh40_batt: 0, wh40_sig: 4, wh41_ch1_batt: 4, wh41_ch1_sig: 4, wh41_ch2_batt: 3, wh41_ch2_sig: 4, wh51_ch1_batt: 0, wh51_ch1_sig: 4, wh51_ch2_batt: 0, wh51_ch2_sig: 4, wh51_ch3_batt: 0, wh51_ch3_sig: 4, wh51_ch4_batt: 0, wh51_ch4_sig: 4, wh57_batt: 4, wh57_sig: 4, wh68_batt: 1.56, wh68_sig: 4, windchill: 73.29714285714286, windDir: 356.51752627247083, windGust: 13.645345296829756, windGustDir: 11, windrun: 0.6311371653685894, windSpeed: 7.573645984423074, yearRain: 0.2362204724409449
LOOP:   2021-01-20 18:06:12 AEDT (1611126372) altimeter: 30.143887807128014, appTemp: 73.01474084003542, barometer: 30.138999904876254, cloudbase: 3863.5213972385827, dateTime: 1611126372, daymaxwind: 8.7, dayRain: 0.0, dewpoint: 56.566963406178594, heatindex: 72.87400000000001, humidex: 78.91044937032157, inDewpoint: 55.187043586728066, inHumidity: 52, inTemp: 73.94, lightning_distance: None, lightning_last_det_time: None, lightning_strike_count: 0, luminosity: 52390.0, maxSolarRad: 428.83289169740937, monthRain: 0.2362204724409449, outHumidity: 56, outTemp: 73.22, pm2_5: 10.0, pm2_51_24h_avg: 9.3, pm2_52: 7.0, pm2_52_24h_avg: 6.9, pressure: 30.0556212775, rain: 0.0, rainRate: 0.0, relbarometer: 1017.8, soilMoist1: 36, soilMoist2: 37, soilMoist3: 37, soilMoist4: 35, stormRain: 0.0, usUnits: 1, UV: 4, uvradiation: 140.0, weekRain: 0.2, wh31_ch1_batt: 0, wh31_ch1_sig: 4, wh40_batt: 0, wh40_sig: 4, wh41_ch1_batt: 4, wh41_ch1_sig: 4, wh41_ch2_batt: 3, wh41_ch2_sig: 4, wh51_ch1_batt: 0, wh51_ch1_sig: 4, wh51_ch2_batt: 0, wh51_ch2_sig: 4, wh51_ch3_batt: 0, wh51_ch3_sig: 4, wh51_ch4_batt: 0, wh51_ch4_sig: 4, wh57_batt: 4, wh57_sig: 4, wh68_batt: 1.56, wh68_sig: 4, windchill: 73.22, windDir: 359, windGust: 6.934519741011844, windSpeed: 4.026495333490748, yearRain: 0.2362204724409449

However, The Seasons report still shows nothing for the Current conditions and the Out Door Temp and Humidity:

Current Conditions
Outside Temperature N/A
Heat Index N/A
Wind Chill N/A
Dew Point N/A
Humidity N/A
Barometer N/A ( N/A)
Wind 1.6 m/s NW (307°)
Rain Rate 0.0 mm/h
Rain Today 0.0 mm
UV Index 2.0
Inside Temperature 18.3°C
Inside Humidity 56%
Temperature1 18.4°C


Hope I'm not being too much of a PITA.

Steven
Myndworx Asylum Lab & Fabrication Facility


On 20/01/2021 17:21, gjr80 wrote:

gjr80

unread,
Jan 20, 2021, 2:40:28 AM1/20/21
to weewx-user
OK, so you now have outTemp and outHumidity in both loop packets (LOOP:) and archive records (REC:). I notice the page and plot timestamps on the screenshot you posted is from 835am this morning, I am guessing that is a current (around 6pm) screenshot? If so that suggests that there is something preventing the Seasons report from running to completion and you are seeing an old page/plots. Can you edit weewx.conf and set debug = 1, save weewx.conf and then restart WeeWX. Let WeeWX run for a couple of archive periods and then take a log extract from when you restarted WeeWX through until the end of the two archive periods. Post the log extract back here making sure you capture the entire WeeWX startup as it has important config info.

On Wednesday, 20 January 2021 at 17:10:53 UTC+10 steven....@gmail.com wrote:
 
Hope I'm not being too much of a PITA.

Not at all.

Gary

Reply all
Reply to author
Forward
0 new messages