<%inherit file="base.html"/> <%! import plexpy from plexpy import notifiers available_notification_agents = notifiers.available_notification_agents() %> <%def name="headIncludes()"> <%def name="headerIncludes()"> <%def name="body()">
Settings
% if config['check_github']:
% endif

### Software Updates

Enable Updates

If you have Git installed, allow periodic checks for updates.

% if plexpy.CURRENT_VERSION:

Current version: ${plexpy.CURRENT_VERSION}

% endif

### Display Settings

Date Format

Set your preferred date format. Click here to see the parameter list.

Time Format

Set your preferred time format. Click here to see the parameter list.

### Web Interface

Web interface changes require a restart.

HTTP Host

e.g. localhost or an IP, such as 0.0.0.0

HTTP Port

Port to bind web server to. Note that ports below 1024 may require root.

Launch Browser on Startup

Launch browser pointed to PlexPy, on startup.

Enable HTTPS

Enable HTTPS for web server for encrypted communication.

HTTPS Cert
HTTPS Key

### Authentication

Authentication changes require a restart.

HTTP Username

Username for web server authentication. Leave empty to disable.

HTTP Password

Password for web server authentication. Leave empty to disable.

### API

Enable API

Allow remote applications to interface with PlexPy.

API key

Current API key:
${config['api_key']}

### Plex Media Server

Plex IP or Hostname

IP Address or hostname for Plex Media Server.

Plex Port

Port that Plex Media Server is listening on.

Remote Server

Check this is your Plex Server is not on the same local network as PlexPy.

Force SSL

Force PlexPy to connect to your Plex Server via SSL. Your server needs to have remote access enabled.

### Plex.tv Authentication

PMS Token

Token for Plex.tv authentication.

### Friends List

User list Refresh Interval

The interval (in hours) PlexPy will request an updated friends list from Plex.tv. 1 minimum, 24 maximum.

Refresh user list on startup

Refresh the user list when PlexPy starts.

### Extra Settings

Use BIF thumbs

If you have media indexing enabled on your server, use these on the activity pane.

Homepage Statistics Time Frame

Specify the number of days for the statistics on the home page. Default is 30 days.

### Plex Logs

Logs Folder

Set the folder where your Plex Server logs are. This is required if you enable IP logging.
Click here for help.

### PlexWatch Import Tool

Click here to Import an existing Plexwatch database.

### Monitoring Settings

Monitoring Interval

The interval (in seconds) PlexPy will ping your Plex Server. Min 30 seconds, Recommended 60 seconds.

### History Logging

Log Movies and TV

Keep records of all video items played from your Plex Media Server.

Ignore Interval

The interval (in seconds) PlexPy will wait for a video item to be active before logging it. 0 to disable.

Log Music

Keep records of all audio items played from your Plex Media Server. VERY experimental.

### IP Logging

Enable IP Logging

Enable this to attempt to log the IP address of the user.

### Buffer Warnings

Note: Buffer warnings only work on certain Plex clients. Android and PlexWeb do not report buffer events accurately or at all.

Buffer Threshold

How many buffer events should we wait before triggering the first warning. Buffer events increment on each monitor ping if play state is buffering.

Buffer Wait

The value (in seconds) PlexPy should wait before triggering the next buffer warning. 0 to always trigger.

### Global Notification Toggles

Enable Movie and TV Notifications
Enable Music Notifications

### Notification Tuning

Watched Percent

Set the progress percentage of when a watched notification should be triggered. Minimum 50, Maximum 95.

### Custom Notification Messages

You can set custom formatted text for each type of notification. Click here for a list of available parameters which can be used.

You can also add tags to exclude certain text depending on the media type. Click here to view usage information.

- Playback Start
  - Subject Line

    Set a custom subject line.

    Message Body

    Set a custom body.

- Playback Stop
  - Subject Line

    Set a custom subject line.

    Message Body

    Set a custom body.

- Playback Pause
  - Subject Line

    Set a custom subject line.

    Message Body

    Set a custom body.

- Playback Resume
  - Subject Line

    Set a custom subject line.

    Message Body

    Set a custom body.

- Watched
  - Subject Line

    Set a custom subject line.

    Message Body

    Set a custom body.

- Buffer Warnings
  - Subject Line

    Set a custom subject line.

    Message Body

    Set a custom body.

### Notification Agents

Toggle the desired notification options by clicking the bolt icon and configure it by selecting the settings icon to the right.

% for agent in available_notification_agents:
- % if agent['on_play'] or agent['on_stop'] or agent['on_pause'] or agent['on_resume'] or agent['on_buffer'] or agent['on_watched']: % else: % endif ${agent['name']} % if agent['has_config']: % endif
% endfor

#### Date & Time Format Options

##### Day
DD | Numeric, with leading zeros | 01 to 31
D | Numeric, without leading zeros | 1 to 31
Do | The English suffix for the day of the month | st, nd or th in the 1st, 2nd or 15th.
##### Month
MM | Numeric, with leading zeros | 01 to 31
M | Numeric, without leading zeros | 1 to 31
MMMM | Textual full | January to December
MMM | Textual three letters | Jan to Dec
##### Year
YYYY | Numeric, 4 digits | Eg., 1999, 2003
YY | Numeric, 2 digits | Eg., 99, 03
##### Time
a | am/pm Lowercase | am, pm
A | AM/PM Uppercase | AM, PM
h | Hour, 12-hour, without leading zeros | 1-12
hh | Hour, 12-hour, with leading zeros | 01-12
H | Hour, 24-hour, without leading zeros | 0-23
HH | Hour, 24-hour, with leading zeros | 00-23
mm | Minutes, with leading zeros | 00-59
ss | Seconds, with leading zeros | 00-59
zz | Timezone abbreviation | Eg., EST, MDT ...

#### Fetch Plex.tv Token

This will attempt to fetch your token for you. This will not work on Internet Explorer 9 or lower. PlexPy does not store your username and password.

PMS Username

Username for Plex.tv authentication.

PMS Password

Password for Plex.tv authentication.

#### Notification string substitutions

If a value for a selected parameter cannot be provided nothing will be outputted for it.

{user} | The username of the person streaming.
{server_name} | The name of your Plex Server.
{player} | The name of the device being used for playback.
{platform} | The type of client being used for playback.
{title} | The title of the item being played back.
{show_name} | The title of the TV series being played back.
{episode_name} | The title of the episode being played back.
{album_name} | The title of the album being played back if item is track.
{transcode_decision} | The transcode decisions for the media item.
{year} | The release year for the media item.
{studio} | The studio for the media item.
{content_rating} | The content rating for the media item. E.g. TV-MA, TV-PG, etc.
{summary} | A short plot summary for the media item.
{season_num} | The season number for the media item if item is episode.
{episode_num} | The episode number for the media item if item is episode.
{rating} | The rating (out of 10) for the item.
{duration} | The duration (in minutes) for the item.
{progress} | The last reported offset (in minutes) for the item.
{progress_percent} | The last reported progress percent for the item.

#### Notification exclusion tags

#### Movie Tag <movie></movie>

All text inside a movie tag will only be sent when the media item being played back is a movie.

    Example: {user} has started playing {title} <movie>({year})</movie>

#### TV Tag <tv></tv>

All text inside a tv tag will only be sent when the media item being played back is an episode.

    Example: {user} has started playing {title} <tv>(S{season_num}E{episode_num})</tv>

#### Music Tag <music></music>

All text inside a music tag will only be sent when the media item being played back is a music track.

    Example: {user} has started playing {title} <music>(Track {episode_num})</music>

<%def name="javascriptIncludes()">