uptime-kuma icon indicating copy to clipboard operation
uptime-kuma copied to clipboard

Synology Chat Notification

Open cristacheda opened this issue 3 years ago • 6 comments

⚠️ Please verify that this feature request has NOT been suggested before.

  • [X] I checked and didn't find similar feature request

🏷️ 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

cristacheda avatar Jan 10 '22 14:01 cristacheda

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=<token_id>'

I think this maybe useful.

halfu avatar Jul 13 '22 03:07 halfu

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=<token_id>'

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

dannymertens avatar Dec 29 '22 12:12 dannymertens

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

MDevil avatar Feb 03 '23 21:02 MDevil

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 :)

GymNut avatar Feb 24 '23 05:02 GymNut

Ref: https://github.com/louislam/uptime-kuma/issues/1734 => feature request wanting templatable urls for webhooks

CommanderStorm avatar Aug 04 '23 23:08 CommanderStorm