New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vantage driver stop working when clock changes from GMT to BST #247
Comments
Dealing with the daylight savings changes has been a persistent problem with the Vantage stations. The root problem is that the stations store time in local time, with no indication of whether DST is active or not. However, it rarely causes a problem in the springtime. The reason is that time jumps forward, so there is no ambiguity in times. By contrast, in the fall, time jumps backwards, so there will be two identical timestamps in the logger's memory. My Vantage station has no problems in the spring, yet yours does. Could you check something for me? Run the following and post the results. Paths may have to be adjusted, depending on your install method.
We are looking for how your Vantage is configured for adjusting DST. |
|
I wonder if using manual and/or GMT offset would make it easier to determine in weewx? |
Well, setting the Vantage to UTC would certainly make it easier, but I don't think most people would be willing to do that. Another thing you can do is set |
I am open to proposed solutions, but none has occurred to me. As you can imagine, you only get once a year to test an algorithm, which doesn't make it any easier. Even setting up a test environment is not easy. In addition to setting up an isolated computer with a clock set to the springtime boundary, it also requires at least 2 days to fill up the Vantage logger with old data. One thing I will do is call the Davis engineers to see if they have any magic ideas. |
If we can get any information from Davis on what the incoming data is like at those time boundaries I'm happy to take a look at the code and see can we figure something out. |
Further trawling forums pointed to this link: Which basically says to clear the vantage's memory which works. So I've put together this cron.
run at 02:10 on March and October, between 25 and the 31 then if it is a Sunday clear the memory - Hopefully this is helpful to some one like me trying to find a solution. |
Same thing has happened again. My ftp's results stopped at 02:00 this morning. WeeWX still talking to the VantagePro, for example giving time adjustments, but no apparent new data even many hours after clock change. |
Yep, my suggestion didn't work for me either... |
Initially I tried restarting WeeWX, but no success. Then tried:
That seemed to work! |
I had a play too. I found two issues with my cron command:
I've adapted my cron command to fulfil these:
Unfortunately once I've cleared the memory - it works - so to debug is difficult. See you next year if this doesn't work... |
@r0w4n Exactly the same problem here and your solution worked - thanks |
This is STILL BROKEN with WeeWX but now the program /usr/bin/wee_device has gone, presumably after some update! |
Presumably, you read the Upgrade guide?? |
Alas, no I did not read the upgrading guide. I simple accepted the automated results of 'apt upgrade' and assumed all would be well. That process has, it seems, left some things like /etc/weewx/scripts/wee_device on my system that no longer work, and removed what I guess was the original /usr/bin/wee_device that actually did the job. I see you have refused the request to re-open this issue. Fair enough but it seems that every year anyone using the Vantage hardware is faced with a broken system upon DST transition. You mention there "the only fix is to use software record generation" but that is not something that seems to be made clear as to how to fix it. There is no mention under the Vantage hardware guide about this, and things like the work-around above have been silently broken by the 5.x.x upgrade. Yes, I get it that there is now a different device command, but it would have been nice to have upgrading from 4.x.x leaving simple scripts to replace /usr/bin/wee_device & /etc/weewx/scripts/wee_device that just invoke the new commands so things like cron jobs (example a couple of posts above), etc, still work. |
Let me remind you: this is free software, created and maintained by hard working volunteers. You didn't pay anything for it and no one is getting paid. Like all volunteer efforts, it follows a simple rule: if you don't contribute, you don't get to whine (especially with all caps and bold face). Feel free to submit a PR with the changes that you suggest. That would be a more useful contribution. |
My apologies for that. |
When OS clock changes from GMT to BST data transfer stops for the vantage driver.
weewx-users post
There's no specific message in
/var/log/syslog
at the time,debug=0
, but it stops posting reports to external services (like Windguru).When restarting, with
debug=1
, the following is in the logRunning
wee_device --clear-memory
does get it working again.The text was updated successfully, but these errors were encountered: