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': 'wh65_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/7ecd2ebd-0e0c-42fd-8d6a-487e86d72cb0%40googlegroups.com.

Reply via email to