Well, I started this conversation already at another thread 
(https://groups.google.com/g/weewx-user/c/ua0JjTp1DW8/m/AFGZf7AyAgAJ), 
concerning wind.gust.dir in version 4.2.0. As TK managed to solve the main 
problem, there is still the other part unsolved. So, I want to move this 
topic into a new thread, knowing, that there were similar questions during 
the last months, whicht could help only partially.

I am not able to change from interceptor's ecowitt-client to GW1000 without 
loss of some data. Gary provided the crucial hints in the thread mentioned 
above, which brought me almost to the successful end of this story. But 
still one thing remains to be much too complicated for me:

According to Gary's explanations, I introduced an extra stanza in 
weewx.conf:
# Options for extension 'GW1000'
[GW1000]
    driver = user.gw1000
    [[field_map_extensions]]
        # WeeWX field name = GW1000 field name
        rainEvent = rainevent
        wh65_battery = wh65_batt

I took these two values from the original ecowitt-client mappings in 
interceptor.py:

DEFAULT_SENSOR_MAP = {
...
       'rainEvent': 'rain_event',
        'UV': 'uv',

where the Weewx field is on the left and the Ecowitt-client field to the 
right side. 
And here is the other map in weewx.conf:

[Interceptor]
    driver = user.interceptor
    device_type = ecowitt-client
    mode = listen
    port = 9000
    [[sensor_map_extensions]]
        txBatteryStatus = wh65_battery

Here, the Ecowitt client field is at the left and thus the Weewx field 
should be to the right.
The GW1000 field map extension works! But this is true only for rainEvent, 
no for the battery status. I had a look into sensors.inc in the seasons 
skin:

#def get_battery_status($x)
#if $x == 0
<span class="status_ok">$x: GOOD</span>
#else
<span class="status_low">$x: LOW</span>
#end if
#end def

and found out, that, using the ecowitt-client, $wx == 0.0, but with GW1000 
it does not even exist, no value at all. Although I trend to assume, that I 
understand now, how the mappings work (thanks to Gary), I am still helpless 
to map the battery sensor properly.

Hopefully someone can bring me on the right track.

--ph

-- 
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 weewx-user+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/867997ae-14fe-4a90-a78c-6e83928cc1f2n%40googlegroups.com.

Reply via email to