Philips hue integration or add-on - Printable Version +- Kodi Community Forum (https://forum.kodi.tv) +-- Forum: Discussions (https://forum.kodi.tv/forumdisplay.php?fid=222) +--- Forum: Hardware (https://forum.kodi.tv/forumdisplay.php?fid=112) +--- Thread: Philips hue integration or add-on (/showthread.php?tid=145178) |
RE: Philips hue integration or add-on - nickr - 2015-02-06 I've only used the setup for turning lights on and off on play/pause /stop. Not done the ambilight. RE: Philips hue integration or add-on - jmcguire525 - 2015-02-06 If the lightstrip works I would just get that, more than one hue bulb is slow to react and ruins the ambilight effect imo. RE: Philips hue integration or add-on - fabd - 2015-02-06 I'm interested in feedback about lighstrip too. For people who are interested, here is how it work for me : - Kodi 14.1 - Zotac Ci540, Processeur dual core Intel Core i5 4210Y (1.5 GHz) - Ambilight mode with 2 bloom. The plug in works fine for me, but i add to change video rendering to Software instead of Hardware rendering with dxva. In the second case Live TV suffered from green screen on some frame. In the software mode, SD video are fine and ambilight is good (even if there is 1 second between the frame analysis and the bloom light) HD video works too but sometimes, don't know why, video seems to be a little slow, some frame are lost. To manage more efficiently the bloom, i setup on my remote (harmony one), 2 shortcut for lighting ON and OFF the buld. I also add a sequence to power off the lamp when the tv goes off. One thing i noticed is when i try to disable the add on, sometime kodi don't react, and i must power off the computer. How to do, to add a submenu in program to enable/disabled the plugin more faster than going in parameter/add/active/service..... ? I will be great to manage the status of the HUE from a sub menu. For people who hesitate to buy Philips HUE, go on, it's very fun and the plug in, even if is not perfect, it's amazing. Sometime there are some good promotion for Philips HUE on AMAZON.CO.UK RE: Philips hue integration or add-on - fabd - 2015-02-06 (2015-02-03, 21:52)hardyt Wrote: Here's a solution for some people who cannot get this to work. Just looking at the code, if i understand you, you add a check to verify if the light are ON or not ? If, not, you switch it on. That's it ? To use your modification, we just have to replace lib/tools.py ? Another question : can someone explain me the advanced function ? I'm french and don't really understand some off these function RE: Philips hue integration or add-on - theSilent - 2015-02-06 (2015-02-06, 14:07)fabd Wrote: - Ambilight mode with 2 bloom. Thanks for your insights! How did you set up 2 blooms? Both behind the TV (in different directions) or somewhere in your room? RE: Philips hue integration or add-on - daweze - 2015-02-06 i use the light strips and an iris and all work well for me. i am running openelec 5.01 kodi 14.1 to disable the plugin i use this python script #!/usr/bin/env python import subprocess proc1 = subprocess.Popen(["curl -s -H \"Accept: application/json\" -H \"Content-type: application/json\" -d '{\"jsonrpc\":\"2.0\",\"method\":\"Addons.SetAddonEnabled\",\"params\":{\"addonid\":\"script.xbmc.hue.ambilight\",\"enabled\":\"toggle\"},\"id\":1}' http://localhost/jsonrpc"], shell=True) to turn light off this python script #!/usr/bin/env python import subprocess proc1 = subprocess.Popen(["curl -X PUT -d \"{\\\"on\\\":false}\" http://you.hue.ip.address/api/your-hue-api-key/lights/1/state"], shell=True) proc2 = subprocess.Popen(["curl -X PUT -d \"{\\\"on\\\":false}\" http://you.hue.ip.address/api/your-hue-api-key/lights/2/state"], shell=True) to turn on this python #!/usr/bin/env python import subprocess proc1 = subprocess.Popen(["curl -X PUT -d \"{\\\"on\\\":true}\" http://you.hue.ip.address/api/your-hue-api-key/lights/1/state"], shell=True) proc2 = subprocess.Popen(["curl -X PUT -d \"{\\\"on\\\":true}\" http://you.hue.ip.address/api/your-hue-api-key/lights/2/state"], shell=True) i control the scripts using some unused buttons on my MCE remote vi the remote.xml. since i use pass thru audio is the volume controls. <volumeplus>System.Exec("/storage/.kodi/userdata/scripts/hue-on.py")</volumeplus> <volumeminus>System.Exec("/storage/.kodi/userdata/scripts/hue-off.py")</volumeminus> <mute>XBMC.RunScript("/storage/.kodi/userdata/scripts/hue-toggle.py")</mute> (2015-02-06, 14:07)fabd Wrote: I'm interested in feedback about lighstrip too. RE: Philips hue integration or add-on - BugRaider84 - 2015-02-07 Can't wait to try it out... RE: Philips hue integration or add-on - fabd - 2015-02-07 (2015-02-06, 22:59)daweze Wrote: i use the light strips and an iris and all work well for me. i am running openelec 5.01 kodi 14.1 Excellent, just what i was looking for. Can you explain me : the script is called hue-toggle.py and you call it with the XBMC.RunScript fonction. But, the subprocess.Popen call a curl function. Is the curl based on your OS or does it depend on KODI. I run kodi on Windows, and don't have curl by default RE: Philips hue integration or add-on - fabd - 2015-02-07 (2015-02-06, 16:10)theSilent Wrote:(2015-02-06, 14:07)fabd Wrote: - Ambilight mode with 2 bloom. Not really behind the TV... I will post a photo next time RE: Philips hue integration or add-on - fabd - 2015-02-07 just try to toggle the addon with curl Under Windows curl -s -H "Accept: application/json" -H "Content-type: application/json" -d '{"jsonrpc":"2.0","method":"Addons.SetAddonEnabled","params":{"addonid":"script.xbmc.hue.ambilight","enabled":"toggle"},"id":1}' http://localhost/jsonrpc Do nothing on the addon :-( RE: Philips hue integration or add-on - daweze - 2015-02-08 my os is Linux so curl is built in per-say, but curl has been ported to windows. you can get it here http://www.paehl.com/open_source/?CURL_7.40.0 http://www.paehl.com/open_source/?download=curl_740_0.zip. copy curl.exe some where in your path like c:\windows RE: Philips hue integration or add-on - fabd - 2015-02-08 yes, i already do it. install curl and then copy and past the command line There is no error, no return, no action on the plugin RE: Philips hue integration or add-on - fabd - 2015-02-08 with your version of curl (i download another 7.4 version, i get this error C:\Users\utilisateur\Desktop\curl_X64_ssl\winssl>curl -s -H "Accept: application/json" -H "Content-type: application/json"-d '{"jsonrpc":"2.0","method":"Addons.SetAddonEnabled","params"{"addonid":"script.xbmc.hue.ambilight","enabled":"toggle"},"id":1}' http://localhost/jsonrpc {"error":{"code":-32700,"message":"Parse error."},"id":null,"jsonrpc":"2.0"} RE: Philips hue integration or add-on - nickr - 2015-02-08 Take a look at the windows curl examples here: http://kodi.wiki/view/HOW-TO:Remotely_update_library#Windows_Command_Line RE: Philips hue integration or add-on - fabd - 2015-02-08 nice link, i've just removed all my video Library :-) (sandbox kodi off course) curl.exe" -i -X POST -d "{\"jsonrpc\": \"2.0\", \"method\": \"VideoLibrary.Clean\", \"id\": \"mybash\"}" -H "content-type:application/json" http:localhost/jsonrpc > NUL 2>&1 i will try with your json query |