Giter Site home page Giter Site logo

dim-my-lights-for-plex's People

Contributors

spacek33z avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

dim-my-lights-for-plex's Issues

Possible to include sensors to be disabled during playback

Would like to be able to have not only the lights to go on/off, but for sensors to be disabled/enabled when starting/stopping playback.

Currently doing this via Tautulli and a script that is doing a POST to the hub... but would like to migrate purely to webhooks to control sensors and lights in one hit (at the moment using HelloHue plugin, but this will go when Plex removes the ability to use Plugins in the future).

Install instructions are outdated.

For the next variables use https://account.meethue.com/bridge to get the internal IP of the bridge, or go to https://discovery.meethue.com/ or find the internal IP of the bridge from your router. From a computer on the same network as your bridge go to: https://<bridge.ip.address>/debug/clip.html
We will use the API Debugger to get the variables.

HUE_TOKEN:

    URL: /api 
    Body: {"devicetype":"dim_my_lights#plex"}
    POST

Screen Shot 2020-03-11 at 3 33 49 PM

The response description will say "Link button not pressed". Press the button on your bridge, 
and click the POST button again. The new response will say username: <token>. This is the 
value you want to use as the HUE_TOKEN. We will also use this value to get the next few 
variables.

HUE_SCENE_THEATER:

    URL: /api/<token>/scenes
    BODY: 
    GET
In the list find the name of the scene you want to use when plex is playing, right above that is 
an the ID of the scene.
Scene ID---> "XTbiuYcEva3weNT": {
	           "name": "Savanna sunset",  <--- Scene Name
	           "type": "GroupScene",
	           "group": "1",
	           "lights": [
		              "1"
	           ],

HUE_SCENE_DIMMED:
Same thing as above, in the list of scenes find the name of the scene you want when plex is
paused/stopped.

HUE_GROUP_ID:

    URL: /api/<token>/groups
    BODY: 
    GET
In the list of groups, find the name of the group you want to use, right above that is the 
group ID.
Group ID ----> "1": {
	              "name": "Theater", <-----Group Name
	              "lights": [
		                 "1"
	              ],

Also, you are able to hit the API of the hue bridge directly by going to
https://bridge.ip/api//
There are a lot of things to do in there. I'm not a node expert, but I might try to see what I could do.

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.