Page 1 of 1

Ecowitt rain data to CMX

Posted: Mon 05 Sep 2022 8:04 pm
by watsonm
(Not sure if this should be here or in the homebuilt section...)

I am using the HTTP api call using the Ecowitt data format to input data to CMX having switched from the Easyweather Data format.

For easyweather the rain input was just the rain counter from the sensor which just incremented ad infinitum and the rain last hour which is used as the rain rate indicator.

Having changed everything over to issue the ecowitt data array I can't seem to get my CMX rainfall panel to update correctly. Does anyone have an idea what the minimum set of rain items from this list that will get the display updating correctly. Also if it is rainratein (rain rate in inches) and I am updating every minute should the rate be resolved to inches per minute.

Code: Select all

"rainratein":"0.000",
"eventrainin":"0.000",
"hourlyrainin":"0.000",
"dailyrainin":"0.000",
"weeklyrainin":"0.059",
"monthlyrainin":"0.650",
"yearlyrainin":"0.650",
"totalrainin":"0.650",
I am currently supplying 'yearlyrainin' and 'rainratein' however I think I need to rework my calculation for 'rainratein'

Thanks for any help... Mike

Re: Ecowitt rain data to CMX

Posted: Mon 05 Sep 2022 10:05 pm
by philpugh
AKAIK

rainratein will only have a 'real' value when rain is actually falling and being detected by your sensor.

eventrainin is the amount of rain falling in a single even - i.e. start of rain until end of rain - not sure how long rain has to stop to be delared an event though!

All the others should be self-explanatory as total rainfall in the last hour/day/week/month/year.

Re: Ecowitt rain data to CMX

Posted: Tue 06 Sep 2022 6:49 am
by watsonm
Thanks Phil,
Perhaps I should explain a bit more detail.
I have a fine offset rain bucket that just sends "tips" . I collect all my sensor readings using a radio receiver and then post them to CMX. The easy weather setup just took the tips and knowing what the count was at the beginning of the day could work out rain for the day and a rate.

The Ecowitt unit obviously has more sophistication and keeps all the hour/day/month/year readings and passes them on. I just want add the minimum neccesary to get rain for the day.

I'll keep experimenting.. :geek:

Re: Ecowitt rain data to CMX

Posted: Tue 06 Sep 2022 11:01 am
by mcrossley
CMX will use the yearlyrainin value, but if that is missing it will use the totalrainin value.

(or the piezo values - but not relevant here)

The rainratein value is also used and is the current rainfall rate in inches per hour

Re: Ecowitt rain data to CMX

Posted: Tue 06 Sep 2022 11:09 am
by watsonm
Thanks Mark.

Re: Ecowitt rain data to CMX

Posted: Fri 16 Dec 2022 9:28 am
by Carbonara
good morning, just a little question about the rain. When I change the daily rainfall the monthly and yearly totals remain the same. They should also change according to the value I've insert (if lower or higher)
rain cumulus.png

Re: Ecowitt rain data to CMX

Posted: Fri 16 Dec 2022 11:58 am
by mcrossley
They should.

The values you see are the total (year/month) from the day file as of the last rollover, plus the rain today.

So, if you change the rain today value, they should also change the next time you receive some rain data from your station.
It looks like that could be improved by the editor forcing them to update immediately.

You may not see that on your web site straight way, it depends on your update intervals etc.