This page temporarily redirects to gemini://git.cifelli.xyz/garage/main/.

Garage

RPi garage door monitor

=> 🔖 Tags | 🗎 File Tree | ⌥ Branches [main] | Clone URL

Latest Commits

=> 2024-04-03 Allow multiple push servers | 2023-07-03 Add ntfy auth to sample config | 2023-07-03 Add authentication to ntfy | 2023-07-03 Update readme | 2023-07-03 Add license and update readme — 🔖 v1.0.0 | 2023-01-06 Clean up readme | 2023-01-05 Clean up code | 2022-12-30 Change initial state | More...

garage

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.

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
}
Proxy Information
Original URL
gemini://git.cifelli.xyz/garage
Status Code
Success (20)
Meta
text/gemini; charset=utf-8
Capsule Response Time
923.365383 milliseconds
Gemini-to-HTML Time
1.008938 milliseconds

This content has been proxied by September (3851b).