Synology is another product I enjoy, as I have mentioned it in my Home Entertainment Setup post. Synology sell's Network Attached Storage (NAS) devices which essentially are tiny servers to store files, host web pages, etc... I enjoy running their DSM Operating System on my HP N54L MicroServer.
Synology DSM has the ability of sending email notices, mobile push notifications, and SMS notifications. With Pushbullet already being integrated into my life, I was hoping I could have DSM send me notifications through Pushbullet. Unfortunately it is not built out of the box. But with some third-party programs, it can be done!
Here is what you need to do:
1. In the Community section of the Package Manager, you are going to add CPH as a package with the Location being https://www.cphub.net
2. Refresh the Package Manager and add the packages Notification Essentials and Notification Forwarder.
3. Open up the newly installed Notification Forwarder package.
4. Add a new configuration with the Pushbullet protocol. Set your username to admin, and your password to your Pushbullet Access Token. You can get an Access Token from your Pushbullet Account Settings page.
5. Now in your Control Panel, under the Notification section, anything selected for Mobile notification will be sent through Pushbullet.
The procedure above was a translation thanks to the documentation on Domoticx.
After doing the steps above, I was able to successfully get notifications on Pushbullet from Synology. Unfortunately, the real reason I wanted push notifications on my phone was for Motion detection from the Surveillance Station connected to my Foscam FI9821W security camera. And the above did not seem to work in this case. This meant I had to find a different solution.
Styxit wrote some code in order to get Synology to communicate with Pushover. I decided to take his code and make some modifications to get it to work with Pushbullet.
My code published on Github is a modification which combines code from Styxit above with a Pushbullet PHP Curl code from DWB.
Download my code as a file called pushbullet.php and place it in your root web directory on your Synology. Make sure you have the web server enabled first.
To set up notifications for the Surveillance Station, you will have to first launch it. Then go to Notification from the menu option. Go to the SMS section and perform the following:
2. Click Add SMS Service Provider.
3. Set the Provider name to Pushbullet.
4. Set the URL as follows:
5. Enter your Pushbullet Access Token ID as the value for appkey for the URL above.
6. Click Next and assign the following:
pwd=0 -> Password
appkey=*** -> Other
to=1234 -> Phone number
text=Hello+World -> Message content
7. Press Finish.
8. Set the SMS Service Provider to be Pushbullet.
9. Set the Username and Password to anything you want.
10. Set a Primary phone number to anything you want.
11. Press Apply.
12. Verify it works with the Send a test SMS message button.
You can then go to the Advanced section to enable what you want to be notified through SMS (in this case, Pushbullet) about.
For me, I just enabled Camera Motion detection to send an SMS alert and set the SMS interval limit to 1 minute so that I do not get spammed from multiple movements during the same small time frame.
And there you have it. I use the SMS method for the Surveillance station push notifications, and the Notification Forwarder app for the standard Synology notifications.
Enjoy the synergy between Synology and Pushbullet.