Giter VIP home page Giter VIP logo

plex-discord-rich-presence's Introduction

Plex-Discord-Rich-Presence

A discord rich presence plugin for plex

How Do I use it?

You'll need to have a few things ready:

  • Discord!
  • MQTT (I use mosquitto)
  • Tautulli

Create an .env that looks something like this:

DISCORD_CLIENTID=<Your app key, or use 791384816192192523>
MQTT_HOST=mqtt://<Your MQTT Host>
MQTT_USERNAME=<Your MQTT Username>
MQTT_PASSWORD=<Your MQTT Password>
MQTT_TOPIC=<Your MQTT Topic>
  1. Download the latest release
  2. put your .env in the same directory as where you put the exe
  3. configure tautulli the following way:

Create a MQTT notification on tautulli like the following way:

Settings

image

Triggers

image

Conditions

image

Text

For all the following subject i use {"test": "test"} because we don't use it.

Playback start/resume

{
  "state": "Playing",
  "tv_title": "{show_name} - S{season_num00}E{episode_num00}",
  "movie_title": "{title}",
  "type": "{media_type}",
  "poster": "{poster_url}",
  "view_offset": "{view_offset}",
  "duration":  "{duration_ms}"
}

Playback pause

{
  "state": "Paused",
  "tv_title": "{show_name} - S{season_num00}E{episode_num00}",
  "movie_title": "{title}",
  "type": "{media_type}",
  "poster": "{poster_url}",
  "view_offset": "{view_offset}",
  "duration":  "{duration_ms}"
}

Playback stopped

{
  "state": "Stopped",
  "tv_title": "{show_name} - S{season_num00}E{episode_num00}",
  "movie_title": "{title}",
  "type": "{media_type}",
  "poster": "{poster_url}",
  "view_offset": "{view_offset}",
  "duration":  "{duration_ms}"
}

I use nssm.exe to set everything up as a windows service, but if you don't want to do that, that's fine! :)

plex-discord-rich-presence's People

Contributors

atypescriptenjoyer avatar

Stargazers

Jay Ponsford avatar Jonathan Cremin avatar errir avatar RXWatcher avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.