Hello,
I tried with the examples for the schedule.wpi to set a daily booting time at 06:00:00 and shutdown at 06:05:00 and booting at 18:00 and shutdown at 18:05. With the ON and OFF times you can adjust only relative times. I wonder if I'm the only one who needs this feature? Or is there a workaround or maybe another way to schedule absolute times?
Many thanks in advance for any hint!
Oliver
A schedule script like this will work:
BEGIN 2025-03-03 06:00:00 END 2025-03-05 23:45:00 ON M5 OFF H11 M55 ON M5 OFF H11 M55
Changing the END date time can decide when this schdule script will stop.
If you simulate it in the online app: https://www.uugear.com/app/wittypi-scriptgen/ , you will get:









Hello,
thank you very much for the fast reply. As I understand your setting correctly the combination of BEGIN ON OFF and END times need to be 24 hours in order to create a daily cycle...this looks now logic to me 😉
Thanks again and have a nice evening!
Oliver
Hello, I am hoping for a similar functionality, but would like to put End at a year or two in the future (eventually I'm hoping to leave this device run by itself for many months (years...) unattended). With the relative time control, I'm worried that the daily wake-up time will slowly drift over weeks or months. For my application, it is important to wake at a (decently) precise absolute time each day. The functionality I would like is: wake each day at 11:00 AM, then shutdown 5 min later. If relative time is all that is available, I suppose I could create a script to update the relative time to account for actual time that it woke up (effectively a feedback loop to adjust relative time to have accurate daily times).
@matt-schneider When better accuracy is needed, you may consider updating the RTC's time with:
- Network time, if network connection is possible (either via cable or via 3G/4G/5G)
- GPS time, if the device can receive GPS signal
These require additional hardware as well as software development.
There is no need to worry relative time or absolute time is being used: you just need to make sure the RTC has the correct time.