21
If you wish to define an OFF state for two days, you can write:
OFF D2
When this line gets executed, a startup will be scheduled at the end of the OFF state.
Sometimes you may want to skip certain scheduling of shutdown/startup, and let your own program
to do the job. This can be achieved by using the WAIT syntax. For example:
ON M15 WAIT
This will keep your Raspberry Pi ON and no shutdown will be scheduled after 15 minutes, because
there is a WAIT at the end of the line. The parameter M15 is here only to make sure the next OFF
state can be calculated correctly and next shutdown can be scheduled properly. Once you use WAIT
in the ON state, you are responsible for the shutdown of your Raspberry Pi. Also if you use WAIT in
the OFF state, you will need to turn on your Raspberry Pi (manually or via external electronic
switch).
After installing the software, there are some schedule scripts in the “schedules” directory, and they
all have comments inside to explain themselves. You can take them as example to learn how to
create the Witty Pi schedule script.