Gary
V 10 as a service is almost 100% there.
However if you add a
    [[field_map]] stanza to weewx.config, it gets honored correctly,
however with the current logic we don't get a battery_field_map added at
all.
One way to fix, altho you probably have a more eloquent solution is:
       """Initialise a GW1000 object."""
        # construct the field map, first obtain the field map from our
config
        field_map = gw1000_config.get('field_map')
        # construct the battery state field map
        battery_field_map = gw1000_config.get('battery_field_map')
        # now add in the battery state field map
        field_map.update(battery_field_map)
        # obtain any field map extensions from our config
No changes after that.
Wow this thing is getting more complicated by the day 😁




On Mon, Aug 3, 2020 at 10:41 AM gjr80 <[email protected]> wrote:

> I have released v0.1.0b10 on Github
> <https://github.com/gjr80/weewx-gw1000/releases>. The changes include:
>
> - renamed --ip command line option to --ip-address
> - reworked field map processing, field_map_extensions entries should no
> longer result in multiple mapping for GW1000 'fields'
> - --system-params command line option should now show the correct GW1000
> time
> - reworked up front installation/setup comments in gw1000.py
> - GW1000 driver and service now use the same [GW1000] config stanza in
> weewx.conf
> - when run directly the source of the IP address and port settings is
> printed to console if debug >= 1
> - when run directly any --ip-address and --port command line options
> override any IP address and port settings in weewx.conf,  if --ip-address
> and/or --port are not specified ip_address and/or port from the [G1000]
> stanza in weewx.conf are used otherwise the address of the first
> discovered GW1000 is used
>
> b10 only changes weewx.conf if you were using the GW1000 driver as a
> service; however, upgrading to b10 by downloading the b10 extension package
> and installing with the wee_extension utility is the preferred means of
> installing/upgrading to b10. If you are using the GW1000 driver as a
> service upgrading with wee_extension will see a [GW1000] stanza with
> default install settings added to weewx.conf, after upgrading just copy
> your [Gw1000Service] settings to [GW1000] then delete [Gw1000Service] in
> toto.
>
> Gary
>
> --
> 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/280188a8-eb94-401a-95af-5f0d36196774o%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/280188a8-eb94-401a-95af-5f0d36196774o%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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/CAOAVAee9mc1bGwo3GGweCuavmw_kaJf17STP7M2ViMPbW%3DRRxg%40mail.gmail.com.

Reply via email to