Re: [weewx-user] Re: Davis Vantage Pro2 on RPI, problem with console time adjustment

2018-02-06 Thread Zeky91
Thanks. Just now i realised that its possible to disable it fully. I got not perfect workaround. I used crontab -e and added 33 0 * * *sudo wee_device --set-time % y -r This is the same command which I used manually to update time. Sometimes it doesnt manages to update because its fight

Re: [weewx-user] Re: Davis Vantage Pro2 on RPI, problem with console time adjustment

2018-02-06 Thread Praveen Chandrasekaran
Search for prep_services in weewx.conf and remove StdTimeSynch from the same. On 6 February 2018 at 13:46, Zeky91 wrote: > Me too, I just increased parameter off error below which there is no need > to check. How to disable it fully? > I am thinking of installing jessie or some other(older) vers

Re: [weewx-user] Re: Davis Vantage Pro2 on RPI, problem with console time adjustment

2018-02-06 Thread Zeky91
Me too, I just increased parameter off error below which there is no need to check. How to disable it fully? I am thinking of installing jessie or some other(older) version of stretch, so if this problem is not happening on older versions, please let me know :-) Regards -- You received this me

Re: [weewx-user] Re: Davis Vantage Pro2 on RPI, problem with console time adjustment

2018-02-05 Thread Praveen Chandrasekaran
I use the latest version of stretch. Going through forum yesterday I realized best way to fix the problem is to disable stdTimeSync in weewx. Done that now. Maybe you can also do that. On 6 Feb 2018 2:54 a.m., "Zeky91" wrote: > Which OS do you use, Raspbian? Which version? Newest stretch, older

Re: [weewx-user] Re: Davis Vantage Pro2 on RPI, problem with console time adjustment

2018-02-05 Thread Zeky91
Which OS do you use, Raspbian? Which version? Newest stretch, older stretch, jessie? Maybe its problem because I have last stretch version and app was made for older? Regards -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from th

Re: [weewx-user] Re: Davis Vantage Pro2 on RPI, problem with console time adjustment

2018-02-05 Thread Praveen Chandrasekaran
I knew that but my rpi was at times starting up with time in 2016. Hence I changed the check to 2018 instead of 1 Jan 2018 instead. On 5 February 2018 at 20:30, Thomas Keffer wrote: > >> For now have modifed weewx to check if time is in 2018 before starting. >> > > Since V3.4, ​weeWX has​ looped

Re: [weewx-user] Re: Davis Vantage Pro2 on RPI, problem with console time adjustment

2018-02-05 Thread Thomas Keffer
> > > For now have modifed weewx to check if time is in 2018 before starting. > Since V3.4, ​weeWX has​ looped until the time is after 1 January 2000 before starting. -tk -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this g

Re: [weewx-user] Re: Davis Vantage Pro2 on RPI, problem with console time adjustment

2018-02-05 Thread Praveen Chandrasekaran
I used to have similar issue where on powerup sometimes it used to start at 1970 and at other times in Nov 3 2016. Googled and found few others also reporting same issue. For now have modifed weewx to check if time is in 2018 before starting. Still got one issue few days back with time corrupti

Re: [weewx-user] Re: Davis Vantage Pro2 on RPI, problem with console time adjustment

2018-02-02 Thread vince
On Friday, February 2, 2018 at 2:13:09 PM UTC-8, Zeky91 wrote: > > Yes, i have tried that but its again the same. > If I disconnect power for 5 minutes on RPI, when I reconnect rpi updates > time on Davis to old time(5minutes ago) and after few seconds more to one > minute rpi gets real time! If

Re: [weewx-user] Re: Davis Vantage Pro2 on RPI, problem with console time adjustment

2018-02-02 Thread Zeky91
Yes, i have tried that but its again the same. If I disconnect power for 5 minutes on RPI, when I reconnect rpi updates time on Davis to old time(5minutes ago) and after few seconds more to one minute rpi gets real time! If I reboot rpi after this with reboot comand, after that time is normal.

Re: [weewx-user] Re: Davis Vantage Pro2 on RPI, problem with console time adjustment

2018-01-31 Thread gjr80
So did you disable systemd-timesynd as I suggested? Gary -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving emails from it, send an email to weewx-user+unsubscr...@googlegroups.com. For more options

Re: [weewx-user] Re: Davis Vantage Pro2 on RPI, problem with console time adjustment

2018-01-31 Thread Zeky91
I understand this, but after power on, RPI (stretch) clock is on latest time while it was on, no matter i have purged fake clock. I tried DietPi OS, without any addon, and it is the same again. RPI is now working on 1630m ASL, so I will not test on it now, for now I update it manually every now

Re: [weewx-user] Re: Davis Vantage Pro2 on RPI, problem with console time adjustment

2018-01-23 Thread Thomas Keffer
A pull request that does this, while not breaking compatibility with other weather stations that do not have this feature (i.e., most), would be welcome. -tk On Tue, Jan 23, 2018 at 9:55 AM, John wrote: > IMO, adding a RTC to an internet connected device seems redundant and > doubly redundant w

[weewx-user] Re: Davis Vantage Pro2 on RPI, problem with console time adjustment

2018-01-23 Thread vince
On Monday, January 22, 2018 at 7:06:48 PM UTC-8, John wrote: > > for setups with a Davis console it would be nice to configure the rpi to > get time from the console as an alternate option to a RTC. > > Once time is updated from an NTP source, then both the rpi and the console > could be update

[weewx-user] Re: Davis Vantage Pro2 on RPI, problem with console time adjustment

2018-01-23 Thread John
IMO, adding a RTC to an internet connected device seems redundant and doubly redundant when already connected to a device with a battery backed RTC like the Davis Vantage console. browsing the vantage drive source there is already code for retrieving the console time. compare the retrieved t

[weewx-user] Re: Davis Vantage Pro2 on RPI, problem with console time adjustment

2018-01-22 Thread Andrew Milner
The simplest (and most correct) way, IMHO, for 10-15 bucks, is to fit a RTC to the RPi to turn a board computer like the Pi into a real computer if that is what it is going to be used as. The cost of coding and testing even a one line program change is far far more expensive!! On Tuesday,

[weewx-user] Re: Davis Vantage Pro2 on RPI, problem with console time adjustment

2018-01-22 Thread John
for setups with a Davis console it would be nice to configure the rpi to get time from the console as an alternate option to a RTC. Once time is updated from an NTP source, then both the rpi and the console could be updated. -- You received this message because you are subscribed to the Goog

Re: [weewx-user] Re: Davis Vantage Pro2 on RPI, problem with console time adjustment

2018-01-21 Thread gjr80
Hi, Since you are running Stretch is systemd-timesyncd enabled? I understand can do a similar thing to the fake hardware clock (ie save and restore an old system time) but can also sync via ntp. Quite possibly it can be configured to not save the time as the fake hardware clock and just sync vi

Re: [weewx-user] Re: Davis Vantage Pro2 on RPI, problem with console time adjustment

2018-01-21 Thread Andrew Milner
What does the log show when you start up after a power outage?? The rp should have time set to epoch 0 - jan 1970 or whatever following the power outage - assuming that all references to fake hardware clock have been correctly removed/purged weewx will start, but should detect the time is not

Re: [weewx-user] Re: Davis Vantage Pro2 on RPI, problem with console time adjustment

2018-01-21 Thread Zeky91
Hm I used purge command. And i dont have file /etc/fake-hwclock.data I am using latest Raspbian edition,stretch. Tomorrow we are going on location, so for now will need to work like this ;) In the meantime, i hope to arrange something. Internet on location is ok, so everything should work fine e

Re: [weewx-user] Re: Davis Vantage Pro2 on RPI, problem with console time adjustment

2018-01-20 Thread Thomas Keffer
Incidentally, before you purge the fake clock, see if the file /etc/fake-hwclock.data is still around. That would cause your symptoms. Purging should remove the file. If it's not, remove it manually: sudo rm /etc/fake-hwclock.data -tk On Sat, Jan 20, 2018 at 12:12 PM, Thomas Keffer wrote: >

Re: [weewx-user] Re: Davis Vantage Pro2 on RPI, problem with console time adjustment

2018-01-20 Thread Thomas Keffer
If you removed the fake clock, it should start at unix epoch time zero. If it's not, it's because the module was not removed properly. See the Wiki . In any case, the running an RTC is the right thing to do, particularly wit

[weewx-user] Re: Davis Vantage Pro2 on RPI, problem with console time adjustment

2018-01-20 Thread mwall
weewx will not process data until the time is after 00:00:00 01jan2000 utc. so perhaps your pi is reverting/starting at a time that is later than that. you can make the weewx time check a bit more robust by modifying engine.py change this: while weewx.launchtime_ts < 946684800: to a more