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.

On Sun, Mar 28, 2021 at 2:52 PM Greg from Oz <[email protected]> wrote:

> 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
>
>
> On Sunday, 28 March 2021 at 20:55:51 UTC+11 [email protected] wrote:
>
>> I hit that twice yearly daylight savings issue again today. and tried all
>> my usual fixes.
>>
>> There is a thread
>> <https://groups.google.com/g/weewx-user/c/AsuYQBdI1Ls/m/-YT6LIp8CwAJ> 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
>>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/weewx-user/42d7c938-9d90-4df7-9240-928584eb3d7en%40googlegroups.com
> <https://groups.google.com/d/msgid/weewx-user/42d7c938-9d90-4df7-9240-928584eb3d7en%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>


-- 
Peter Quinn
(415)794-2264

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/weewx-user/CAA1SM22KWLBgpD%2Buw%3DMj-jAE%3DcEr99my2%2BO2enSxfXAjsL3mYw%40mail.gmail.com.

Reply via email to