Trouble with LW300 oregon

28 views
Skip to first unread message

Olivier Payrastre

unread,
Jun 12, 2019, 6:01:34 AM6/12/19
to weewx-user
I try my chance here.

Last days, I posted an issue on GitHub https://github.com/matthewwall/weewx-interceptor/issues/54 but I Don't now if this is Always maintained, or not ?

So if someone can help me cause I understand a bit of code, but not at all python :( Just what I think, is that channel isn't improved in original code, so, what is send to weewx is all channels from the interceptor driver to outTemp and outHumid

mwall

unread,
Jun 12, 2019, 7:01:08 AM6/12/19
to weewx-user
On Wednesday, June 12, 2019 at 6:01:34 AM UTC-4, Olivier Payrastre wrote:
So if someone can help me cause I understand a bit of code, but not at all python :( Just what I think, is that channel isn't improved in original code, so, what is send to weewx is all channels from the interceptor driver to outTemp and outHumid

when you use the lw30x station and the interceptor driver, use the `sensor_map` to distinguish sensors.  the default sensor map puts the temperature and humidity values from all sensors into the 'outTemp' and 'outHumidity' fields.

this is how you would define a sensor map for a configuration with 4 sensors:

[Interceptor]
    ...
    [[sensor_map]]
        pressure = baro.*.*
        outTemp = ot.1:*.*
        outHumidity = oh.1:*.*
        windSpeed = ws.?:*.*
        windGust = wg.?:*.*
        windDir = wd.?:*.*
        rainRate = rr.?:*.*
        rain = rain.?:*.*
        UV = uvh.?:*.*
        extraTemp1 = ot.2:*.*  # office
        extraHumid1 = oh.2:*.*
        extraTemp2 = ot.3.*.*  # garage
        extraHumid2 = oh.3:*.*
        extraTemp3 = ot.4:*.*  # pool
        extraHumid3 = oh.4:*.*

the label on the left is the name of a database field (e.g., outTemp), and the pattern on the right is a tuple with glob-style pattern matching.  each tuple is a pattern of the form:

<observation_name>.<channel_id>:<rid>.<mac>

typically you only need to distinguish using the 'channel_id' - you only need to specify the 'rid' and 'mac' if you have multiple sensors of the same type using the same channel.

this sensor_map pattern is used in most weewx drivers that have extensible sensors.  the tuple syntax varies depending on the hardware.

m

Olivier Payrastre

unread,
Jun 12, 2019, 11:09:45 AM6/12/19
to weewx-user
Thank you very much for the explanation. I didn't know that way to use the drivers. I'll apply this. Thanks for all.
Reply all
Reply to author
Forward
0 new messages