Receive notifications from Synology and forward them to the notification service of your choice
Settings are supplied by setting environment variables
API_KEY
: A minimum of 32 character api key that Synology server needs to use to auth to this services apiLISTEN_PORT
: Default 8080
. The port the service will listen onSLACK_WEBHOOK
: URL for the Slack web hookSLACK_ATTACHMENT_COLOR
: Color to use for the attachments can use hex #36a64f
export API_KEY='LO45UXS%amLAWJn6CwJ1koaXW&7pY9#Z'
export SLACK_WEBHOOK='https://slack.com/myWebHookUrl'
./synology-notifications
listening on port 8080
docker run -e API_KEY='LO45UXS%amLAWJn6CwJ1koaXW&7pY9#Z' -e SLACK_WEBHOOK='https://slack.com/myWebHookUrl' -p 8080:8080 ryancurrah/synology-notifications:latest
listening on port 8080
Control Pannel
> Notification
> SMS
Enable SMS Notifications
Add SMS Provider
to create a new SMS provider which will be the synology-notifications
service. (NOTE: We will not actually be using SMS
)
synology-notifications
http://<ip address of synology-notifications service>:8080
POST
Next
to go to the Edit HTTP Request Header
pageAdd
and set the Parameter
to api_key
and leave Value
emptyNext
to go to the Edit HTTP Request Body
pageAdd
and set the Parameter
to phone_number
and leave Value
empty (NOTE: Synology requires this field to exist even though it's not used)Add
and set the Parameter
to message
set the Value
to Hello world
(NOTE: Synology requires a sample value)Next
to go to the Select the corrosponding category for each parameter
pageapi_key
Parameter to API Key
phone_number
Parameter to Phone Number
message
Parameter to Message content
Apply
synology-notifications
from the SMS service provider
dropdownAPI Key
field paste the API Key you choose for the serviceApply
Send a test SMS message