https://github.com/mitchellaw/tautullisessionmanager
A basic script for terminating tautulli/plex sessions along with an error message.
https://github.com/mitchellaw/tautullisessionmanager
Last synced: over 1 year ago
JSON representation
A basic script for terminating tautulli/plex sessions along with an error message.
- Host: GitHub
- URL: https://github.com/mitchellaw/tautullisessionmanager
- Owner: MitchellAW
- License: mit
- Created: 2024-07-13T04:46:22.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2024-07-13T05:00:58.000Z (almost 2 years ago)
- Last Synced: 2025-01-30T12:24:03.045Z (over 1 year ago)
- Language: Python
- Size: 20.5 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Tautulli Session Notifier
This script terminates all running Plex sessions/streams and sends a
customizable error message to the users using the Tautulli API.
I have developed this as a basic script to terminate all sessions and
notify any Plex users currently watching if the battery of my UPS is
low.
## Example
*The error message will appear to the user as something like this:*

## Configuration
1. Create the configuration file:
```sh
cp config/config_example.json config/config.json
```
2. Update the tautulli URL with the url to your Tautulli instance:
e.g. `http://192.168.1.10:8181`
3. Update the API key with your own API key for Tautulli:
This can be found in `Settings -> Web Interface -> API -> API key`
4. Update the message you would like to send after terminating a user's
session.
## Dependencies
*Requires >= Python 3.6+:*
1. Create a virtual environment (Optional):
```sh
python -m venv .venv
```
2. Activate the virtual environment on Linux (Optional):
```sh
source .venv/bin/activate
```
2. Activate the virtual environment on Windows (Optional):
```sh
.venv/Scripts/activate.ps1
```
3. Install the required dependencies:
```sh
pip install -U -r requirements.txt`
````
## Running
Execute the main python script:
```sh
python main.py
```