Page 1 of 1

RESOLVED - Create Missing - trival comment

Posted: Mon 04 May 2015 9:40 am
by sfws
Apparently around 2am on 17 April (I had forgotten to shut down my PC that night) there were apparently multiple problems affecting my PC. One of these un-noticed at the time problems was that when I restarted Cumulus later that day it found rubbish figures in one of the station logs that got transferred to the Cumulus monthly log and messed up ALL the averages and extreme figures calculated for that day, that month and this year. It also therefore messed up the copy of the April thismonth.htm equivalent that I subsequently archived. Unfortunately, it was only after the change of month, that I discovered the problems.

Using Cumulus editor, I deleted the rubbish line (for 16 April as I'm using 9am rollover) on dayfile.txt (as I had spotted the error when I worked on a PHP script reading a MySQL table derived from that log) and attempted to replace it by Create Missing. Of course it just brought the rubbish back from the rogue row on Apr15log.txt, foolish me, so I used Cancel to exit without saving.

Anyway, I then located and deleted the single rubbish line from the monthly log (externally as Cumulus has no feature to do so), and used Cumulus to re-calculate monthly-all-time, annual, and all-time extremes. I manually adjusted my archived thismonth.htm equivalent as the cumulus this month editor only works on May now! On re-opening the dayfile.txt editor in build 1099, I found it said 1 line had been inserted and incremented that to 2 lines after Create Missing gave me a reasonable replacement line for 16 Apr on my second attempt.

I don't want to call this a bug that needs fixing, but I thought I should draw attention to this confusing count in case you do later work on this feature or decide you want an enhancement request lodged about it.

Re: Create Missing - trival comment on insert line count

Posted: Mon 04 May 2015 10:04 am
by steve
What's in dayfileeditlog.txt?