Page 1 of 1

today's rain: how to correct?

Posted: Thu 16 Aug 2018 11:35 am
by vr34
Hi,
The USB of my fine offset WS3083 often locks up, around once a week.
I made a Python utility (periodicaly runs by CumulusMX) that detects any constant outside temperature value during one hour and reboot the Raspberry that runs CumulusMX if necessary. Fortunately, the reboot also switches off/on the WS console, which unlocks the USB transfer.
But after the reboot, the today's rain is often out of sens. Thus, my utility sends to my email the last today's rain before reboot and I correct the figure in the today's rain editor of the 127.0.0.1:8998 web interface.

I would like it to be automaticaly corrected by python.
Is it possible to change the data from outside the web interface ?

Regards,
vr34, http://les.matelles.free.fr/meteo/

Re: today's rain: how to correct?

Posted: Sun 26 Aug 2018 9:57 am
by vr34
no possibility ?

Re: today's rain: how to correct?

Posted: Sun 26 Aug 2018 10:35 am
by steve
You can't change it externally while Cumulus is running. And I don't know how you would work out what to change it to before Cumulus has run. The information is held in today.ini, so that's easy to change - the description of the file and how the rainfall counters work is in the wiki. Knowing what to change it to before Cumulus runs is the hard part.

Re: today's rain: how to correct?

Posted: Sun 26 Aug 2018 10:40 am
by steve
Actually, perhaps you could change it while Cumulus is running - if you could get your script to do the calls on the MX user interface which are invoked by the rain editor facility. If you want to try, you could look at the data exchange between the browser and MX using the developer console in the browser.

Re: today's rain: how to correct?

Posted: Sun 26 Aug 2018 7:39 pm
by vr34
Thank you steve.
I will make a script that changes today.ini at boot before starting CumulusMX.