Page 1 of 1

CreateMissing

Posted: Sun 07 Mar 2021 3:50 am
by jlmr731
What an excellent tool you have created, Works like a charm as it found some errors within my files.
The error reporting was perfect as it even listed what line number of the file that is corrupt.
Log file was nice to look over and see whats missing or updated.
So will this also update sql database if being used?

Nice Job and Thanks Mark (and whoever may have helped) :clap:

Re: CreateMissing

Posted: Mon 08 Mar 2021 9:07 am
by mcrossley
jlmr731 wrote: Sun 07 Mar 2021 3:50 am What an excellent tool you have created, Works like a charm as it found some errors within my files.
The error reporting was perfect as it even listed what line number of the file that is corrupt.
Log file was nice to look over and see whats missing or updated.
So will this also update sql database if being used?

Nice Job and Thanks Mark (and whoever may have helped) :clap:
Glad you found it useful, but no it will not update your SQL.

I think this may be the first of few extra utilities for Cumulus, I want each to be as simple as possible and just do one specific task.

CreateMissing has thrown up an issue with my log files that seems to be there right back into C1, in that the first monthly record of a new day sometimes (not very often) contains the rainfall total for the previous day. Make sure you use CreateMissing v1.0.1 to workaround this if you are creating new dayfile entries.

Re: CreateMissing

Posted: Mon 08 Mar 2021 3:34 pm
by HansR
Indeed a good addition.

@Mark: could you elaborate a bit on v1.0.1? I did run 1.0.0 on my dayfile (to get the missing entries), now should I put the old file back and rerun or should I just run again on the existing dayfile. And what would be the effect on the rain totals of the day? Or is this only necessary with very old (C1) dayfiles?

If more changes would are coming, would it be possible to have a readme with the exe?

Re: CreateMissing

Posted: Mon 08 Mar 2021 3:51 pm
by mcrossley
In your case you do not need to re-run, as the daily total has always been in the dayfile entries.

It is only if you are creating a new dayfile from imported data, or creating missing day entries (possibly as well as updating) it would be as well to rerun using v1.0.1

I don't anticipate more changes, but yes I'll add an updates.txt file if I do.

Re: CreateMissing

Posted: Mon 08 Mar 2021 4:18 pm
by HansR
@mcrossley: thanks!