cp env.conf.example env.conf
mkdir /var/log/checker
chown -R pi /var/log/checker
Set WebIOPi credentials and GPIO pin number in env.conf
*/5 * * * * cd /home/pi/checker; ./checker.sh
Create a file /etc/logrotate.d/checker:
/var/log/checker/checker.log {
monthly
rotate 12
compress
delaycompress
missingok
notifempty
create 644 pi pi
}