Cool stuff for Raspberry Pi, Arduino and all electronics hobby projects
Notifications
Clear all

Can you confirm this Scheduler will do what it claims?

4 Posts
2 Users
1 Likes
26 Views
(@novysan)
Posts: 7
Active Member Customer
Topic starter
 

I have a museum installation that loads in tomorrow (Tuesday).

The museum runs Tuesday through Sunday, closed on Monday.

The museum would like the installation to autostart every morning at 08:00. (Monday excluded).

The museum would like a docent or a guard to shut down the installation manually.

I used your online script generator and I THINK this should work. The simulator shows the correct boot up times with NO MONDAYS listed.

BEGIN 2025-01-07 08:00:00
END   2025-12-31 23:59:59


# -- Tuesday --
ON    H16 WAIT
OFF   H8
# -- Wednesday --
ON    H16 WAIT
OFF   H8
# -- Thursday --
ON    H16 WAIT
OFF   H8
# -- Friday --
ON    H16 WAIT
OFF   H8
# -- Saturday --
ON    H16 WAIT
OFF   H8
# -- Sunday --
ON    H16 WAIT
OFF   D1 H8

Using the scheduler on the Pi shows:

Skip scheduling next shutdown, which should be done externally.
Schedule next startup at: 2025-01-08 08:00:00

QUESTION:

Will this schedule correctly boot at 08:00 every day of the week except Monday?

Thank you.

 
Posted : 07/01/2025 12:03 am
(@admin)
Posts: 520
Member Admin
 

Posted by: @novysan

Will this schedule correctly boot at 08:00 every day of the week except Monday?

It will, as long as the Pi has been correctly shut down beforehand.

Posted by: @novysan

Skip scheduling next shutdown, which should be done externally.

In case you didn't notice, this message says you will need to shut down your Pi by yourself, either via a program/script or manually. Witty Pi's software doesn't shutdown your Pi because the "WAIT" keyword at the end of "ON" state line.

The typical use case of "WAIT" keyword, is to let your own program/script to shutdown your Pi after doing its job. If you don't know how much time your program/script will take to finish its job, this is the way to go. Your program/script needs to shutdown the Pi at the end of the job (either call "sudo shutdown now" or pull down GPIO-4 with "gpio -g write 4 0"), and this needs to happen before the next scheduled startup time (8 AM).

 
Posted : 07/01/2025 7:10 am
(@novysan)
Posts: 7
Active Member Customer
Topic starter
 

Yes, I did notice that line and that was my understanding. Thank you for the clarification. I might just put a cron job in at Midnight to shut down, in case the docent misses it.

One final question.

How does the wittypi deal with daylight savings time? Does it care? The Pis will be UNconnected to any network (for security reasons), so I will have to temporarily connect them manually and resync after the daylight savings time in the Spring. Will I need to rerun the scheduler?

 
Posted : 07/01/2025 1:21 pm
(@admin)
Posts: 520
Member Admin
 

Posted by: @novysan

How does the wittypi deal with daylight savings time?

Similar topics have been discussed in this forum:

https://www.uugear.com/forums/technial-support-discussion/witty-pi-4-about-daylight-saving-time-dst/

https://www.uugear.com/forums/technial-support-discussion/daylight-savings-time-rtc/

 
Posted : 07/01/2025 4:52 pm
novysan reacted
Join Waitlist We will inform you when the product arrives in stock. Please leave your valid email address below.