Skip to content

Provides an endpoint for Plex Webhooks to send to Domotiz home automation sofware

Notifications You must be signed in to change notification settings

Gerard-Oedzes/domoticz-plex-webhook

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

domoticz-plex-webhook

Provides an endpoint for Plex Webhooks to send to Domotiz home automation software. Supports multiple Plex clients

Example usage is to control lights based on a movie being played, paused or stopped.

Requirements

Setup

git clone https://github.com/corbinmunce/domoticz-plex-webhook.git
cd domoticz-plex-webhook
npm install

Create a 'Dummy' hardware device in Domoticz (if you don't already have one) and then create a 'Text' virtual sensor named Plex.

Edit main.js to match your Domoticz settings:

const domoticzIp = "192.168.5.28"; // Domoticz IP address
const domoticzPort = 8080; // Domoticz Port
players.push({ name: "CORBIN", idx: 132, timer: null }); // Name of your Plex Player and IDX of the Domoticz text device that you have created

Run the script:

node main.js

And then add a webhook https://support.plex.tv/hc/en-us/articles/115002267687-Webhooks in Plex to point to the server your are running main.js from. eg http://192.168.5.28/11000

Once you have verified that it is running correctly from the command line, you can setup to run automatically by adding domoticzPlex to /etc/init.d https://www.linux.com/learn/managing-linux-daemons-init-scripts

About

Provides an endpoint for Plex Webhooks to send to Domotiz home automation sofware

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • JavaScript 84.2%
  • Shell 15.8%