Tautulli

Tautulli is a 3rd party application that you can run alongside your Plex Media Server to monitor activity and track various statistics.

Tautulli

Tautulli is a python based web application for monitoring, analytics, and notifications for Plex Media Server. It includes the following features:

For more information, visit this link.

This section gives you an overview of Tautulli's Initial Setup Wizard and the relevant settings you may be interested in. This assumes the following:

Add Plex Media Server to your Tautulli Instance

Ultra_000147.png

Ultra_000219.png

Installing and Configuring Custom Tautulli Scripts

This guide will show you how to set up Custom Tautulli Scripts. These scripts extend the functionality of your Plex Media Server and give you more flexibility

In this guide, we'll be installing 2 scripts, killstream.py and limiterr.py from blacktwin's JBOPS repository.. We'll be setting up the following:

::: info Note that the scripts in this guide require Plex Pass and will only work on Plex Pass users. :::

Prerequisites

usbdocs@lw975:~$ mkdir -p scripts
usbdocs@lw975:~$ cd scripts
usbdocs@lw975:~/scripts$ pwd
/home7/usbdocs/scripts
usbdocs@lw975:~/scripts$

killstream.py

Downloading The Script
wget https://raw.githubusercontent.com/blacktwin/JBOPS/master/killstream/kill_stream.py
chown $USER:$USER kill_stream.py
chmod a+x kill_stream.py
Configuring Tautulli Notification Agent
Configuration

Script Folder: [output of `pwd`]
Script file: ./kill_stream.py
Description: [Add anything here.]

Triggers

Playback Start
Transcode Decision Change

Conditions

Condition {1}: Video Decision - is - transcode
Condition {2}: Library Name - contains - 4K

Append 4k Library Name with 4k movies/TV Shows in Plex for the second condition to work.

Arguments

Playback Start:

--jbop stream --username {username} --sessionId {session_id} --killMessage 'Please do not transcode 4k. Thanks!'

Arguments

Transcode Decision Change:

--jbop stream --username {username} --sessionId {session_id} --killMessage 'Please do not transcode 4k. Thanks!'

Testing The Script

limiterr.py

::: info This Script is dependent on the timezone of Plex instances. Our slots are hosted in The Netherlands, so its timezone is CET/CEST. Adjust the times as necessary. You may use World Time Buddy to check your local timezone with the slot's timezone. :::

Downloading The Script
wget https://raw.githubusercontent.com/blacktwin/JBOPS/master/killstream/limiterr.py
chown $USER:$USER limiterr.py
chmod a+x limiterr.py
Configuring Tautulli Notification Agent
Configuration

Script Folder: [output of `pwd`]
Script file: ./limiterr.py
Description: [Add anything here.]

Triggers

Playback Start

Conditions

Condition {1}: Current Hour - is - 22 or 23 or 0 or 1

(Value is dependent on your timezone and the slot's timezone.)

Arguments

Playback Start:

--jbop limit --username {username} --sessionId {session_id} --grandparent_rating_key {grandparent_rating_key} --limit plays=3 --delay 60 --killMessage "You sleep bro?"

Testing The Script