Hi, Thanks for this fantastic products. I am running a traccar instance in Synology docker and everything works by default. I am trying to configure receiving notifications to a Synology Chat channel using Synology Webhook Integration (incoming webhook). I have been trying various things (using solutions in this forum and across the other discussions) none of it seem to work for me or I am not doing it as it should be. I tried using config for SMS channel replacing url with the synology webhook url, tried using forwarding events and positions and no success so far. Could someone who has done something similar before help me how to get this working please?
Synology Webhook would look something like https://chat.example.com/webapi/entry.cgi?api=SYNO.Chat.External&method=incoming&version=2&token=TOKENHERE
And the format for receiving incoming data would be something similar to this curl example
echo "Test message" | /usr/bin/curl -X POST --data-urlencode "payload={\"text\": \"Test message\"}" "https://chat.example.com/webapi/entry.cgi?api=SYNO.Chat.External&method=incoming&version=2&token=TOKENHERE"
What I am trying to setup?
I'm basically trying to configure notifications to an external endpoint (Synology Webhook) for when device is online, has entered the geofence and exited the geofence. Any help is greatly appreciated.
I think you should be able to use SMS configuration for this. What was the problem?
Yes, I managed to make it working. It was my mistake. Synology expects the JSON payload to be URL-encoded and sent as the value of a parameter called payload, with the Content-Type set to application/x-www-form-urlencoded which I did not notice until recently. I revised the template to
<entry key='notificator.types'>web,mail,sms</entry>
<entry key='sms.http.url'>https://chat.example.com/webapi/entry.cgi?api=SYNO.Chat.External&method=incoming&version=2&token= TOKENHERE </entry>
<entry key='sms.http.template'>payload=%7B%22text%22%3A%22{message}%22%7D</entry>
and it started receiving SMS notifications. Thanks, Anton.
Hi, Thanks for this fantastic products. I am running a traccar instance in Synology docker and everything works by default. I am trying to configure receiving notifications to a Synology Chat channel using Synology Webhook Integration (incoming webhook). I have been trying various things (using solutions in this forum and across the other discussions) none of it seem to work for me or I am not doing it as it should be. I tried using config for SMS channel replacing url with the synology webhook url, tried using forwarding events and positions and no success so far. Could someone who has done something similar before help me how to get this working please?
Synology Webhook would look something like
https://chat.example.com/webapi/entry.cgi?api=SYNO.Chat.External&method=incoming&version=2&token=TOKENHERE
And the format for receiving incoming data would be something similar to this curl example
What I am trying to setup?
I'm basically trying to configure notifications to an external endpoint (Synology Webhook) for when device is online, has entered the geofence and exited the geofence. Any help is greatly appreciated.