Skip to content

Latest commit

 

History

History
33 lines (30 loc) · 569 Bytes

README.md

File metadata and controls

33 lines (30 loc) · 569 Bytes

Requirements

WebIOPi

Installation

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

Crontab

*/5 * * * * cd /home/pi/checker; ./checker.sh

Logrotate

Create a file /etc/logrotate.d/checker:

/var/log/checker/checker.log {
        monthly
        rotate 12
        compress
        delaycompress
        missingok
        notifempty
        create 644 pi pi
}