! ! ! ! ! ! ! ! ! ! !
!
15!
!
more!parameters!after!ON/OFF,!separated!by!space!or!tab.!Each!parameter!starts!
with!a!capital!letter!and!follows!by!a!number,!where!the!capital!letter!is!the!unit!of!time:!
!
! D!=!Days!(D2!means!2!days)!
!
! H=Hours!(H3!means!3!hours)!
!
! M=Minutes!(M15!means!15!minutes)!
!
! S=Seconds!(S30!means!30!seconds)!
For!example,!if!you!wish!to!define!an!ON!state!for!one!and!a!half!hour,!you!can!write:!
ON! !
H1! !M30!
When!the!script!engine!executes!this!line,!it!will!actually!schedule!a!shutdown!at!the!
end!of!the!ON!state.!
If!you!wish!to!define!an!OFF!state!for!two!days,!you!can!write:!
OFF!
D2!
When!this!line!gets!executed,!an!incoming!startup!will!be!scheduled!at!the!end!of!the!
OFF!state.!
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.!
Advanced!Usage:
! !
Although!the!schedule!script!can!be!chosen!by!wittyPi.sh,!you!can!use!it!without!the!
help!from!wittyPi.sh.!Just!copy!the!schedule!script!file!to!“~/wittyPi/schedule.wpi”!and!
then!run!“sudo!./runScript.sh”!in!the!“~/wittyPi”!directory,!the!script!will!start!to!work.!
This!allows!you!to!
use!schedule!script!as!an!interface
!to!integrate!other!tools!with!
Witty!Pi!together.!For!example,!you!
can!create!your!own!tool!to!visually!
create!a!schedule!script,!or!
remotely!generate!the!schedule!
script!via!a!web!interface.
!
!
!
!