Firstly, if this has been addressed somewhere in the forum, please point me to the thread.
Running latest MX on a RasPi, getting its data via USB from a WMR200 weather station. All works fine.
Until one day, with a thunderstorm, my town lost power. No issue, as the whole setup is on UPS.
But then the UPS got drained and the RasPi lost power.
It was 14.8mm of rain that day, and although the WMR200 shows the rainfall, Cumulus isn't aware of the rain. Monthly total is missing that precipitation (but not sure about the yearly total).
I can only presume (and please correct me Steve and programming guru's) - the dayfile was still open, the rain data was added to the live/open file, and when the power went, that was not saved to the drive, this got lost.
Any current work around for the problem? Supposedly the catch-up feature should have gotten the data, but I noticed that's still in development. My daft plan was to schedule the CumulusNOW script to restart MX every 5 minutes past the hour, hoping to commit the data to file and loose less data.
And how do I enter the 14.8mm rainfall data of several days ago into the logs?
Appreciate the software, your help and pointers!
Welcome to the Cumulus Support forum.
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
Latest Cumulus MX V4 release 4.4.2 (build 4085) - 12 March 2025
Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024
Legacy Cumulus 1 release 1.9.4 (build 1099) - 28 November 2014
(a patch is available for 1.9.4 build 1099 that extends the date range of drop-down menus to 2030)
Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki
If you are posting a new Topic about an error or if you need help PLEASE read this first viewtopic.php?p=164080#p164080
Lost data after power failures
Moderator: mcrossley
- steve
- Cumulus Author
- Posts: 26672
- Joined: Mon 02 Jun 2008 6:49 pm
- Weather Station: None
- Operating System: None
- Location: Vienne, France
- Contact:
Re: Lost data after power failures
I'm not sure what aspects of catch-up are still in development, I can't think of anything at the moment that shouldn't be working. MX should have added the rainfall at some point when it started up, as it simply uses an incrementing counter from the station (I can't actually remember at the moment what that counter is on WMR200 stations) so if the station incremented the counter, it would have been accounted for somewhere, i.e, it can't actually get lost due to a file not being written.The only reason I can think of that would cause it not to be accounted for would be if the station had stopped sending rain data packets.
But in any case, to correct the rainfall total for a particular day, stop Cumulus and edit dayfile.txt - the format of the entries is in the wiki, and there is more information about correcting rainfall in the FAQ and wiki. I can't be a lot more help at the moment as I am currently on the move and very busy with personal and family matters.
Restarting Cumulus every five minutes is not advisable
But in any case, to correct the rainfall total for a particular day, stop Cumulus and edit dayfile.txt - the format of the entries is in the wiki, and there is more information about correcting rainfall in the FAQ and wiki. I can't be a lot more help at the moment as I am currently on the move and very busy with personal and family matters.
Restarting Cumulus every five minutes is not advisable
Steve
- ConligWX
- Posts: 1835
- Joined: Mon 19 May 2014 10:45 pm
- Weather Station: Davis vPro2+ w/DFARS + AirLink
- Operating System: Ubuntu 24.04.1 LTS
- Location: Bangor, NI
- Contact:
Re: Lost data after power failures
Do you not have NUT installed on your RasPi?
Your UPS should send a signal to your Pi or device and give it a notification that the power is due to go out and NIUT takes care of the rest and shuts down your OS and device correctly without any data corruption.
Your UPS should send a signal to your Pi or device and give it a notification that the power is due to go out and NIUT takes care of the rest and shuts down your OS and device correctly without any data corruption.
-
HermanZA
- Posts: 5
- Joined: Sun 04 Sep 2016 12:21 pm
- Weather Station: Oregon Scientific WMR200
- Operating System: Win10
Re: Lost data after power failures
Steve: Thanks for the info!
Station is both utility and battery powered, so the thingy does not go down for any reason (besides a battery pull!)
I'll look at the Wiki posts to add the rainfall.
PS: automated restart is scheduled 5 minutes PAST every hour (not every 5 min)
Toxic17: Nope, its not on dedicated UPS, but on a shared one.
Awesome weather page you have!!! *envy*
Station is both utility and battery powered, so the thingy does not go down for any reason (besides a battery pull!)
I'll look at the Wiki posts to add the rainfall.
PS: automated restart is scheduled 5 minutes PAST every hour (not every 5 min)
Toxic17: Nope, its not on dedicated UPS, but on a shared one.
Awesome weather page you have!!! *envy*
- ConligWX
- Posts: 1835
- Joined: Mon 19 May 2014 10:45 pm
- Weather Station: Davis vPro2+ w/DFARS + AirLink
- Operating System: Ubuntu 24.04.1 LTS
- Location: Bangor, NI
- Contact:
Re: Lost data after power failures
Thanks, though it is just Saratoga Template with a few more addonsHermanZA wrote:Toxic17: Nope, its not on dedicated UPS, but on a shared one.
Awesome weather page you have!!! *envy*
Is your UPS plugged into something else and shuts that down? you can setup devices to become a NUT Server and power down all devices if needed.
My NAS is powered by a UPS and monitors the power, If the power goes off the UPS notifies the NAS and the NAS then send out to designated IP addresses to shut down other devices too.