-- Leo's gemini proxy
-- Connecting to git.cifelli.xyz:1965...
-- Connected
-- Sending request
-- Meta line: 20 text/gemini; charset=utf-8
RPi garage door monitor
A Raspberry Pi project for monitoring garage doors using reed switches. The state is pushed to ntfy on updates and is also stored in a json file in the www/ directory.
cp garage.sample.cfg garage.cfg
sudo ./install
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 }
-- Response ended
-- Page fetched on Sun May 12 03:33:58 2024