getting Ecowitt WS6210 data into weewx

180 views
Skip to first unread message

richardmh

unread,
Nov 17, 2024, 1:29:03 PM11/17/24
to weewx-user
Dear all

Complete newby here, I hope someone can point me in the right direction...

I plan to install weewx on one of our ubuntu 22.04 virtual servers to record and display the data from our new Ecowitt WS6210

What I can't quite work out is how to get the WS6210 data into weewx.   

For those not familiar with this quite new device, it can work in remote locations (which is what we want) and sends its data via 4G LTE to WUG Etc and also to a url of your choice.  I'm receiving POST data every 10 minutes in node-red as a JSON packet in the "Ecowitt format" which looks like this:

{
    "console_batt": "5.69",
    "dailyrainin": "0.000",
    "dateutc": "2024-11-17 11:51:33",
    "eventrainin": "0.000",
    "ext_volt": "3.04",
    "freq": "868M",
    "heap": "8330452",
    "hourlyrainin": "0.000",
    "humidity": "70",
    "iccid": "12345678901234567890",
    "imei": "123456789012345",
    "imsi": "123456789012345",
    "interval": "600",
    "maxdailygust": "13.65",
    "model": "WS6210A",
    "monthlyrainin": "0.000",
    "msisdn": "",
    "PASSKEY": "AA:BB:CC:DD:EE",
    "rainratein": "0.000",
    "runtime": "69061",
    "soilad1": "259",
    "soilbatt1": "1.6",
    "soilmoisture1": "54",
    "solarradiation": "152.72",
    "stationtype": "WS6210A_V1.0.5",
    "tempf": "51.98",
    "tf_batt1": "1.60",
    "tf_ch1": "47.84",
    "totalrainin": "0.000",
    "up_mtd": "4G",
    "uv": "1",
    "weeklyrainin": "0.000",
    "wh26batt": "0",
    "wh40batt": "1.5",
    "wh68batt": "1.62",
    "wifimode": "0",
    "winddir": "286",
    "windgustmph": "8.05",
    "windspeedmph": "4.92",
    "yearlyrainin": "0.000"
}

Ideally this data could simply shoot into a weewx restful interface extension, but my investigations today didn't find one.... is there one?

I could export it from node-red into MQTT and weewx could read that with the MQTTSubscribe extension, but it seems rather a long way around.

In both cases, I imagine the data above will need to be translated into a form which weewx can digest - how is that done?

Thankyou for your help

Richard




michael.k...@gmx.at

unread,
Nov 18, 2024, 12:31:35 AM11/18/24
to weewx-user
The Interceptor Driver will handle that, as far as I know: https://github.com/matthewwall/weewx-interceptor
You may need to open the specific port on the receiving side.

richardmh

unread,
Nov 18, 2024, 6:19:45 AM11/18/24
to weewx-user
Thankyou - I will try it.

Richard

Auchtermuchty Weather

unread,
Nov 25, 2024, 3:08:25 PM11/25/24
to weewx-user
I have an ecowitt style weather station and use https://github.com/gjr80/weewx-gw1000
Reply all
Reply to author
Forward
0 new messages