A discord rich presence plugin for plex
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>
- Download the latest release, .exe for windows, the other one for Liiiiiiiinux
- put your
.env
in the same directory as where you put the exe - configure tautulli the following way:
Create a MQTT notification on tautulli like the following way:
For all the following subject i use {"test": "test"}
because we don't use it.
{
"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}"
}
{
"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}"
}
{
"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! :)