We do not process weather-values between 23:55 and 00:05
Some weather-programs upload “invalid” information around midnight. f.i. a zero for temp or min-temp
Also a time difference between the server and your cumulus station can cause this.
Therefor change lines 41-42 in PWS_cron_stationcron.php from
$no_data_after = 2355; // Hour-minutes after wich no day data should be processed in history
$no_data_before = 0005; // Same before
to
$no_data_after = 2350; // Hour-minutes after wich no day data should be processed in history
$no_data_before = 0015; // Same before
Hi Wim
Thank you sooooo much for this fantastic “realtime” support!
I have made changes in the cronjob php and that should solve the problem! As a matter of fact I have 5 hour difference between my station in Portugal and the server in U.S. and had some problems in the past with some scripts due to this difference, so I will double check if this difference is interfering or not.
Thanks!
The 5 hours would not be a problem as the scripts do everything with the exact home-timezone in Portugal.
The problem occurs when the cumulus pc is 10-15 minutes before or after the server time for you local timezone.
Then an upload which we should reject arrives in the allowed time 00:05 - 23:55
That is why we have set the timeframe wider.
Wim
I can attest that this works I’ve been using this for a few weeks and it’s been fine. I did change the $no_data_before to 00:10 just to test it out and that has worked as well.
Bingo!
Problem solved and tonight rollover was perfect, after making cron file timeframe wider.
You are absolutely right because I had already noticed that my cumulus pc times and my server times are somewhat different, but I would never guessed that it could be the cause for this problem.
Thank you soooo much Wim.