Giter VIP home page Giter VIP logo

plex-mqtt-connector's Introduction

Plex-Mqtt-Connector

This connector allows to combine MQTT with the webhooks of the Plex Media Server.

Please don't forget to set the ip address of your MQTT-Server!!!


Are you interested in Smart Home?

Visit https://smarthome-kompendium.com for the best overview on the web!


Example

For example you can connect OpenHAB to Plex with this script. Plex will send it's webhooks to your local machine on port 5000. The script will receive this webhooks and publish a part of the content into a topic on your MQTT-Server. Items in your OpenHAB instance are able to show the latest message (player state, title and type of the media).

If you use rules you are able to dim your lights everytime a movie or episode of your favorite series begins. Also you can turn on your lights after the player stopped.

Requirements

You can use this script on your local machine. But this machine has to be turned on everytime you wanna use this function. Otherwise you could use a Raspberry Pi.

Don't forget to install the Python packages and Python itself.

Also you have to install a MQTT-Server on any machine. E. g. OpenHAB is able to work as MQTT-Server.

FAQ

Which is the topic for my clients?

Every client has an unique id. You can find this unique id in your Plex Server or the XML of the devices. You can also use an MQTT-Explorer and search for the id after a message was published into a topic.

Every topic starts with plex/ and contains the id of your client. Foreach information (title and and type) a subtopic is used.

The state of your player will be published into the main topic (plex/[playerid]). The topic for your title is called plex/[playerid]/title The topic for your type is called plex/[playerid]/type

Where to configure my webhooks?

You need a Plex Pass to configure webhooks on your server.

Every webhook should be send to: http://[IP-ADDRESS]:5000/webhook


Clone or fork this repo to add functions.

And don't forget to take a look at Hobbyblogging. Thank you!

plex-mqtt-connector's People

Contributors

lkn94 avatar lviss avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  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.