Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4018) - 28 March 2024

Legacy Cumulus 1 release v1.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

missing upload data from wehater station when CumulusMX restarts

Topics about the Beta trials up to Build 3043, the last build by Cumulus's founder Steve Loft. It was by this time way out of Beta but Steve wanted to keep it that way until he made a decision on his and Cumulus's future.

Moderator: mcrossley

Locked
User avatar
iw2lao
Posts: 10
Joined: Sun 14 Jun 2015 3:33 pm
Weather Station: Davis VP2 wireless
Operating System: RaspberryPI+ with Debian8
Location: Esine (BS), IT
Contact:

missing upload data from wehater station when CumulusMX restarts

Post by iw2lao »

Hi,
I'm running with CumulusMX latest version, raspberry PI B+, Davis VP2 with USB datalogger

when cumulus restarts after a shutdown, it begin to record only the new data, losing the weather data when Cumulus was not running
is it normal? or maybe have I to set something somewhere?

On my previous configuration (cumulus1 windows version, and WH1081 fine offset weather station) I never missed any offline data...

different way to work? ... just to know...
thanks for your comment

Norbert
User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: missing upload data from wehater station when CumulusMX restarts

Post by steve »

Some people seem to have this problem when there is a lot of data to download from the Davis logger at startup, but the logger doesn't send anything. I have tried to reproduce the problem, but it always works for me, no matter how much data there is to download.

Hopefully you are running the latest build, as I added some extra code which may help to at least identify the problem. If you zip up the MX diags folder and attach it, I'll have a look.
Steve
water01
Posts: 3215
Joined: Sat 13 Aug 2011 9:33 am
Weather Station: Ecowitt HP2551
Operating System: Windows 10 64bit
Location: Burnham-on-Sea
Contact:

Re: missing upload data from wehater station when CumulusMX restarts

Post by water01 »

If you are running a Raspberry Pi why don't you just run it 24/7 rather that closing down and restarting.

The power consumption is minimal and it would stop any problems on restart etc.
Last edited by water01 on Sat 04 Feb 2017 9:38 am, edited 1 time in total.
David
Image
User avatar
iw2lao
Posts: 10
Joined: Sun 14 Jun 2015 3:33 pm
Weather Station: Davis VP2 wireless
Operating System: RaspberryPI+ with Debian8
Location: Esine (BS), IT
Contact:

Re: missing upload data from wehater station when CumulusMX restarts

Post by iw2lao »

MXdiag folder enclosed
You do not have the required permissions to view the files attached to this post.
User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: missing upload data from wehater station when CumulusMX restarts

Post by steve »

First of all, I can see is that you don't have Cumulus set to the same logger interval as your logger, so you have the issue described in this FAQ: http://wiki.sandaysoft.com/a/FAQ#Cumulu ... t_start_up

MX is correctly downloading the archive data, but there was a problem where the logger stopped sending archive data before it had all been received:

2017-02-01 15:55:04.914 Writing today.ini, LastUpdateTime = 30/01/2017 00:30:00 raindaystart = 9.4 rain counter = 9.4
2017-02-01 15:55:04.921 Log file entry written
2017-02-01 15:55:04.928 90 archive entries processed
2017-02-01 15:55:04.928 Reading archive page 18
2017-02-01 15:55:04.928 Waiting for response
2017-02-01 15:55:08.945 The station has stopped sending archive data

Cumulus has two goes at downloading archive data, and the second attempt got as far as just after midnight on the next night, when the logger stopped sending data again:

2017-02-01 15:55:42.320 Writing today.ini, LastUpdateTime = 31/01/2017 00:40:00 raindaystart = 9.4 rain counter = 9.4
2017-02-01 15:55:42.324 Log file entry written
2017-02-01 15:55:42.331 145 archive entries processed
2017-02-01 15:55:42.331 Reading archive page 29
2017-02-01 15:55:42.332 Waiting for response
2017-02-01 15:55:46.336 The station has stopped sending archive data
2017-02-01 15:55:46.354 Archive reading thread completed

I'm afraid I have no way of knowing why the logger did this. You should at least set the logger intervals to be the same.

I'll have a look at the code to see if there's anything I can do about this, but there are already multiple retries in there. As has been pointed out, one advantage of the Raspberry Pi is its low power consumption, so it costs very little to leave it running 24/7. Do you plan on closing it down for long periods?
Steve
User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: missing upload data from wehater station when CumulusMX restarts

Post by steve »

steve wrote:I'm afraid I have no way of knowing why the logger did this.
Actually, I think it's probably because the Pi is quite slow and it takes about a minute to do the end of day rollover. The logger probably gives up waiting for the next logger entry to be read. So long as there is only one end of day rollover to do (i.e. MX was only stopped for one night) this shouldn't be a problem as MX already has two passes at doing the download. I'll see if I can think of a safe way to make it do something if the download times out like this.
Steve
Locked