WD or Meteotemplate minor quirk with rain for day

Gus,
Exactly the same as my symptoms. It is a quick edit, but will need to do it 120+ times a year, which is a bit of annoyance.

I’m also on ver 10.37s bld 93

Have either of you asked Jachym to take a look or improvise specific code changes to check for this, and do a one-time correction? It sounds as if you have analyzed this very well, have found what quirk makes the error occur. I would assume he could quickly do a check for that at the turn of midnight and do automatically what you guys have been doing manually.

Your analysis is very thorough. Hat’s off to your persistence and dedication to accurate data collection. Knowing what the error is caused by, and how it is fixed should make the programming much easier.

Dale

I have, and his initial response was to edit the database. I’ve posted follow-up the next time it occurred, after the next rain event, but no response, and no other user has said they have the same issue.

Gus is the only other person to post they also have experienced this. Maybe the rest of WD/MT users are still relying on clientraw.txt to update MT.

I use 1 minute updates as do others, but the 3 second update may be a problem at midnight

one solution is WD does not send a fast update to meteotemplate around that midnight change over time at the change of a new month (or even just around midnight any day?)?

It’s midnight on any day that recorded precipitation. I first noticed it on the first of the month, but it also occurred on the 5th/6th.

I’m having WD send both the clientraw to have FreshWDL work, and also the API sending Meteotemplate data to the SQL database on my server.

And not having had anything but copious quantities of snow (and more to come by the sounds of it in another day or so) I’ve not followed the day to day periods. I am hoping for just plain rain soon.

Dale

try this update
http://www.weather-display.com/downloadfiles/weatherdisplaytest.zip

Update installed, will advise if this fixes the problem. It has rained today, so I will check after midnight.

Downloaded and running. Haven’t had any rain so far today.
Gus

I’m afraid that had no effect.

Editing the rain for 00:00:00 timestamp to 0.00 corrects the totals shown by MT.

the time in the MT data is actually UTC
so maybe I need to not send around that midnight time change instead of local midnight time change?

UTC midnight would be 8 PM my time. Not sure that would have any effect.

then I am not sure what the solution is at this stage

Appreciate the attempt. I have escalated this to Jachym with links to this thread, plus on MT forum.

Thanks for your persistence.

I was going to text Jachym to see if he was still working on the project or not. I may still, to let him know there is interest in continuing on with this being resolved.
Dale

This has felt like a timing issue, but now I am not sure. I have WD’s API updater sending data every 3 seconds. To further trouble shoot, I have changed that to 1 minute intervals, and 5 minute intervals on days it has rained.

The same problem exists, the 00:00:00 entry in the MT database for the next day includes the rain total from the previous day, but the 00:00:05 does not. However that 00:00:00 entry throws totals off until corrected. Fortunately Jachym has made it easy to edit the SQL database on the server.


if there is no data sent right on the midnight time then MT must be like dividing up the time stamps it does receive into nice 5 minute intervals
and so if it got data with a time stamp before midnight and one after, then its ‘making up’ a time stamp of midnight
but it needs to use the data from the most recent data…not the one prior…the one prior will have the previous days rain total

I’ll get those updated files installed, and let you know the results. Probably won’t be until this weekend based on the forecast.

OK, got to admit I am confused now. I installed the latest from the test.zip you provided.

First image shows the correct rain totals for yesterday, month, and year.

The next image is the rain block on MT. The rain total for today is 0.00, but the month and year totals are incorrect as the rain yesterday is added twice.

The last image shows the MT database for the first entry for today.

And the final image shows the MT block, after the 00:00:00 rain amount is corrected.


wdrain.JPG