gjr80 / weewx-gw1000

A WeeWX driver based on the Ecowitt LAN/Wi-Fi Gateway API
GNU General Public License v3.0
62 stars 9 forks source link

add new WS85 wind+rain sensor to driver #77

Open vinceskahan opened 4 months ago

vinceskahan commented 4 months ago

Your gw1000 driver picked up wind speed and gust automagically. We'll see if rain populates when we get some more probably tomorrow.

Looks like you need to add a definition for the WS85 for completeness whenever you get around to it.

{
        "img":  "wh85",
        "type": "49",
        "name": "Wind & Rain",
        "version":      "107",
        "id":   "278E",
        "batt": "5",
        "signal":       "4",
        "idst": "1"
}

Quick addition looks like:

$ diff gw1000.py.orig gw1000.py
781a782
>         'ws85_batt': 'ws85_batt',
844a846
>         'ws85_sig': 'ws85_sig',
4264c4266,4267
<         b'\x30': {'name': 'ws90', 'long_name': 'WS90', 'batt_fn': 'batt_volt', 'low_batt': 3}
---
>         b'\x30': {'name': 'ws90', 'long_name': 'WS90', 'batt_fn': 'batt_volt', 'low_batt': 3},
>         b'\x31': {'name': 'ws85', 'long_name': 'WS85', 'batt_fn': 'batt_volt'}
6541a6545
>         'ws85_batt': 'group_volt',
6600a6605
>         'ws85_sig': 'group_count',

I was uncertain if the WS85 reports low battery or not so I flipped a coin there......