RPi garage door monitor
Go to file
Mike Cifelli a6d8a28f5d Add license and update readme 2023-07-03 09:34:24 -04:00
www Initial commit 2022-12-26 17:03:35 -05:00
.gitignore Clean up code 2023-01-05 19:32:17 -05:00
LICENSE Add license and update readme 2023-07-03 09:34:24 -04:00
README.md Add license and update readme 2023-07-03 09:34:24 -04:00
garage.py Clean up code 2023-01-05 19:32:17 -05:00
garage.sample.cfg Send push notifications 2022-12-30 14:09:56 -05:00
garage.service Clean up code 2023-01-05 19:32:17 -05:00
install Initial commit 2022-12-26 17:03:35 -05:00

README.md

garage

A Raspberry Pi project for monitoring garage doors using reed switches.

Configuration

cp garage.sample.cfg garage.cfg

Installation

sudo ./install

Output

By default output will be in /var/log/syslog. A separate log file can be used by creating /etc/rsyslog.d/30-garage.conf containing:

if $programname == 'garage' then /var/log/garage.log
& stop

and then restart the rsyslog service:

sudo systemctl restart rsyslog

This log file can be rotated by creating /etc/logrotate.d/garage containing:

/var/log/garage.log
{
        rotate 14
        daily
        create
        missingok
        notifempty
        compress
        delaycompress
        postrotate
                /usr/lib/rsyslog/rsyslog-rotate
        endscript
}