feat/ntfy-local #6
Reference in New Issue
Block a user
Delete Branch "feat/ntfy-local"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
feat: add ntfy message overlay
Integrates ntfy.sh push notifications into the terminal stream. A background thread polls a configurable ntfy topic and, when a message arrives, displays it as a full-screen bordered overlay (with title, body, countdown timer, and timestamp) for 30 seconds before resuming normal headline scrolling.
Changes:
• Add NTFY_TOPIC, NTFY_POLL_INTERVAL, MESSAGE_DISPLAY_SECS constants
• Add _ntfy_message / _ntfy_lock globals and _start_ntfy_poller() background thread
• Add ntfy message rendering block in stream() with styled borders, metadata, and display cache
• Fix UnboundLocalError: declare _ntfy_message as global in stream() to prevent Python from treating the expiry-reset assignment as a local binding
_ntfy_messageas global within thestreamfunction. ed3006677f