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