Tautulli
  • Introduction
  • Getting Started
    • Installation
      • Install as a Daemon
    • Upgrading to Python 3
  • Using Tautulli
    • Notifications Agents Guide
    • Custom Notification Conditions
    • Exporter Guide
    • 3rd Party APIs Guide
  • Support
    • Asking for Support
    • Frequently Asked Questions (FAQ)
    • Debugging Tautulli
  • Extending Tautulli
    • Custom Scripts
    • API Reference
Powered by GitBook
On this page
  • How to Use Custom Scripts
  • Environment Variables
  • List of User Created Scripts
  • Visit the JBOPS GitHub Repository for more up-to-date scripts created by @Blacktwin.

Was this helpful?

  1. Extending Tautulli

Custom Scripts

PreviousDebugging TautulliNextAPI Reference

Last updated 3 years ago

Was this helpful?

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|Custom Notification 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

Tautulli Scripts:

Description

Language

Author

Python

Python

Python

Python

Python

Python

Python

Python

bat

Bash

Python

Python

Python

Python

Python

Python

Python

Python

Python

Bash

Python

Other Plex Scripts:

Description

Language

Author

Python

Python

Python

Python

Python

Python

Python

Python

Python

Python

Python

Python

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

JBOPS GitHub Repository
Kill streams
blacktwin
Throttle nzb client
Hellowlol
Send an Email notification to users when a new episode to their "favorite" show have been added to Plex
blacktwin
Send a Tautulli notification with the movie directors' IMDB page
JonnyWong16
Send a random Chuck Norris joke when a movie starring Chuck Norris is played
JonnyWong16
Send a Tautulli notification with geolocation data
JonnyWong16
Get notified when Plex disk usage exceeds a certain threshold
JonnyWong16
Delete Tautulli history older than "X" days
JonnyWong16
Restart Plex
Hellowlol
Plex Docker Container Restart with Rancher
JigSawFr
Tautulli - Quiet hours and smart batching for Pushbullet notifications
JimboMonkey1234
Generate map from user geolocation data
blacktwin
Get notified when new IP address accesses Plex
blacktwin
Run a SSH command using Python
JonnyWong16
Automatically add a label to recently added items
JonnyWong16
Automatically mark a multi-episode file as watched in Plex
JonnyWong16
Automatically change episode artwork in Plex to hide spoilers
JonnyWong16
Updates all metadata in the Tautulli database after moving Plex libraries
JonnyWong16
Send recently added through native iOS push (OneSignal)
LuisNunezC
Notify Sonarr that a plexDVR recording has been added to the library
metaMMA
Notification script for Facebook Groups
spuniun
Automatically share and unshare libraries for Plex users
JonnyWong16
Execute a command when no Plex sessions are active
JonnyWong16
Create a Plex collection from a text file list of rating keys
JonnyWong16
Sync Plex playlists to shared users
JonnyWong16
Removes ALL collections from ALL movies
JonnyWong16
Saves artist.jpg to the Artist folder.
JonnyWong16
Randomly create haiku based on Plex libraries content.
Blacktwin
Create a Plex Playlist with what was aired today in history.
Blacktwin
Pull Movie and TV Show poster images from Plex.
Blacktwin
Download theme songs from Plex TV Shows.
Blacktwin
Delete shows that a list of users have watched.
Blacktwin
Delete movies that a list of users have watched.
Blacktwin