djdd87 / SynoAI

A Synology Surveillance Station notification system utilising DeepStack AI
GNU General Public License v3.0
209 stars 24 forks source link

Multiple Webhooks #147

Closed 1onar closed 2 years ago

1onar commented 2 years ago

Hi, sorry if it's a dump question. But is it possible to set up a webhook for each camera? I've trying to setup action rules and each action rule got its own web hook url.

djdd87 commented 2 years ago

Yes, create a webhook notification for each URL, then put the camera name in the cameras array as per the example in the README.

README:

"Notifiers": [
  {
    "Type": "{Type}",
    "Cameras": [ "Driveway", "Garden"]
  }
]

Example:

"Notifiers": [
  {
    "Type": "Webhook",
    "URL": "https://server/url_1"
    "Cameras": [ "Camera1" ]
  },
  {
    "Type": "Webhook",
    "URL": "https://server/url_2"
    "Cameras": [ "Camera2" ]
  },
  {
    "Type": "Webhook",
    "URL": "https://server/url_3"
    "Cameras": [ "Camera3" ]
  }
]