Docker for forwarding notifications to various services written in Python.
Inspired by https://github.com/ryancurrah/synology-notifications
Supports:
- Discord
- Add this repo via Docker
- Add a
WEBHOOK_URL
environment variable and set it to your service's url.- For discord, you can find this in
Edit channel->Integrations->Webhooks->WebhookName->Copy webhook URL
- You can optionally add a
USERNAME
environment variable to override the webhook's name (Discord only)
- For discord, you can find this in
- Add a new SMS provider in
Control Panel
- Enter your Synology ip followed by the port you've assigned the Docker container to as the
URL
. e.g.http://<your-synology-ip>:8686
- Set
HTTP Method
toPOST
- Currently can hit next on
Edit HTTP Request Header
- future notification endpoints may require things like an API key here - On
Edit HTTP Request Body
:- Add
phone_number
parameter; leave thevalue
field empty - Add
message
parameter; enterhello world
as the value
- Add
- Set the
phone_number
parameter category toPhone number
- Set the
message
parameter category toMessage content
- Set the
SMS Service provider
to your newly created service - Enter in a dummy phone number (it's not used)
- Hit apply
- Send a test notification to check you receive it
- Add a new SMS provider in
Notification
app - Enter your Synology ip followed by the port you've assigned the Docker container to as the
URL
. e.g.http://<your-synology-ip>:8686
- This time you'll also need to add some url parameters; the value of these parameters don't matter they're just required by Surveillance Station: e.g. 'http://your-synology-ip:8686?user=na&password=na&api_id=na&to=na&text=hello+world'
- Set
HTTP Method
toGET
- Set the
user
parameter category toUsername
- Set the
password
parameter category toPassword
- Set the
to
parameter category toPhone number
- Set the
text
parameter category toMessage content
- Set the
SMS Service provider
to your newly created service - Enter in a dummy username, password and confirm password (it's not used)
- Hit apply
- Send a test notification to check you receive it