Hi. Looking back at previous posts memory corruption of the Davis WS has been discussed a fair bit. My Pi 4 running Weewx 4.4.0 and connected to a Vantage Pro was working without any problems until 1am this morning when it stopped updating. I could only get it to update again by clearing the Vantage memory (using wee_device --clear-memory). My Pi is fitted with a RTC and there was no power outage last night. The only obvious thing that may be relevant is that daylight saving time 2021 in United Kingdom began at 01:00 on Sunday, 28 March, the time weewx stopped updating. I was wondering if anyone else with a Davis WS had a similar issue if so is there a fix? Thanks.
import pytz
import datetime
gmt = pytz.utc
bst = pytz.timezone("Europe/London")
gmtStartTime = datetime.datetime.now(gmt).time().replace(microsecond=0)
bstStartTime = datetime.datetime.now(bst).time().replace(microsecond=0)
for utc_transition_time in bst._utc_transition_times:
if datetime.date.today() == utc_transition_time.date():
if utc_transition_time.time() <= gmtStartTime <= (utc_transition_time + datetime.timedelta(minutes=65)).time():
if gmtStartTime < (utc_transition_time + datetime.timedelta(minutes=5)).time():
print('Stop WeeWX')
if gmtStartTime > (utc_transition_time + datetime.timedelta(hours=1)).time():
print('Start WeeWX')
print(datetime.date.today(), ' == ', utc_transition_time.date())
print(' ', utc_transition_time.time(), ' <= ', gmtStartTime, ' <= ', (utc_transition_time + datetime.timedelta(minutes=65)).time())
print(' ', gmtStartTime, ' < ', (utc_transition_time + datetime.timedelta(minutes=5)).time())
print(' Stop WeeWX\n')
print(' ', gmtStartTime, ' > ', (utc_transition_time + datetime.timedelta(hours=1)).time())
print(' Start WeeWX\n')
--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/b16e5a50-0da5-416b-bd59-064d804b2079n%40googlegroups.com.
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 emails from it, send an email to weewx-user+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/cf476324-170e-4a51-a339-64a83e892308n%40googlegroups.com.
On Mar 28, 2021, at 5:48 AM, Tom Keffer <tke...@gmail.com> wrote:
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/CAPq0zEDVGA-jefeN9O0rc%2B3TcFjPerppGepX29iV%3D9Ff274LoQ%40mail.gmail.com.
i have never seen this problem viz having to clear logger memory to fix DST transition. heck, i have never had to clear logger memoryOn 29 Mar 2021, at 12:32 am, John Kline <jo...@johnkline.com> wrote:The issue being reported here sounds different. Are you guys saying you *always* have this problem going in and out of DST? Do you have the correct DST setting in the console? Even when I encountered the issue above, I didn’t have to clear memory in my logger. Tom, do you see this issue? Do you have to clear memory in your logger every six months?
--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/64199516-3F67-4EFF-BFF0-3C43122A8EBF%40gmail.com.
--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/rmilfa7icwc.fsf%40s1.lexort.com.
sudo wee_device --dump
--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/36bb832f-bb9e-40df-a5c9-c6851c8d64bfn%40googlegroups.com.
--
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+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/weewx-user/40a3d8e4-f2e0-485d-8a62-df162ab2dfd6n%40googlegroups.com.
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 is the data coming from/where has it been added? Also, there's no hour gap on the graphs for my station, which I thought there would be (there's data every minute between 01:00 and 02:00)?