How vegybs/windrose-monitor works
Windrose Server Monitor is a Python daemon that tracks player activity on a Pterodactyl-hosted server and sends Discord notifications. Its documented workflow obtains console logs through the Wings WebSocket (with an optional HTTP fallback), parses player sections, compares current players with persisted state, and reports joins, leaves, and count changes. The implementation is concentrated in one source file; the systemd unit provides the documented hardened service wrapper. Some internal connections below follow README workflow descriptions because the relevant source excerpts are incomplete.
Main entry points: windrose_monitor.py Monitor daemon · windrose-monitor.service systemd service
Components 12
Monitor runtime
- Monitor daemon
windrose_monitor.py - Configuration
windrose_monitor.py - Console log buffer
windrose_monitor.py
Player tracking
- Player section parser
windrose_monitor.py - Player state tracking
windrose_monitor.py - Persistent state
windrose_monitor.py
External integrations
- WebSocket listener
windrose_monitor.py - HTTP log fallback
windrose_monitor.py - Discord notifications
windrose_monitor.py
Other components
- systemd service
windrose-monitor.service - Pterodactyl Wings
- Discord webhook
Connections 13
- systemd service → Monitor daemon: starts
README.md - Monitor daemon → Configuration: loads
windrose_monitor.py - Monitor daemon → WebSocket listener: starts listener
windrose_monitor.py - WebSocket listener → Pterodactyl Wings: connects to
README.md - WebSocket listener → Console log buffer: buffers output
windrose_monitor.py - Monitor daemon → HTTP log fallback: fetches logs
windrose_monitor.py - HTTP log fallback → Pterodactyl Wings: requests logs
windrose_monitor.py - Console log buffer → Player section parser: supplies lines
README.md - Monitor daemon → Player section parser: parses logs
README.md - Player section parser → Player state tracking: identifies players
README.md - Player state tracking → Persistent state: persists state
windrose_monitor.py - Player state tracking → Discord notifications: creates updates
README.md - Discord notifications → Discord webhook: posts messages
windrose_monitor.py