•   
  • 1
  • 6
  • 7
  • 8(current)
  • 9
  • 10
  • 29
  •   
Philips hue integration or add-on
I've only used the setup for turning lights on and off on play/pause /stop. Not done the ambilight.
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Reply
If the lightstrip works I would just get that, more than one hue bulb is slow to react and ruins the ambilight effect imo.
Reply
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
Reply
(2015-02-03, 21:52)hardyt Wrote: Here's a solution for some people who cannot get this to work.

Discussion: this plugin requires the lights to be in an {"on":true} state before playback begins. The plugin is also not nice in that it does not restore the lights to their pre-video settings.

Impact: My lights are normally off, so the plugin appeared to not work. The plugin would also make the lights garishly bright, washed out green at the stop of the video.

Suggested improvement: I made some modifications so it now functions in my particular case. The changes begin with #th comments. https://github.com/hardyt/script.xbmc.hue.ambilight. Ambilight works when I play video. The lights are returned to their original state on stop, pause, or end. I may take the time to configure this as an option, but probably not anytime soon.

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
Reply
(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?
Reply
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-a...ts/1/state"], shell=True)
proc2 = subprocess.Popen(["curl -X PUT -d \"{\\\"on\\\":false}\" http://you.hue.ip.address/api/your-hue-a...ts/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-a...ts/1/state"], shell=True)
proc2 = subprocess.Popen(["curl -X PUT -d \"{\\\"on\\\":true}\" http://you.hue.ip.address/api/your-hue-a...ts/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.

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
Reply
Can't wait to try it out... Big Grin
Reply
(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
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)
<mute>XBMC.RunScript("/storage/.kodi/userdata/scripts/hue-toggle.py")</mute>

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
Reply
(2015-02-06, 16:10)theSilent Wrote:
(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?

Not really behind the TV... I will post a photo next time
Reply
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 :-(
Reply
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/?downlo..._740_0.zip.

copy curl.exe some where in your path like c:\windows
Reply
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
Reply
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"}
Reply
Take a look at the windows curl examples here:

http://kodi.wiki/view/HOW-TO:Remotely_up...mmand_Line
If I have helped you or increased your knowledge, click the 'thumbs up' button to give thanks :) (People with less than 20 posts won't see the "thumbs up" button.)
Reply
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
Reply
  •   
  • 1
  • 6
  • 7
  • 8(current)
  • 9
  • 10
  • 29
  •   



Logout Mark Read Team Forum Stats Members Help
Philips hue integration or add-on0
This forum uses Lukasz Tkacz MyBB addons.