synology-notifications
synology-notifications copied to clipboard
Synology notifications service
synology-notifications
Receive notifications from Synology and forward them to the notification service of your choice
Supported notification services
- Slack
Service settings
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: Default8080. The port the service will listen on
Slack settings
SLACK_WEBHOOK: URL for the Slack web hookSLACK_ATTACHMENT_COLOR: Color to use for the attachments can use hex#36a64f
Cmd
export API_KEY='LO45UXS%amLAWJn6CwJ1koaXW&7pY9#Z'
export SLACK_WEBHOOK='https://slack.com/myWebHookUrl'
./synology-notifications
listening on port 8080
Docker
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
Setting up Synology
- Login to Diskstation
- Go to
Control Pannel>Notification>SMS - Check
Enable SMS Notifications - Click
Add SMS Providerto create a new SMS provider which will be thesynology-notificationsservice. (NOTE: We will not actually be usingSMS)- Provider Name:
synology-notifications - SMS URL:
http://<ip address of synology-notifications service>:8080 - HTTP Method:
POST
- Provider Name:
- Click
Nextto go to theEdit HTTP Request Headerpage - Click
Addand set theParametertoapi_keyand leaveValueempty - Click
Nextto go to theEdit HTTP Request Bodypage - Click
Addand set theParametertophone_numberand leaveValueempty (NOTE: Synology requires this field to exist even though it's not used) - Click
Addand set theParametertomessageset theValuetoHello world(NOTE: Synology requires a sample value) - Click
Nextto go to theSelect the corrosponding category for each parameterpage - Set the type of the
api_keyParameter toAPI Key - Set the type of the
phone_numberParameter toPhone Number - Set the type of the
messageParameter toMessage content - Click
Apply - Select
synology-notificationsfrom theSMS service providerdropdown - In the
API Keyfield paste the API Key you choose for the service - Click
Apply - Test the notification service by clicking
Send a test SMS message
Setting up Synology with screenshots




