Custom Push Notifications for Sonarr, Radarr and Lidarr
- Added Email notification support (Gmail by default)
- Added cover art support
- Added Lidarr support
- Added BoxCar notification scripts
- Added Slack support (Currently Untested)
I have been looking for a way to customise the push notifications I receive from Sonarr and Radarr to make things easier at a glance. I didn't like "Radarr - Movie Downloaded" or "Sonarr - Episode Downloaded" and other services would tell me which episode/movie was actually completed.
When I found multiple requests for the ability to customise this and no simple solution I decided to make my own.
I didn't want to use any add-ins if possible and wanted something I could run on Windows or Linux as I occasionally move my installs around. I found a great script on the Sonarr.TV forum by bobbintb and used that to create everything in Powershell for Sonarr. Once I had it working I modified the script to work for Radarr and posted it online for everyone to share.
Unfortunately I wasn't able to parse JSON in bash alone so if you run Linux or Mac OS you will need to install jq from here: https://stedolan.github.io/jq/
I realise I could have used Python as most Mac/Linux users should have this installed but I don't really know Python that well and the PowerShell scripts translated to Bash quite easily.
Follow the below steps replacing the relevant folder/file names
- In Sonarr/Radarr go to Settings > Connect > +
- Choose Custom Script
- Check On Download and On Upgrade
- Path:
C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
- Arguments:
-ExecutionPolicy ByPass -File C:\Users\User\Sonarr\PushBullet.ps1
Use the location where you saved the relevant .ps1 script - Test/Save
Follow the below steps replacing the relevant folder/file names
- Run chmod +x on the PushBullet.sh scripts (or set them to be Executable in the properties)
- In Sonarr/Radarr go to Settings > Connect > +
- Choose Custom Script
- Check On Download and On Upgrade
- Path:
\home\user\Sonarr\PushBullet.sh
Use the location where you saved the relevant .sh script - Arguments: Leave blank
- Test/Save
I have not been able to test this on a Mac but I understand it should work the same as the Linux shell script above. If anyone is able to test this and provide feedback that would be greatly appreciated.
bobbintb - His original email and SMS notification script is what inspired this and was used/modified for my scripts. https://forums.sonarr.tv/t/custom-email-and-sms-notifications/14401
jaycedk - For suggesting new features, helping me test and implement them and encouraging me to keep improving this.
brainwash111 - For fixing errors and greatly improving the Pushbullet-WithImage.sh scripts.
chinedu40 - For testing and fixing errors with wget authentication.
juanortega0410 - For suggesting PushOver, testing and helping me fix bugs with the Linux scripts.
Also a big thanks to the Sonarr, Radarr and Lidarr teams for their great products, well documented API's and sample scripts.
- If you found an issue and can't fix it yourself, please log an issue in GitHub and I will try to fix it for you.
- If you found an issue and fixed it yourself or want to contribute some code, please send a pull request and I will try to include it.