GW1000 extension as a service

95 views
Skip to first unread message

vigilance wx

unread,
May 4, 2023, 5:19:54 AM5/4/23
to weewx-user

I would like to install the GW1000 extension as a service

 

I have a Davis vantage and 6 extraTemp sensors connected to a 1 wire system

I am unsure  regarding the explanation if it will over write my 1 wire system or not

looking in the gw1000.py  I see

    # Default field map to map device sensor data to WeeWX fields. Field names

    # in the WeeWX wview_extended schema are used where there is a direct

    # correlation to the WeeWX wview_extended schema or

    # weewx.units.obs_group_dict. If there is a related but different field in

    # the wview_extended schema then a WeeWX field name with a similar format

    # is used. Otherwise fields are passed through as is.

    # Field map format is:

    #   WeeWX field name: Gateway device field name

    default_field_map = {

        'inTemp': 'intemp',

        'outTemp': 'outtemp',

        'dewpoint': 'dewpoint',

        'windchill': 'windchill',

        'heatindex': 'heatindex',

        'inHumidity': 'inhumid',

        'outHumidity': 'outhumid',

        'pressure': 'absbarometer',

        'relbarometer': 'relbarometer',

        'luminosity': 'light',

        # we can't pass through 'uv'; it's too much like 'UV', so use the

        # Ecowitt term 'uvradiation'

        'uvradiation': 'uv',

        'UV': 'uvi',

        'dateTime': 'datetime',

        'extraTemp1': 'temp1',

        'extraTemp2': 'temp2',

        'extraTemp3': 'temp3',

        'extraTemp4': 'temp4',

        'extraTemp5': 'temp5',

        'extraTemp6': 'temp6',


thanks for an help

gjr80

unread,
May 4, 2023, 6:27:02 AM5/4/23
to weewx-user
Short answer is no it will not overwrite existing loop packet data.

But there may be a bit more to it in your case. If you have a Davis Vantage and a 1 wire system I assume you are running the vantage driver with a separate service to augment the vantage produced loop packet with 1 wire data. If you then use the Ecowitt gateway driver as a service the overall result may depend on the order the 1 wire and Ecowitt gateway driver service appear in the service list. If the Ecowitt service is first then the Ecowitt service will only be augmenting the vantage loop packet (again not overwriting any existing loop packet data). What the 1 wire service then does with the 1 wire data and the Ecowitt augmented loop packet depends on the 1 wire service. If the services are in the other order then any 1 wire data will always be preserved.

If you do have a conflict in field names, and you want to preserve the Ecowitt data, then all you need do is alter the field map used by the Ecowitt service. The easiest way to do this is with a [[field_map_extensions]] stanza, eg:

[GW1000]
    ....
    [[field_map_extensions]]
        extraTemp20 = temp6

extraTemp20 would need to be added to your database schema if you wish to save the data to database, alternatively you could re-use an existing unused database field.

Gary

vigilance wx

unread,
May 4, 2023, 7:15:59 AM5/4/23
to weewx-user
yes i am using the 1 wire as a service
many years when i modified the schema i created 20 extraTemps so i will use my extraTemp10 to extraTemp 20

thanks for your help apprecaite it

vigilance wx

unread,
May 4, 2023, 7:30:46 AM5/4/23
to weewx-user
Hi Gary

looking at 



[GW1000]
    ....
    [[field_map_extensions]]

can it be placed anywhere within the weewx.confg file
or before the services are ran




gjr80

unread,
May 4, 2023, 8:06:06 AM5/4/23
to weewx-user
The [GW1000] stanza can be placed anywhere in weewx.conf provided it does not fall within another top level [ ] stanza. For example, you could put the [GW1000] stanza immediately before [StdArchive] but you could not put it in the middle of the [StdReport] stanza. Order within weewx.conf is not important but the integrity of the stanzas is.

Gary

vigilance wx

unread,
May 4, 2023, 9:39:07 AM5/4/23
to weewx-user
ok all good thanks for your help
Reply all
Reply to author
Forward
0 new messages