Daylight Savings Error

101 views
Skip to first unread message

Mike Revitt

unread,
Mar 28, 2021, 5:55:51 AM3/28/21
to weewx-user
I hit that twice yearly daylight savings issue again today. and tried all my usual fixes.

There is a thread on this but it is getting long and unwieldy.

But before porting to the Rasberry Pi, I never had an issue with the spring change, only autumn, but 2 years in a row now WeeWX has stopped at 02:00 am during spring change.

Last year I managed to fix it by simply stopping and starting WeeWX, but this year that failed to work.

Doing wee_device --dump just resulted this error, which looks like a data corruption
ERROR weewx.drivers.vantage: LOOP try #1; error: Expected to read 99 chars; got 0 instead

So I had to restore the database and run wee_device —clear-memory

This fixes the problem but results in me losing data.

What I want is to be able to detect the clock change some how and then create a cron job to stop WeeWX at clock change, run wee_device —clear-memory then re-start start it 61 minutes later, that will work for summer and winter changes. This will minimise data lose and stop me having to go through this every year.

Does anyone know of a way to find out when day light savings is due to happen

p q

unread,
Mar 28, 2021, 10:17:19 AM3/28/21
to weewx...@googlegroups.com
Funny. I don't have a problem with dst with a Raspi and a Acurite station. Im guessing that since weewx works with Epoc times it doesn't matter much. It sounds like maybe a driver issue. 

As to a service that tells you when Dst starts/ends in a given locale, I haven't been able to find one.  I've been looking. 

--
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/fcf9222f-4239-4422-962e-0f11193aafb0n%40googlegroups.com.

Greg from Oz

unread,
Mar 28, 2021, 5:52:55 PM3/28/21
to weewx-user
zdump -v /etc/localtime | grep 2021
Can tell you the daylight saving times.
In my timezone it looks like this:
/etc/localtime  Sat Apr  3 15:59:59 2021 UT = Sun Apr  4 02:59:59 2021 AEDT isdst=1 gmtoff=39600
/etc/localtime  Sat Apr  3 16:00:00 2021 UT = Sun Apr  4 02:00:00 2021 AEST isdst=0 gmtoff=36000
/etc/localtime  Sat Oct  2 15:59:59 2021 UT = Sun Oct  3 01:59:59 2021 AEST isdst=0 gmtoff=36000
/etc/localtime  Sat Oct  2 16:00:00 2021 UT = Sun Oct  3 03:00:00 2021 AEDT isdst=1 gmtoff=39600


p q

unread,
Mar 28, 2021, 5:59:56 PM3/28/21
to weewx...@googlegroups.com
Interesting. My need is somewhat unrelated to Weewx. I need it on a microcontroller that isn't running a form of unix, but this gives me an idea to write a service on the box running weewx that outputs the DST status to the local network. 

--
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.


--
Peter Quinn
(415)794-2264
Reply all
Reply to author
Forward
0 new messages