Open cristacheda opened 2 years ago
I search on internet for hours to debug synology chat webhook incoming. I finally found this: https://www.synology-forum.de/threads/chat-webhook-mittels-curl.106784/post-972226
In brief, when testing with curl, add single quotation marks on both side of the webhook URL, it works.
For examble :
curl -X POST \
--data-urlencode 'payload={"text": "This is a test"}' \
'http://192.168.1.100:5000/webapi/entry.cgi?api=SYNO.Chat.External&method=incoming&version=2&token=
I think this maybe useful.
I search on internet for hours to debug synology chat webhook incoming. I finally found this: https://www.synology-forum.de/threads/chat-webhook-mittels-curl.106784/post-972226
In brief, when testing with curl, add single quotation marks on both side of the webhook URL, it works. For examble : curl -X POST --data-urlencode 'payload={"text": "This is a test"}' 'http://192.168.1.100:5000/webapi/entry.cgi?api=SYNO.Chat.External&method=incoming&version=2&token=
' I think this maybe useful.
OK maybe I'm missing something here, the command above works in a terminal but how can I add this as a notification, tried it but always get an error as I test it. To be honest, I'm completely new to this so probably my own stupid mistake, so some help is very appreciated!
Thanks in advance!
Kind regards, D
would be really nice to have integration for Synology Chat, or adapt the current webhook parameters to allow custom ones. The current additionnal header is not providing this functionnality
I've built a docker container as an intermediary, it receives the webhook from uptime-kuma and forwards to Synology Chat.
https://hub.docker.com/r/timblack/webhookrelay
Works for me :)
Ref: https://github.com/louislam/uptime-kuma/issues/1734 => feature request wanting templatable urls for webhooks
Is there a workaround to make it work or will it still have to wait for integration?
⚠️ Please verify that this feature request has NOT been suggested before.
🏷️ Feature Request Type
New Notification
🔖 Feature description
Add Synology Chat notification type.
✔️ Solution
Here is the required parameters https://kb.synology.com/en-in/DSM/help/Chat/chat_integration?version=6
❓ Alternatives
Or allow custom parameters for the Webhook notification.
📝 Additional Context
No response