Page 1 of 1

Lost data after power outage

Posted: Tue 10 Jan 2017 1:35 am
by GlueGuy2
We had a power outage today, and I noticed that we lose accumulated rain for the day when that happens. We run MX on a raspberry pi, and that seems to work just fine. It's on a battery backup, so it keeps running. Likewise, our Davis Vantage Pro2 has a battery that allows it to keep running. Unfortunately, the network in between does not run when the power is out. The problem is that we lose the rain data (at least) that accumulated before the outage. Is there a setting or something in the .ini that allows MX to retrieve whatever data may or may not exist prior to the restart?

Attached PNG shows what I'm talking about regardless of the inelegance of my words.
Cumulus_data_reset_after_power_cycle-edit.png

Re: Lost data after power outage

Posted: Tue 10 Jan 2017 6:51 pm
by steve
MX currently doesn't handle the connection between it and the station going down very well - there is a very recent thread about this, as it happens. Until such time as I am able to write the code to handle it, your best approach would be to detect the data flow stopping and closing MX - someone else has written a script to do this or something very similar, there is a thread somewhere in the MX section about this.

Re: Lost data after power outage

Posted: Tue 17 Jan 2017 1:13 pm
by glennpm
Hi,

I'm having the same lost power problem and found this thread which I just posted to:

https://cumulus.hosiene.co.uk/viewtopic.p ... 84#p122384
glennpm wrote:Hi Vildan,

I am having a similar problem with power outages. Once power is out, MX will not restart. When I restart it manually, the historical, archive data is not being read correctly or piecemeal. An example was yesterday morning when power was lost after midnight. I restarted MX, it said that the archive was being read, but the low temperature for the day which occurred two hours earlier, was not recorded. The Today and Yesterday readings are now wrong.

I am running Meteobridge. It picks up the Davis Vantage Vue data and wirelessly transmits it to the weather sites. When I connect MX it is also a wireless connection through Meteobridge. Weatherlink 6.3 read the archive data and displayed the low temperature correctly by the way.

I would like to try your script. Could you please post here the version you are now using? Are you running the bat file as a scheduled task In Windows 7 or how please?

Glenn