How kris-gray-28/brs-golf-monitor works
This is a Cowglen BRS tee-sheet monitor. Its runtime repeatedly checks BRS, filters tee times to a configured date and window, detects bookable empty four-balls, suppresses repeat alerts for already-notified times, and sends email. The workflow is implemented primarily in main.py, with SMTP delivery in mail_alert.py. The README also describes configurable course use. The inspector scripts are exploratory HTML tools, not part of the documented monitoring workflow. Edges reflect the shown calls; external BRS and SMTP behavior is represented only where the source makes requests or connects.
Main entry points: main.py Availability check · mail_alert.py Email alert sender
Components 9
Monitoring workflow
- Polling loop
main.py - Availability check
main.py - Window and 4-ball detection
main.py - Alerted-time set
main.py
Alert delivery
- Email alert sender
mail_alert.py
Other components
- Monitor operator
- BRS booking system
- AOL SMTP
- Email recipient
Connections 8
- Monitor operator → Polling loop: starts
README.md - Polling loop → Availability check: calls repeatedly
main.py - Availability check → BRS booking system: requests login and tee data
main.py - Availability check → Window and 4-ball detection: checks returned slots
main.py - Window and 4-ball detection → Alerted-time set: checks and records times
main.py - Window and 4-ball detection → Email alert sender: sends alert
main.py - Email alert sender → AOL SMTP: connects and sends
mail_alert.py - AOL SMTP → Email recipient: delivers email