Tuesday, 30. January 2020 01:21:32 UTC+1 mwall wrote :
>
> [Interceptor]
> ...
> [[sensor_map_extensions]]
> txBatteryStatus = wh65_battery
>
> that way you get all the standard mappings, and just override the
> txBatteryStatus
>
> m
>
That's right, and I will do that. However, actually this is not the only
change, I have made.
In summary there are these modifications:
class Consumer(object):
...
DEFAULT_SENSOR_MAP = {
...
'rainEvent': 'rain_event',
'txBatteryStatus': 'battery',
...
class EcowittClient(Consumer):
...
LABEL_MAP = {
'baromrelin': 'barometer',
...
'eventrainin': 'rain_event',
IGNORED_LABELS = [
'PASSKEY', 'dateutc', 'stationtype', 'model', 'freq', #
'baromrelin',
'maxdailygust', 'hourlyrainin', 'dailyrainin', #'eventrainin',
I tried to put these mappings into the sensor map extensions, but I failed.
Neither relative pressure nor rain event showed up. Maybe again you can
help.
Unless I cannot put all of it into the extensions in weewx.conf, I prefer
not to mess up with editing at two places but track my modifications in
interceptor.py only.
--
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/9c4bebc5-7298-47a9-acd8-0a480303cf54%40googlegroups.com.