Skip to content

Custom Push Notifications for Sonarr, Radarr and Lidarr

Notifications You must be signed in to change notification settings

chinedu40/CustomPush

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 

Repository files navigation

CustomPush

Custom Push Notifications for Sonarr, Radarr and Lidarr

Recent Changes

  • Added Email notification support (Gmail by default)
  • Added cover art support
  • Added Lidarr support
  • Added BoxCar notification scripts

What is this?

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.

Requirements

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.

Usage

Windows

Follow the below steps replacing the relevant folder/file names

  1. In Sonarr/Radarr go to Settings > Connect > +
  2. Choose Custom Script
  3. Check On Download and On Upgrade
  4. Path: C:\Windows\System32\WindowsPowerShell\v1.0\powershell.exe
  5. Arguments: -ExecutionPolicy ByPass -File C:\Users\User\Sonarr\PushBullet.ps1 Use the location where you saved the relevant .ps1 script
  6. Test/Save

Linux

Follow the below steps replacing the relevant folder/file names

  1. Run chmod +x on the PushBullet.sh scripts (or set them to be Executable in the properties)
  2. In Sonarr/Radarr go to Settings > Connect > +
  3. Choose Custom Script
  4. Check On Download and On Upgrade
  5. Path: \home\user\Sonarr\PushBullet.sh Use the location where you saved the relevant .sh script
  6. Arguments: Leave blank
  7. Test/Save

Mac OS

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.

Credits

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!

Also a big thanks to the Sonarr, Radarr and Lidarr teams for their great products, well documented API's and sample scripts.

What's Next? Something Broke! I did a thing!

  • 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.

About

Custom Push Notifications for Sonarr, Radarr and Lidarr

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PowerShell 55.7%
  • Shell 44.3%