Program to integrate Plex with Vera (also doubles as an unraid plugin).
Based on the work done by bstascavage https://github.com/bstascavage/plexHue.
This program runs scenes from Vera based on Plex playback. It runs a user defined scene whenever a movie starts, paused or stopped.
- Your Vera Hub up and configured.
- A PlexPass membership (the required API only works when you have PlexPass).
- Unraid or ruby (for standalone mode).
- Download unraid/plexvera.plg and install on unraid /boot/config/plugins (or use UI to install plg file).
server
- IP address of your Plex server. Defaults to localhost
. Optional.
machineIdentifier
- Unique identifier of your Plex client. You can find this looking at <plexserver_ip>:32400/status/sessions. Required.
api_key
- Your Plex API key. This can be found by searching for your device here (it is the 'token' field): https://plex.tv/devices.xml. Required.
hub_ip
- IP addres of your Philips Hue Hub. You can get this by visiting http://www.meethue.com/api/nupnp while on the same network as your hub. Required.
scene_start
- The scene number# you want to run when a video starts.
scene_pause
- The scene number# you want to run when a video is paused.
scene_stop
- The scene number# you want to run when a video stops.
Build image: $ docker build -t /plex-vera .
Run image: $ docker run --net=host -p 32400:32400 -p 3480:3480 -v /config:/config /plex-vera
One liner to stop / remove all of Docker containers:
$ docker stop
And similar for all images: $ docker rmi $(docker images -q)