Page 3 of 4

Re: Different Wind Gust Highs

Posted: Sun 12 May 2013 1:11 pm
by gixxer.sw
It was early in the day. Wind was really light but picked up this afternoon over writing the speed from yesterday.

Date and time is set correctly on my station.

Re: Different Wind Gust Highs

Posted: Sun 12 May 2013 1:16 pm
by steve
gixxer.sw wrote:It was early in the day. Wind was really light but picked up this afternoon over writing the speed from yesterday.
I think I know what's happening; just before midnight, the high gust for the day is read for the last time. The new code does check the timestamp returned by the console to make sure that it's for today, and avoid the midnight-crossing problem. However, this is in a separate thread, and the updating has to be done in the main thread. By the time the code in the main thread runs, the midnight rollover has been done, so the high gust data is now for yesterday. I can easily fix this.

Re: Different Wind Gust Highs

Posted: Sun 12 May 2013 1:41 pm
by steve
Build 1075 with the fix now available.

Re: Different Wind Gust Highs

Posted: Sun 12 May 2013 1:49 pm
by gixxer.sw
Fantastic Steve.

Great software, great support !!!!

Re: Different Wind Gust Highs

Posted: Sun 12 May 2013 2:02 pm
by gixxer.sw
Steve,

Just rolled over midnight here and have the same gust values again. I have updated to the latest 1075 beta.

Would love to help but I really need to sleep.

Re: Different Wind Gust Highs

Posted: Sun 12 May 2013 2:21 pm
by steve
It's tricky with a problem that happens at midnight. I'll see if I can come up with a way of simulating it here; it's not easy as my Davis station is my 'live' system, and I don't use a midnight rollover.

Re: Different Wind Gust Highs

Posted: Sun 12 May 2013 3:55 pm
by steve
I think the problem is that the console only supplies the time of high gust, with no confirming date, but the Davis DLL inserts today's date. If the PC clock is a few seconds ahead of the console (as it will normally be if you use Cumulus to set the console clock), then just after midnight the DLL will be supplying yesterday's high gust with today's date. I'm going to have to devise a different mechanism for making sure that yesterday's high isn't used just after midnight.

Re: Different Wind Gust Highs

Posted: Sun 12 May 2013 4:23 pm
by steve
Build 1076 now available...

Re: Different Wind Gust Highs

Posted: Sun 12 May 2013 4:34 pm
by William Grimsley
steve wrote:Build 1075 with the fix now available.
steve wrote:Build 1076 now available...
Oh dear... :lol:

Re: Different Wind Gust Highs

Posted: Mon 13 May 2013 7:34 am
by gixxer.sw
Steve,

Have installed the latest beta, is there any thing I can be doing to help?

Simon.

Re: Different Wind Gust Highs

Posted: Mon 13 May 2013 7:42 am
by steve
gixxer.sw wrote:Have installed the latest beta, is there any thing I can be doing to help?
Thanks - it would be useful if you could turn on the debug log before midnight, and leave it on for a couple of minutes after midnight, and then let me have the debug.log file. If you don't intend to be up at the time, it should be OK to leave it turned on overnight. The component that the debug log uses has been known to crash in some situations if left on for too long.

Re: Different Wind Gust Highs

Posted: Mon 13 May 2013 7:48 am
by gixxer.sw
No worries Steve, will try and email shortly after midnight....hopefully. If not, first thing in the morning before work.

Simon.

Re: Different Wind Gust Highs

Posted: Mon 13 May 2013 2:01 pm
by gixxer.sw
Steve,

Looks to be fixed :D

Will send debug file shortly.

Re: Different Wind Gust Highs

Posted: Mon 13 May 2013 2:03 pm
by steve
Yes, I was watching your web site just now. Looks good. The debug log should confirm that the problem was with the date from the DLL.

Edit: actually, could you give it until about 7 minutes past midnight before sending the log, please?

Re: Different Wind Gust Highs

Posted: Mon 13 May 2013 2:09 pm
by gixxer.sw
Steve, sorry I missed your edit re 7 minutes past midnight. Hope the debug file sent helps.

Happy to do again tomorrow night if that helps.