EasyManua.ls Logo

UUGear Witty Pi 4 - Write RTC Time to System; Synchronize Time; Schedule Next Shutdown; Schedule Next Startup

Default Icon
53 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
12
option should be used when you find the Raspberry Pi system time is correct (may be synchronized
from the Internet) while the RTC time is not correct.
7.2 Write RTC time to system
This option will copy the time from the Realtime Clock on Witty Pi to your Raspberry Pi system. This
option should be used when you find the RTC time is correct while the system time is not correct.
7.3 Synchronize time
If you choose this option, it will check if Internet is accessible, and apply network time to Raspberry Pi
system and RTC when possible.
If your Raspberry Pi is not connected to Internet, choosing this option will do nothing.
7.4 Schedule next shutdown
This option allows you to specify when your Raspberry Pi should shutdown automatically.
Please notice the input format should be “DD HH:MM:SS”. DD means the day in the month, HH is the
hour, MM is the minute and SS is the second. All these should be 2 digits and 24-hour system should
be used.
Unlike the previous version of Witty Pi, the “??” wildcard is no longer supported. This is because
the alarms are now implemented by the micro controller, and the MCU does not have enough
resource to implement this wildcard. However, you can use schedule script to do what “??” wildcard
does. Please refer the Migrating from Witty Pi 3 to Witty Pi 4 chapter.
Schedule script can actually make much more complex schedule. You can find more details in
Schedule Script section.
7.5 Schedule next startup
This option allows you to specify when your Raspberry Pi should startup automatically.
Here you will need to input the startup time in the same “DD HH:MM:SS” format, and again the “??”
wildcard is not supported here. You can use schedule script to do the same and even better.
7.6 Choose Schedule Script
If you want to define a complex ON/OFF sequence for your Raspberry Pi, you should schedule
script.
A schedule script (.wpi file) defines a loop, with all states and their durations inside. After Raspberry
Pi is boot, the “runScript.sh” will be run automatically, which will schedule the next shutdown and next
startup for you, and hence a complex ON/OFF sequence could be achieved.

Table of Contents