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

Reindex Alltime Records?

Discussion and questions about Cumulus weather station software version 1. This section is the main place to get help with Cumulus 1 software developed by Steve Loft that ceased development in November 2014.
mcpaton
Posts: 27
Joined: Sat 06 Dec 2008 8:04 am

Reindex Alltime Records?

Post by mcpaton »

Is it possible to get Cumulus to parse back through all the old monthly history files and recalculate the Alltime records? I have had some bad data come through (not sure what happens with my station somtimes) that has removed legitimate alltime records, and put in stupid amounts like 2000mm of rain in an hour etc.

I wouldnt mind cleaning up with the real data again?

Cheers
Weather Station: X7062 (Rebadged MyDEL WX2008 MK 2). http://www.users.on.net/~mpaton/weather/
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Reindex Alltime Records?

Post by steve »

Not currently. It wouldn't come up with exactly the same figures, but admittedly it would be better than nothing. If you still have a backup (in the Cumulus backups folder) from before the problem, you could restore the alltime.rec file from there. Other than that, I guess you would have to emulate what Cumulus would do if it had the facility - merge all of your monthly files, load them into Excel (etc) and sort on the various columns.
Steve
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Reindex Alltime Records?

Post by steve »

As a side note - something I would like to implement when I get around to it, is a 'change log' for the alltime records, so you would know which record changed from what, to what, and when. It would still be a manual process to reinstate an old record, but it would be much easier.
Steve
User avatar
daj
Posts: 2041
Joined: Tue 29 Jul 2008 8:00 pm
Weather Station: WH1081
Operating System: Pi & MX
Location: SW Scotland
Contact:

Re: Reindex Alltime Records?

Post by daj »

Hi

I have a little tool that will run through and give you all the necessary figures -- it's not quite ready for public release but will be soon. If you zip up your log files I could run them through it.

As Steve notes above, the figures will differ slightly as the log files are storing data at the logging interval (10 minutes in my case) so if there was a higher figure during that 10 minutes it would not be logged; however the data will be close to the truth
David
kippfordweather.uk
Cumulus MX & Raspberry Pi
TNETWeather

Re: Reindex Alltime Records?

Post by TNETWeather »

steve wrote:As a side note - something I would like to implement when I get around to it, is a 'change log' for the alltime records, so you would know which record changed from what, to what, and when. It would still be a manual process to reinstate an old record, but it would be much easier.
WD has something like that. It is very helpful since you have a log of when something hit a target as it happened with history of the previous target.
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Reindex Alltime Records?

Post by steve »

TNETWeather wrote:It is very helpful since you have a log of when something hit a target as it happened with history of the previous target.
Any suggestions for a good format, to be human and machine readable? I was thinking just a space-separated list of date/time/item/old/new. For example, as it happens I had a new low temperature overnight of -7.6C, so the entry in the log would look like this:

24/02/10 05:19 "Lowest temperature" -6.5 -7.6
Steve
User avatar
nitrx
Posts: 1297
Joined: Sun 13 Dec 2009 1:21 pm
Weather Station: WH1080
Operating System: Windows 10
Location: Apeldoorn The Netherlands
Contact:

Re: Reindex Alltime Records?

Post by nitrx »

24/02/10 05:19 "Lowest temperature" -6.5 -7.6
I should prefer the time and date of the 'old' record too
someting like this
"Lowest temperature" record 23/02/10 23:11 -6,5 | 24/02/10 05:19 -6.7

With the old data it's easier to locate where to change the wrong data the '|' is a random separator the word(s) 'changed to' are more human
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Reindex Alltime Records?

Post by steve »

nitrx wrote:I should prefer the time and date of the 'old' record too
someting like this
"Lowest temperature" record 23/02/10 23:11 -6,5 | 24/02/10 05:19 -6.7
Yes, I suppose having the old date and time as well makes it easier for a human to correct. But the 'pipe' separator is superfluous and makes it harder for a machine to parse. The word 'record' is also superfluous.
Steve
TNETWeather

Re: Reindex Alltime Records?

Post by TNETWeather »

WD uses this format:

Code: Select all

10:26:07 AM  02/23/10   All time high baro month value 1026.1
10:27:06 AM  02/23/10   All time high baro month value 1026.2
10:33:09 AM  02/23/10   All time high baro month value 1026.2
11:10:11 AM  02/23/10   All time high baro month value 1026.2
11:16:09 AM  02/23/10   All time high baro month value 1026.3
11:18:07 AM  02/23/10   All time high baro month value 1026.3
11:19:46 AM  02/23/10   All time high baro month value 1026.4
I would have preferred ISO dates with 24 times:

Code: Select all

2010-02-23 10:26:07 All time high baro month value 1026.1
2010-02-23 10:27:06 All time high baro month value 1026.2
2010-02-23 10:33:09 All time high baro month value 1026.2
2010-02-23 11:10:11 All time high baro month value 1026.2
2010-02-23 11:16:09 All time high baro month value 1026.3
2010-02-23 11:18:07 All time high baro month value 1026.3
2010-02-23 11:19:46 All time high baro month value 1026.4
You can quickly parse the previous record by simply searching for the setting, but that is coming from a Unix background.

fgrep "All time high baro month" recordsset.txt
User avatar
nitrx
Posts: 1297
Joined: Sun 13 Dec 2009 1:21 pm
Weather Station: WH1080
Operating System: Windows 10
Location: Apeldoorn The Netherlands
Contact:

Re: Reindex Alltime Records?

Post by nitrx »

You're right I really can't find another word for record also the date notation is confusing
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Reindex Alltime Records?

Post by steve »

TNETWeather wrote:I would have preferred ISO dates with 24 times
Yes - I was thinking that as Cumulus already uses local date format (well, even worse, a mixture) I should carry on the same. But there's no reason why this file shouldn't use ISO dates. I don't think the seconds are necessary, and I think it is a good idea to include the old value and date/time, so I propose: date/time/value/item/old date/old time/old value so the item name nicely separates the new and old values.

Example:

2010-02-24 05:19 -7.6 "Lowest temperature" 2009-02-09 04:50 -6.5
Steve
User avatar
nitrx
Posts: 1297
Joined: Sun 13 Dec 2009 1:21 pm
Weather Station: WH1080
Operating System: Windows 10
Location: Apeldoorn The Netherlands
Contact:

Re: Reindex Alltime Records?

Post by nitrx »

2010-02-24 05:19 -7.6 "Lowest temperature" 2009-02-09 04:50 -6.5
this is readable for me ;)
User avatar
beteljuice
Posts: 3292
Joined: Tue 09 Dec 2008 1:37 pm
Weather Station: None !
Operating System: W10 - Threadripper 16core, etc
Location: Dudley, West Midlands, UK

Re: Reindex Alltime Records?

Post by beteljuice »

Is "Lowest Temperature" fixed, or will it become a strings.ini setting ?
Image
......................Imagine, what you will KNOW tomorrow !
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Reindex Alltime Records?

Post by steve »

beteljuice wrote:Is "Lowest Temperature" fixed, or will it become a strings.ini setting ?
I suppose I could make the all-time record descriptions into strings.ini settings while I was doing it.
Steve
User avatar
steve
Cumulus Author
Posts: 26672
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Reindex Alltime Records?

Post by steve »

beteljuice wrote:Is "Lowest Temperature" fixed, or will it become a strings.ini setting ?
Were you aksing this because you thought it ought to be, or did you just want to know either way? I'm now thinking that it will be fixed, in English, and I won't do anything to strings.ini at the moment (and even if I do at some point, the records log will still use the English). OK?
Steve
Post Reply