ntfy Push Notification Helpers
ntfy_send(config) → (success, error)
Send a push notification via ntfy and wait for confirmation (10s timeout).
Config table fields:
server(string, optional) - ntfy server URL (default:"https://ntfy.sh")topic(string, required) - Topic name to publish tomessage(string, required) - Notification message bodytitle(string, optional) - Notification titlepriority(string, optional) -"max","urgent","high","default","low", or"min"tags(string or array, optional) - Tags as comma-separated string or arrayclick(string, optional) - URL to open on clickattach(string, optional) - Attachment URLactions(string, optional) - Action buttons in ntfy formaticon(string, optional) - Custom icon URLemail(string, optional) - Email address to forward to
Returns: success (boolean), error (string|nil).
ntfy_send_async(config) → boolean
Fire-and-forget variant (10s timeout in background). Same config as ntfy_send. Returns true if queued, false if
validation failed.