Re: [weewx-user] Re: Vantage Pro data logger corruption - Daylight Saving Time?

2021-03-29 Thread Greg Troxel
Tom Keffer writes: > WeeWX uses time.mktime() > to convert from > local time to UTC. This function takes a "time tuple", one of whose fields > is tm_isdst. You're supposed to fill this field out with whether DST is > active or not but,

Re: [weewx-user] Re: Vantage Pro data logger corruption - Daylight Saving Time?

2021-03-29 Thread Jon B
Thanks, that makes sense. I just checked the database again and the data are there so I must have been looking in the wrong place, doh! When it comes to the clocks going back again in October is the same thing likely to happen again? If so I guess the same fix will work again, or is there

Re: [weewx-user] Re: Vantage Pro data logger corruption - Daylight Saving Time?

2021-03-28 Thread Tom Keffer
On Sun, Mar 28, 2021 at 2:36 PM Jon B wrote: > Ah, thanks, that's done the trick! The data from when the clock changed > now appear on my page. Out of interest - while the logs show that the > records were added to the database file, I've just had a look and there > seems to be a gap from the

Re: [weewx-user] Re: Vantage Pro data logger corruption - Daylight Saving Time?

2021-03-28 Thread Graham Eddy
so *that* was what the upgrade was. they would only rent us that device (don’t recall how much but it was a lot) and couldn’t say what it did. as you would expect, i refused. glad i did: the change was not even relevant to my country. and the vp2 has ticked quite nicely since, without the

Re: [weewx-user] Re: Vantage Pro data logger corruption - Daylight Saving Time?

2021-03-28 Thread Jon B
Ah, thanks, that's done the trick! The data from when the clock changed now appear on my page. Out of interest - while the logs show that the records were added to the database file, I've just had a look and there seems to be a gap from the clock change until I just got it going again, so where

Re: [weewx-user] Re: Vantage Pro data logger corruption - Daylight Saving Time?

2021-03-28 Thread Tom Keffer
Yup. That's what a corrupt logger looks like: the DMPAFT command stops working and data can no longer be downloaded. It is a well-known flaw of the Davis logger. If you want a failsafe solution, switch to software record generation. On Sun, Mar 28, 2021 at 1:53 PM Devonian wrote: > Not sure

Re: [weewx-user] Re: Vantage Pro data logger corruption - Daylight Saving Time?

2021-03-28 Thread Devonian
Extract of log during data dump shows weewx chokes on records >5 minutes after DST changeover (presumably the 5 minutes past DST record 'blocks' subsequent records) until a --dump and/or --clear Mar 28 09:14:13 debian10 wee_device[23498] ERROR weewx.manager: Unable to add record 2021-03-28

Re: [weewx-user] Re: Vantage Pro data logger corruption - Daylight Saving Time?

2021-03-28 Thread Devonian
Not sure about the console clock and computer clocks not agreeing on DST changeover. It does appear to (only) affect UK Davis stations? I also have an old WS2300 running on a r-pi and it never has a DST problem. Extract from my weewx/VP2 syslog below. Simply stopped trying to get data at 02:05

Re: [weewx-user] Re: Vantage Pro data logger corruption - Daylight Saving Time?

2021-03-28 Thread Tom Keffer
1. Make sure you stop weewx before running wee_device. 2. If you do not have write access to your database, you will have to precede the command with "sudo": *sudo wee_device --dump* -tk On Sun, Mar 28, 2021 at 12:51 PM Jon B wrote: > I also ran into the same problem when the clocks went

Re: [weewx-user] Re: Vantage Pro data logger corruption - Daylight Saving Time?

2021-03-28 Thread Jon B
I also ran into the same problem when the clocks went forward last night. I've read elsewhere that doing wee_device --dump can solve the issue, but when I do that I get the error: weewx.CRCError: Unable to pass CRC16 check while getting data I also get a bunch of errors like this one: ERROR

Re: [weewx-user] Re: Vantage Pro data logger corruption - Daylight Saving Time?

2021-03-28 Thread wfs...@gmail.com
I have an original Vantage Pro (VP1) with a serial to USB converter cable attached to a RPi and Weewx does not crash at time changes. To update the VP firmware for the 2007 DST rule change, Davis had to loan you a special piece of hardware to install the update, and it is indicated at VP

Re: [weewx-user] Re: Vantage Pro data logger corruption - Daylight Saving Time?

2021-03-28 Thread John Kline
Greg, that would be a problem. For firmware that doesn’t recognized current DST rules, setting the times manually would be required. I think the console (at least with current firmware) allows this. > On Mar 28, 2021, at 7:30 AM, Greg Troxel wrote: > >  > John Kline writes: > On Mar

Re: [weewx-user] Re: Vantage Pro data logger corruption - Daylight Saving Time?

2021-03-28 Thread Greg Troxel
John Kline writes: >> On Mar 28, 2021, at 7:14 AM, Greg Troxel wrote: >> >>  >> I wonder if the people who are having trouble are in a situation where >> >> the console's firmware idea of DST >> >> and >> >> their computer's idea of DST >> >> are different. > Hi Greg, > > It’s why I

Re: [weewx-user] Re: Vantage Pro data logger corruption - Daylight Saving Time?

2021-03-28 Thread John Kline
> OK - but I still think it would be good if weewx never set the clock +/- > 6 h from a DST change, or maybe just never set the clock from 2300 to > 0500 daily. I agree something like that would be good. For now, I’ve got DST enter/exit times specified in my weewx.conf files through to 2040

Re: [weewx-user] Re: Vantage Pro data logger corruption - Daylight Saving Time?

2021-03-28 Thread Greg Troxel
John Kline writes: > You have to be unlucky to see the issue. If WeeWX decided to set the > time on the console within the hour of setting the clock back one hour > when entering standard time, the clock setting would be one hour off. > > Having said that, I believe this is a bit off topic as

Re: [weewx-user] Re: Vantage Pro data logger corruption - Daylight Saving Time?

2021-03-28 Thread John Kline
Hi Greg, It’s why I asked if they have the DST set correctly in the console. > On Mar 28, 2021, at 7:14 AM, Greg Troxel wrote: > >  > I wonder if the people who are having trouble are in a situation where > > the console's firmware idea of DST > > and > > their computer's idea of DST >

Re: [weewx-user] Re: Vantage Pro data logger corruption - Daylight Saving Time?

2021-03-28 Thread Tom Keffer
I have never had to clear the console memory during DST transitions. On Sun, Mar 28, 2021 at 7:14 AM Greg Troxel wrote: > > I wonder if the people who are having trouble are in a situation where > > the console's firmware idea of DST > > and > > their computer's idea of DST > > are

Re: [weewx-user] Re: Vantage Pro data logger corruption - Daylight Saving Time?

2021-03-28 Thread John Kline
> I have been doing this since 2018-01 and had no clock-setting trouble across DST changes. You have to be unlucky to see the issue. If WeeWX decided to set the time on the console within the hour of setting the clock back one hour when entering standard time, the clock setting would be one

Re: [weewx-user] Re: Vantage Pro data logger corruption - Daylight Saving Time?

2021-03-28 Thread Greg Troxel
I wonder if the people who are having trouble are in a situation where the console's firmware idea of DST and their computer's idea of DST are different. I think the OP said "0100" which suggests .eu to me and I gather the rules have been changing, or maybe just there is a notion that

Re: [weewx-user] Re: Vantage Pro data logger corruption - Daylight Saving Time?

2021-03-28 Thread John Kline
> heck, i have never had to clear logger memory ditto > On Mar 28, 2021, at 7:04 AM, Graham Eddy wrote: > >  > i have never seen this problem viz having to clear logger memory to fix DST > transition. heck, i have never had to clear logger memory > >> On 29 Mar 2021, at 12:32 am, John Kline

Re: [weewx-user] Re: Vantage Pro data logger corruption - Daylight Saving Time?

2021-03-28 Thread Greg Troxel
John Kline writes: > I have seen an issue when weewx calls set_time within the hour after > falling back to standard time (because there is no way in the command > to state the time is in DST and the console assumes standard time). I > got around this issue by forking the driver and adding

Re: [weewx-user] Re: Vantage Pro data logger corruption - Daylight Saving Time?

2021-03-28 Thread Graham Eddy
i have never seen this problem viz having to clear logger memory to fix DST transition. heck, i have never had to clear logger memory > On 29 Mar 2021, at 12:32 am, John Kline wrote: > > The issue being reported here sounds different. Are you guys saying you > *always* have this problem

Re: [weewx-user] Re: Vantage Pro data logger corruption - Daylight Saving Time?

2021-03-28 Thread John Kline
I have seen an issue when weewx calls set_time within the hour after falling back to standard time (because there is no way in the command to state the time is in DST and the console assumes standard time). I got around this issue by forking the driver and adding code such that set_time does

Re: [weewx-user] Re: Vantage Pro data logger corruption - Daylight Saving Time?

2021-03-28 Thread Tom Keffer
Unfortunately, WeeWX is constructed such that all reports use the system clock's time. So, if the system clock is set to UTC, your reports will be in UTC. There are a few solutions to that problem, but they would either require a new pre-requisite (pytz), or restrict us to Python 3. On Sun, Mar

Re: [weewx-user] Re: Vantage Pro data logger corruption - Daylight Saving Time?

2021-03-28 Thread Nigel Head
That is a possible solution Mathew, at least for purely weewx, BUT, the console clock would be 'wrong' and not display local (DST) time. That wouldn't work for my wife! Nigel -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from

Re: [weewx-user] Re: Vantage Pro data logger corruption - Daylight Saving Time?

2021-03-28 Thread mwall
would it help to run with the system clock set to UTC so the system and station never do a DST switch? then display local time in the reports? -- You received this message because you are subscribed to the Google Groups "weewx-user" group. To unsubscribe from this group and stop receiving

Re: [weewx-user] Re: Vantage Pro data logger corruption - Daylight Saving Time?

2021-03-28 Thread Tom Keffer
Wish I could help you all, but this is a well-known problem with the Vantage logger: the records are stored in local time, with no indication of whether DST applies or not. One other solution: switch weewx over to software record generation for the transition. Then switch it back afterwards. On

[weewx-user] Re: Vantage Pro data logger corruption - Daylight Saving Time?

2021-03-28 Thread Devonian
Ditto here in the UK on my VP2 and Linux Buster on a re-purposed thin-client. My 'fix' to this annual issue is: service weewx stop cd /home/weewx/bin ./wee_device --dump ./wee_device --clear service weewx start I don't lose data, but it is kind of annoying! Nigel -- You received this

[weewx-user] Re: Vantage Pro data logger corruption - Daylight Saving Time?

2021-03-28 Thread Mike Revitt
I have just created a python script that can detect that the clock has changed, which can be used stop WeeWX and clean the Vantage memory, when daylight savings happens then 1 hour later restart WeeWX I think this code will do what I want, but can only test it twice a year, would appreciate

[weewx-user] Re: Vantage Pro data logger corruption - Daylight Saving Time?

2021-03-28 Thread Mike Revitt
I have just created a python script that can detect that the clock has changed, which can be used stop WeeWX and clean the Vantage memory, just need to work out the logic to re-start it. Plan to put this in cron running every 5 minutes so it just runs and will automatically fix the clock change

[weewx-user] Re: Vantage Pro data logger corruption - Daylight Saving Time?

2021-03-28 Thread vigilance wx
same issue I have been using weewx around 7 years with a vantage and for the most part it runs flawlessly. i have version 3.9.1 running without any issues just this memory problem once every 6 months in march and October On Sunday, March 28, 2021 at 10:57:03 AM UTC+1 mi...@cougar.eu.com wrote:

[weewx-user] Re: Vantage Pro data logger corruption - Daylight Saving Time?

2021-03-28 Thread Mike Revitt
snap, just posted the same message and wee_device --clear-memory was the only way I could get it running again as well. I want a cron job fix On Sunday, March 28, 2021 at 10:51:52 AM UTC+1 Alastair L wrote: > Hi. Looking back at previous posts memory corruption of the Davis WS has > been