This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from email.mime.text import MIMEText | |
import email.utils | |
import smtplib | |
import sys | |
# Arguments passed from PlexPy | |
# {show_name} {episode_name} {season_num} {episode_num} | |
show_name = sys.argv[1] | |
# You can add more arguments if you want more details in the email body | |
# episode_name = sys.argv[2] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### WARNING: This script has not been tested! ### | |
# 1. Set api_sql = 1 in the config.ini file. | |
# 2. Install the requests module for python. | |
# pip install requests | |
# 3. Use some method to run the script on a schedule. | |
import requests | |
## EDIT THESE SETTINGS ## |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# -*- coding: utf-8 -*- | |
''' | |
Description: Send a Tautulli notification when disk usage exceeds a threshold. | |
Author: /u/SwiftPanda16 | |
Requires: psutil, requests | |
Tautulli script trigger: | |
* Notify on recently added |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Written by pmow/Hellowlol | |
# Upload to Gist by JonnyWong16 | |
# For this video transcode alert script, you should select the script for action types where it would be useful: | |
# Playback Start and Playback Resume, for example. | |
# Under Settings > Notifications > Scripts, set the parameters that should get passed to the script. | |
import sys | |
import requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# Written by pmow | |
# Upload to Gist by JonnyWong16 | |
# For this video transcode alert script, you should select the script for action types where it would be useful: | |
# Playback Start and Playback Resume, for example. | |
# Under Settings > Notifications > Scripts, set the parameters that should get passed to the script. | |
## Telegram notification basic script | |
### Based on Matriphe's at https://gist.github.com/matriphe/9a51169508f266d97313 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import platform | |
import requests | |
from uuid import getnode | |
''' | |
Available options to create a movie library: | |
agent: com.plexapp.agents.imdb # Freebase | |
com.plexapp.agents.themoviedb # The Movie Database | |
com.plexapp.agents.none # Personal Media |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. Install the requests module for python. | |
# pip install requests | |
# 2. Add script arguments in PlexPy. The following script arguments are available by default. More can be added below. | |
# -ip {ip_address} -u {user} -mt {media_type} -t {title} -pf {platform} -pl {player} -da {datestamp} -ti {timestamp} | |
import argparse | |
import requests | |
import sys | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
### WARNING: This script has not been tested! ### | |
# 1. Install the requests module for python. | |
# pip install requests | |
# 2. Add script arguments in PlexPy. | |
# {user} {action} | |
import requests | |
import sys | |
user = sys.argv[1] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 1. Install the paramikio module for python. | |
# pip install paramiko | |
# 2. Edit the SSH details below. | |
import paramiko | |
import sys | |
## EDIT SSH DETAILS ## | |
SSH_ADDRESS = "192.168.0.1" |
OlderNewer