Notifications
Clear all

Witty Pi 4 L3V7 Clocks going back/forwards

7 Posts
2 Users
0 Reactions
193 Views
(@andrew-simpson17)
Posts: 116
Estimable Member Customer
Topic starter
 

Hi

Today, in the UK we put the clocks forward.  My test camera using this Witty board is set to start 11:15 and finish 12:30 (1hr 15mins running time). I have been running this for over a week now and no issues.  Clocks went back today.  Checking my Rpi the date has automatically been set correctly.  But, the scheduler shutdown at  11:30 and not 12:30. ?

 
Posted : 26/10/2025 1:00 pm
(@admin)
Posts: 676
Member Admin
 

It must be due to the daylight saving time ends today.

 
Posted : 26/10/2025 1:01 pm
(@andrew-simpson17)
Posts: 116
Estimable Member Customer
Topic starter
 

I should of added that my code detects the time change and calls your SetRtc command. The Witty log shows that the time has been updated but still shutdown an hour early. The schduler end time seems 'stuck' on the old timestamp

 
Posted : 26/10/2025 1:05 pm
(@admin)
Posts: 676
Member Admin
 

@andrew-simpson17

You probably need to prepare two schedule scripts, one for DST and the other one for non-DST. After updating the time, you also need to replace the schedule script and run "runScript.sh" to take effect.

There are quite some topics about DST in this forum, you may want to read them first.

 
Posted : 26/10/2025 1:09 pm
(@andrew-simpson17)
Posts: 116
Estimable Member Customer
Topic starter
 

Hi,  Thanks.  But i use my own script to run the schdeuler.  Seems the soluton then is to recall the set_shutdown_time and get_shutdown_time then as what you are inferring this is not done automatically when the rtc clock changes? 

 
Posted : 26/10/2025 1:23 pm
(@admin)
Posts: 676
Member Admin
 

@andrew-simpson17 I can't tell without knowing your implementation. But I guess the answer is positive in the majority of cases.

 
Posted : 28/10/2025 5:01 pm
(@andrew-simpson17)
Posts: 116
Estimable Member Customer
Topic starter
 

That is fair enough.  I added to my code that if I need to call your SystemToRtc function then I also call your set_shutdown_time and get_shutdown_time functions as well.  Difficult to test. If it does not work then it will be out of sync for that particular day as in the following day it has corrected itself anyway.

 

Thanks

 

 
Posted : 30/10/2025 8:31 am
Join Waitlist We will inform you when the product arrives in stock. Please leave your valid email address below.