plexpy/docs/extending-tautulli/custom-scripts.md
2021-05-24 06:43:39 +00:00

7.7 KiB

Custom Scripts

How to Use Custom Scripts

  1. Go to Settings > Notification Agents > Add new notification agent > Script. </p>

  2. Set a "Script Folder" and a "Script File"

  3. Select the triggers that will be used to run the script. e.g. Playback Start, Playback Stop.

  4. If you want to limit when the script runs, add custom conditions to the agent.

  5. Set the arguments that should be passed to the script

  6. Save. Voila, all done!

Environment Variables

Variable Description
PLEX_URL The URL used to connect to the Plex server e.g. `http://127.0.0.1:32400`.
PLEX_TOKEN The admin's Plex token.
PLEX_USER_TOKEN The user's Plex token only available for notifications with a user context i.e. Playback triggers.
TAUTULLI_URL The URL used to connect to the Tautulli server e.g. `http://127.0.0.1:8181`.
TAUTULLI_PUBLIC_URL The Public Tautulli Domain only if set in the Tautulli settings.
TAUTULLI_APIKEY The Tautulli API key.

List of User Created Scripts

Visit the JBOPS GitHub Repository for more up-to-date scripts created by @Blacktwin.

Tautulli Scripts:

Description Language Author
Kill streams Python blacktwin
Throttle nzb client Python Hellowlol
Send an Email notification to users when a new episode to their "favorite" show have been added to Plex Python blacktwin
Send a Tautulli notification with the movie directors' IMDB page Python JonnyWong16
Send a random Chuck Norris joke when a movie starring Chuck Norris is played Python JonnyWong16
Send a Tautulli notification with geolocation data Python JonnyWong16
Get notified when Plex disk usage exceeds a certain threshold Python JonnyWong16
Delete Tautulli history older than "X" days Python JonnyWong16
Restart Plex bat Hellowlol
Plex Docker Container Restart with Rancher Bash JigSawFr
Tautulli - Quiet hours and smart batching for Pushbullet notifications Python JimboMonkey1234
Generate map from user geolocation data Python blacktwin
Get notified when new IP address accesses Plex Python blacktwin
Run a SSH command using Python Python JonnyWong16
Automatically add a label to recently added items Python JonnyWong16
Automatically mark a multi-episode file as watched in Plex Python JonnyWong16
Automatically change episode artwork in Plex to hide spoilers Python JonnyWong16
Updates all metadata in the Tautulli database after moving Plex libraries Python JonnyWong16
Send recently added through native iOS push (OneSignal) Python LuisNunezC
Notify Sonarr that a plexDVR recording has been added to the library Bash metaMMA
Notification script for Facebook Groups Python spuniun

Other Plex Scripts:

Description Language Author
Automatically share and unshare libraries for Plex users Python JonnyWong16
Execute a command when no Plex sessions are active Python JonnyWong16
Create a Plex collection from a text file list of rating keys Python JonnyWong16
Sync Plex playlists to shared users Python JonnyWong16
Removes ALL collections from ALL movies Python JonnyWong16
Saves artist.jpg to the Artist folder. Python JonnyWong16
Randomly create haiku based on Plex libraries content. Python Blacktwin
Create a Plex Playlist with what was aired today in history. Python Blacktwin
Pull Movie and TV Show poster images from Plex. Python Blacktwin
Download theme songs from Plex TV Shows. Python Blacktwin
Delete shows that a list of users have watched. Python Blacktwin
Delete movies that a list of users have watched. Python Blacktwin