Yes, I have not been happy with the way in which the field_map_extensions
are used to update the field map, you can remove those duplicates by adding
a blank entry for the WeeWX field name from the default field map but that
is somewhat cumbersome.
I have reworked the field map processing code just now and think I have it
working better now. As of b10 (just published) any GW1000 'fields' that are
included in the field_map_extensions are first removed from the field map
and then the field map is updated with the field_map_extensions entries.
Gary
On Monday, 3 August 2020 22:35:50 UTC+10, Graham Eddy wrote:
>
> actually the merger of the extensions into the fieldmap seems to have just
> added the extensions, not overwritten the defaults. i guess the
> duplications are mucking up the mappings and therefore the values i’m
> archiving
>
> my weewx.conf contains
>
> [Gw1000Service]
> [[field_map_extensions]]
> shadowInTemp = intemp
> shadowOutTemp = outtemp
> shadowDewpoint = dewpoint
> shadowWindChill = windchill
> shadowHeatindex = heatindex
> shadowInHumidity = inhumid
> shadowOutHumidity = outhumid
> shadowPressure = absbarometer
> shadowWindDir = winddir
> shadowWindSpeed = windspeed
> shadowWindGust = windgust
> shadowRain = rain
> shadowStormRain = rainevent
> shadowRainRate = rainrate
> radiation = uv
> aqiPm251 = 24havpm251
> aqiPm252 = 24havpm252
>
>
> (all these shadow entries are because i will store the gw1000 values for
> comparison with my primary source, the old vp2 - i am running the gw1000
> driver as a service to augment the vp2 data)
>
> in the copy-pasted entry from log below, look for example at all the weewx
> fields called shadow* e.g. shadowInTemp <- intemp *and* inTemp <- intemp
>
> Aug 3 22:09:21 dizzy weewx[29959] INFO gw1000: user.gw1000: field map is
> {'24havpm251': '24havpm251', '24havpm252': '24havpm252', '24havpm253':
> '24havpm253', '24havpm254': '24havpm254', 'UV': 'uvi', 'aqiPm251':
> '24havpm251', 'aqiPm252': '24havpm252', 'dateTime': 'datetime', 'dayRain':
> 'rainday', 'daymaxwind': 'daymaxwind', 'dewpoint': 'dewpoint',
> 'extraHumid1': 'humid1', 'extraHumid2': 'humid2', 'extraHumid3': 'humid3',
> 'extraHumid4': 'humid4', 'extraHumid5': 'humid5', 'extraHumid6': 'humid6',
> 'extraHumid7': 'humid7', 'extraHumid8': 'humid8', 'extraTemp1': 'temp1',
> 'extraTemp2': 'temp2', 'extraTemp3': 'temp3', 'extraTemp4': 'temp4',
> 'extraTemp5': 'temp5', 'extraTemp6': 'temp6', 'extraTemp7': 'temp7',
> 'extraTemp8': 'temp8', 'heatindex': 'heatindex', 'hourRain': 'rainhour',
> 'inHumidity': 'inhumid', 'inTemp': 'intemp', 'leak1': 'leak1', 'leak2':
> 'leak2', 'leak3': 'leak3', 'leak4': 'leak4', 'lightning_distance':
> 'lightningdist', 'lightning_last_det_time': 'lightningdettime',
> 'lightning_strike_count': 'lightning_strike_count’,
> 'luminosity': 'light', 'monthRain': 'rainmonth', 'outHumidity':
> 'outhumid', 'outTemp': 'outtemp', 'pm2_5': 'pm251', 'pm2_52': 'pm252',
> 'pm2_53': 'pm253', 'pm2_54': 'pm254', 'pressure': 'absbarometer',
> 'radiation': 'uv', 'rain': 'rain', 'rainRate': 'rainrate', 'relbarometer':
> 'relbarometer', 'shadowDewpoint': 'dewpoint', 'shadowHeatindex':
> 'heatindex', 'shadowInHumidity': 'inhumid', 'shadowInTemp': 'intemp',
> 'shadowOutHumidity': 'outhumid', 'shadowOutTemp': 'outtemp',
> 'shadowPressure': 'absbarometer', 'shadowRain': 'rain', 'shadowRainRate':
> 'rainrate', 'shadowStormRain': 'rainevent', 'shadowWindChill': 'windchill',
> 'shadowWindDir': 'winddir', 'shadowWindGust': 'windgust',
> 'shadowWindSpeed': 'windspeed', 'soilMoist1': 'soilmoist1', 'soilMoist2':
> 'soilmoist2', 'soilMoist3': 'soilmoist3', 'soilMoist4': 'soilmoist4',
> 'soilMoist5': 'soilmoist5', 'soilMoist6': 'soilmoist6', 'soilMoist7':
> 'soilmoist7', 'soilMoist8': 'soilmoist8', 'soilMoist9': 'soilmoist9',
> 'soilMoist10': 'soilmoist10’,
> 'soilMoist11': 'soilmoist11', 'soilMoist12': 'soilmoist12', 'soilMoist13':
> 'soilmoist13', 'soilMoist14': 'soilmoist14', 'soilMoist15': 'soilmoist15',
> 'soilMoist16': 'soilmoist16', 'soilTemp1': 'soiltemp1', 'soilTemp2':
> 'soiltemp2', 'soilTemp3': 'soiltemp3', 'soilTemp4': 'soiltemp4',
> 'soilTemp5': 'soiltemp5', 'soilTemp6': 'soiltemp6', 'soilTemp7':
> 'soiltemp7', 'soilTemp8': 'soiltemp8', 'soilTemp9': 'soiltemp9',
> 'soilTemp10': 'soiltemp10', 'soilTemp11': 'soiltemp11', 'soilTemp12':
> 'soiltemp12', 'soilTemp13': 'soiltemp13', 'soilTemp14': 'soiltemp14',
> 'soilTemp15': 'soiltemp15', 'soilTemp16': 'soiltemp16', 'stormRain':
> 'rainevent', 'totalRain': 'raintotals', 'uvradiation': 'uv', 'weekRain':
> 'rainweek', 'wh25_batt': 'wh25_batt', 'wh26_batt': 'wh26_batt',
> 'wh31_ch1_batt': 'wh31_ch1_batt', 'wh31_ch2_batt': 'wh31_ch2_batt',
> 'wh31_ch3_batt': 'wh31_ch3_batt', 'wh31_ch4_batt': 'wh31_ch4_batt',
> 'wh31_ch5_batt': 'wh31_ch5_batt', 'wh31_ch6_batt': 'wh31_ch6_batt',
> 'wh31_ch7_batt': 'wh31_ch7_batt’,
> 'wh31_ch8_batt': 'wh31_ch8_batt', 'wh40_batt': 'wh40_batt',
> 'wh41_ch1_batt': 'wh41_ch1_batt', 'wh41_ch2_batt': 'wh41_ch2_batt',
> 'wh41_ch3_batt': 'wh41_ch3_batt', 'wh41_ch4_batt': 'wh41_ch4_batt',
> 'wh51_ch1_batt': 'wh51_ch1_batt', 'wh51_ch2_batt': 'wh51_ch2_batt',
> 'wh51_ch3_batt': 'wh51_ch3_batt', 'wh51_ch4_batt': 'wh51_ch4_batt',
> 'wh51_ch5_batt': 'wh51_ch5_batt', 'wh51_ch6_batt': 'wh51_ch6_batt',
> 'wh51_ch7_batt': 'wh51_ch7_batt', 'wh51_ch8_batt': 'wh51_ch8_batt',
> 'wh51_ch9_batt': 'wh51_ch9_batt', 'wh51_ch10_batt': 'wh51_ch10_batt',
> 'wh51_ch11_batt': 'wh51_ch11_batt', 'wh51_ch12_batt': 'wh51_ch12_batt',
> 'wh51_ch13_batt': 'wh51_ch13_batt', 'wh51_ch14_batt': 'wh51_ch14_batt',
> 'wh51_ch15_batt': 'wh51_ch15_batt', 'wh51_ch16_batt': 'wh51_ch16_batt',
> 'wh55_ch1_batt': 'wh55_ch1_batt', 'wh55_ch2_batt': 'wh55_ch2_batt',
> 'wh55_ch3_batt': 'wh55_ch3_batt', 'wh55_ch4_batt': 'wh55_ch4_batt',
> 'wh57_batt': 'wh57_batt', 'wh65_batt': 'wh65_batt', 'wh68_batt':
> 'wh68_batt', 'windDir': 'winddir', 'windGust': 'gustspeed', 'windSpeed':
> 'windspeed', 'windchill': 'windchill', 'ws80_batt': 'ws80_batt',
> 'yearRain': 'rainyear'}
>
>
>
> On 3 Aug 2020, at 8:23 pm, Graham Eddy wrote:
>
> i am testing gw1000 driver (b9) in service not driver mode.
> my entries in weewx.conf under [GW1000] [[field_map_extensions]] were
> being ignored
> but worked fine if i put them under [Gw1000Service]
> [[field_map_extensions]].
> i don’t know if this difference was intentional but i didn’t see it
> documented (could be my bad spectacles again…)
>
>
>
>
>
--
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 on the web visit
https://groups.google.com/d/msgid/weewx-user/48dade8b-8a43-4575-b996-fed3e31576f6o%40googlegroups.com.