ntfy.sh notification integration #1814
cdf-eagles
started this conversation in
Feature Requests
Replies: 1 comment 1 reply
-
It took some trial and error for me, but I did get ntfy working with the Maintainerr webhook. Here's what I did: With that I was able to get the test to succeed. Going to go back in later and see about customizing. Hope this helps! |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Would it be possible to get ntfy.sh notification integration working (https://github.com/binwiederhier/ntfy)?
I tried to configure it using Webhooks, but I end up getting errors like this because the JSON isn't what NTFY is expecting.
[maintainerr] | 02/06/2025 17:01:13 [ERROR] [WebhookAgent] Error sending Webhook notification. Details: {"type":"TEST_NOTIFICATION","subject":"","errorMessage":"Request failed with status code 400","response":{"code":40009,"http":400,"error":"invalid request: topic invalid"}}
https://docs.ntfy.sh/publish/#publish-as-json
EXAMPLE
POST / HTTP/1.1
Host: ntfy.sh
{
"topic": "mytopic",
"message": "Disk space is low at 5.1 GB",
"title": "Low disk space alert",
"tags": ["warning","cd"],
"priority": 4,
"attach": "https://filesrv.lan/space.jpg",
"filename": "diskspace.jpg",
"click": "https://homecamera.lan/xasds1h2xsSsa/",
"actions": [{ "action": "view", "label": "Admin panel", "url": "https://filesrv.lan/admin" }]
}
Beta Was this translation helpful? Give feedback.
All reactions