Coder Social home page Coder Social logo

script.xbmc.hue.ambilight's Introduction

script.xbmc.hue.ambilight

Screenshot

An XBMC add-on that controls Philips Hue lights. In "Theatre mode" the add-on dims the the Philips Hue lights as soon as a movie starts playing, and turns the lights back on once the movie is done. "Ambilight mode" turns your Philips Hue lights in a room-sized ambilight

No longer maintained

This project is no longer maintained. Feel free to fork away and have fun!

You might be interested in these forks that are still being developed:

Want your project added here? You can contact me on my Github profile page.

Installation

The add-on depends on the XBMC add-on "requests" for the ambilight mode.

XBMC add-on script.module.requests

  • Download the add-on as a ZIP file from https://github.com/beenje/script.module.requests
  • (Right click on the "ZIP" icon and select "Download Linked File").
  • Open XBMC
  • Go to System -> Settings -> Add-ons -> Install from zip file
  • Select the zip file.

XBMC add-on script.xbmc.hue.ambilight

  • Download the add-on as a ZIP file from the top of this page
    • (Right click on the "ZIP" icon and select "Download Linked File")
  • Open XBMC
  • Go to System -> Settings -> Add-ons -> Install from zip file
  • Restart XBMC and configure the add-on:
  • System -> Settings -> Add-ons -> Enabled add-ons -> Services -> XBMC Philips Hue
  • Run Start auto discovery of bridge IP and User.

Note for Raspberry Pi users:

  • Save the add-on configuration by exiting XBMC before shutting down the Pi completely
  • Ambilight mode doesn't work on a Raspberry Pi due to the way it renders video

Release history

  • 2014-01-12 v 0.6.2 Minor improvements
  • 2013-07-13 v 0.6.0 General improvements all around (by robwalch)
  • 2013-05-25 v 0.5.0 Debug logging, livingwhite lights
  • 2013-05-04 v 0.4.0 Advanced settings
  • 2013-04-25 v 0.3.6 Custom dimmed brightness in theatre mode
  • 2013-04-02 v 0.3.4 Ambilight is more responsive
  • 2013-04-01 v 0.3.3 Rename to script.xbmc.hue.ambilight
  • 2013-02-25 v 0.3.1 Improved handling for grouped lights
  • 2013-01-27 v 0.1.0 Initial release

script.xbmc.hue.ambilight's People

Contributors

cees-elzinga avatar robwalch avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

script.xbmc.hue.ambilight's Issues

Hub IP address changes

Plugin stopped working after Hub was assigned a new IP address from DHCP. Had to default settings, save then redo auto-config to get the new IP.

I've assigned the Hub's Mac Address a static IP on my network to keep it from happening again, but there might be a lot of other users who run into this issue.

making a group gives a error

trying to make a group but i'm getting a error hope someone can help me with it.
using windows:
opened a CMD
typed:
C:\Users\TRaSH>curl --request POST "http://IP-BRIDGE/api/userid/groups" --data '{"name":"Achter","lights":["3", "4"]}
[{"error":{"type":2,"address":"/groups","description":"body contains invalid json"}}]curl: (3) [globbing] unmatched close brace/bracket at pos 2
want to dim the 2 lights in the back they are on ID 3 and 4

Theatre mode only for tv-series and movies

Can you add some configuration to use theatre mode only for tv-series and movies, not for streams (like Journaal24 or Xot) or certain custom directories (like kids movies)..

ZeroDivisionError in default.py on Fire TV on playback

Hi,

on my Fire TV the ambilight function does not work.
I can connect to the bridge and the inital blink also works well.
But as soon as I start a movie the script fails with an "ZeroDivisionError"

Versioninformation

Kodi (14.1 Git:2015-01-30-38e4046-dirty)
Kodi compiled Jan 30 2015 by GCC 4.8.0 for Android ARM 32-bit API level 14 (API level 14)
Running on Amazon AFTB with Android 4.2.2 API level 17

Logfile

ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
     - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
    Error Type: <type 'exceptions.ZeroDivisionError'>
    Error Contents: float division
    Traceback (most recent call last):
      File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.xbmc.hue.ambilight-master/default.py", line 466, in <module>
        run()
      File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.xbmc.hue.ambilight-master/default.py", line 383, in run
        hsvRatios = screen.spectrum_hsv(screen.pixels, screen.capture_width, screen.capture_height)
      File "/storage/emulated/0/Android/data/org.xbmc.kodi/files/.kodi/addons/script.xbmc.hue.ambilight-master/default.py", line 352, in spectrum_hsv
        overall_value = v / float(i)
    ZeroDivisionError: float division
    -->End of Python script error report<--

Feature Request: Slideshow support

The ambilight feature is less usable with movies that switch scenes rapidly. It would be perfect for a slideshow though where the image stays on the screen for an extended period of time. Any plans for slideshow support?

XBMC 13 - Dependencies not met

I tried to install the ambilight script under XBMC 13 on OS X Mavericks.
But when I click the package, XBMC tell's me Dependencies not met.

Is this a known problem?

Thanks,
Danton-

Compatible with G-Box M2?

I've had limited success getting the plugin to work with a G-Box M2. Anyone tested or have any suggestions? When the video playback starts, the lights dim, but never cycle colors. The lights return to previous setting when the video completes, so I know the box is talking to the lights, just not 100%.

Thoughts?

Ambilight and theatre

Hi!

Would it be possible to have an option to choose some lights to be in theatre mode, and some in ambilight.

I have some lights in the livingroom, and i would like some to turn of when I start a movie, and the one behind the TV to go ambilight,

Is this possible?

Only enable add-on at night

Feature request from blog by "Jeremy":

Any chance we could get an update for time of day settings? For example, I would like to only engage the lights after let’s say 9pm because if I’m watching something during dinner earlier in the evening I have to disable the script every time so it doesn’t keep playing with my lights. Maybe I’m the only one that would use this feature though but just thought it doesn’t hurt to ask.

Option to switch on/off lights on plugin start/stop

I would like for the plugin to turn on/off my bulbs when the plugin starts/stops. Ideally you could set this to either all or just a group of lights. It could also be linked in with the custom dim/undim brightness/colors settings or if these are unset just use the hue's default settings.

This makes sense especially if you have a dedicated set of bulbs just for your HTPC.

Kodi RC3 with Hue playback loses signal

Hi,

I recently updated to Kodi RC3 and now I'm having problems with playing videos. As soon as I start a video I'm getting these 5sec black screens. It's like the TV loses the whole signal because the TV shows me the input channel and resolution in the corner after each black screen. Audio is working all the time.

I'm not having this issue with the plain Hue-addon, only with this Ambilight-addon. I'm normally using the theatre mode but it is the same with ambilight mode.

Can you help with this?

Br,
Tserppa

switch of all lights when movie starts and ambilight

Hi, I’m not very talented in scripting, but is there a way to combine both modes together?
I have 6 bulbs in my living room, and configured them in 2 groups, one group with all bulbs from this room an one group of 2 bulbs for ambilight. My idea was to switch of all lights when movie starts and reactivate the 2 ambilights. Is this possible?
Thanks
Kai

Enable/disable from home screen

Request from blog

"
Is there a way this could be a listed as a program rather than a service? it would just be easier because i can then add a shortcut in the main menu rather than having to go to settings>add-ons>enabled>Services if i want to turn the feature on or off.
"

Look into options to enable/disable the add-on from the home-screen

Script Error

I get this error all the time I enable the plugin

20:04:23 T:140521322309376 NOTICE: XBMC Hue: Service started
20:04:23 T:140521322309376 ERROR: EXCEPTION Thrown (PythonToCppException) : –>Python callback/script returned the following error<–
– NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type:
Error Contents: (‘hue’,)
Traceback (most recent call last):
File “/storage/.xbmc/addons/script.xbmc.hue.ambilight-master/default.py”, line 295, in
hue = Hue(settings, args)
File “/storage/.xbmc/addons/script.xbmc.hue.ambilight-master/default.py”, line 86, in init
self.update_settings()
File “/storage/.xbmc/addons/script.xbmc.hue.ambilight-master/default.py”, line 162, in update_settings
self.settings.undim_hue,
File “/storage/.xbmc/addons/script.xbmc.hue.ambilight-master/resources/lib/tools.py”, line 79, in init
self.get_current_setting()
File “/storage/.xbmc/addons/script.xbmc.hue.ambilight-master/resources/lib/tools.py”, line 97, in get_current_setting
“hue”: j['state']['hue'],
KeyError: (‘hue’,)
–>End of Python script error report<–
20:04:23 T:140523914131264 DEBUG: —— Window Init (DialogKaiToast.xml) ——

It's seems that the auto registration doen'st work but I get a username but everytime is start sbmc or restart the script the error appears .

Probs with blue with the hue LED strips

Hi and sorry for my bad english :-)
i love your addon but i got some probs mit the led lightstrips.
they cant display blue with the addon :-(
my bloom lights works perfekt but the strips dosent work right.
the try to mix blue from green and red without tu use the blue led´s

Works on Raspberry Pi 2 with OpenElec and Kodi 14.1 and 14.2b

Hi --

I just wanted to mention that the script works fine (I had to manually set the bridge IP and create a user through the Hue API myself though) on my Raspberry PI 2 running OpenElec (Kodi 14.1 and 14.2 beta). I'm using 2 Philips Bloom Hue lights.

Featurerequest: Mixed mode

Hi,

i would love to see ambilight and on pause or stop theater mode so that after all, all my lights are on and white

think you get it, didn't you?

best regards

Override Hue Colors: Back to previous

I really like your addon and I think the override hue colors are great. But it would be better if you can only choose to override the dim color on playback. So that, once the playback stops, the color goes back to whatever color you had before starting the playback.

There's no option available now to only override the dim color.

Only getting 3 colours

Hi there,
I love the idea of your app, and have it installed on my minix 8h+ - I have 2 hue bulbs, 2 hue lux bulbs and a light strip.

I've installed both parts of your plugin, set it to 3 lights, and have chosen the 2 hue bulbs and the light strip - the lux bulbs are just to dim the back lights using my phone app.

When the hue addon starts, the lights flash, and the hub and connected lights seem to be getting picked up, but when I start a movie, I get 3 different colours, blue, green and purple, and they don't change ;(

Any idea what might be going wrong, or how I might go about getting this wonderful new toy working as it should?

Thanks a lot.

J

error when trying to find bridge automatically

I am not able to connect to the bridge, not with ip and a user thats already registered or with the auto bridge function.

ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.ValueError'>
Error Contents: invalid literal for int() with base 10: ''
Traceback (most recent call last):
File "C:\Users\Aleksander\AppData\Roaming\XBMC\addons\script.xbmc.hue.ambilight-master\default.py", line 454, in
settings = settings()
File "C:\Users\Aleksander\AppData\Roaming\XBMC\addons\script.xbmc.hue.ambilight-master\resources\lib\settings.py", line 8, in init
self.readxml()
File "C:\Users\Aleksander\AppData\Roaming\XBMC\addons\script.xbmc.hue.ambilight-master\resources\lib\settings.py", line 20, in readxml
self.group_id = int(addon.getSetting("group_id"))
ValueError: invalid literal for int() with base 10: ''
-->End of Python script error report<--

Script failed error that I cannot resolve

Hello, I'd like to say first and foremost that I love the idea behind this and actually got to play with the addon for a bit, however it stopped working suddenly. It would throw a "script failure: Xbmc philips Hue"

The auto configure worked the first time just fine, however ever since the script failure message I have not gotten it to work again.

I have tried uninstalling both the hue addon and the requests.master. Deleting both and re installing per your instructions, but the result is the same.

I have even uninstalled my xbmc 13 and installed Kodi's latest stable release 14, however I get the same error. It is almost like something outside of the addon has changed.

the following error is always found in the kodi logs

22:24:12 T:1780 NOTICE: XBMC Hue service started, version: 0.6.2
22:24:12 T:1780 NOTICE: XBMC Hue: DEBUG class Hue: flashing lights
22:24:12 T:1780 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.TypeError'>
Error Contents: 'NoneType' object has no attribute 'getitem'
Traceback (most recent call last):
File "C:\Users\XBMC\AppData\Roaming\Kodi\addons\script.xbmc.hue.ambilight-master\default.py", line 462, in
hue = Hue(settings, args)
File "C:\Users\XBMC\AppData\Roaming\Kodi\addons\script.xbmc.hue.ambilight-master\default.py", line 121, in

I am not sure what to do with this snipit tho I am sure it is telling me exactly what is wrong.

Any help would be much appreciated.

Thanks!

HueAmbilight Script error

Update:
Turned off the Flashlights setting to surpress the error and plugin then works.

Ambilight plugin does not work, logfile shows following:
Note other Hue plugin where bulbs are dimmed on startup do seem to work correctly.

22:25:36 T:2838436720 NOTICE: -->Python Interpreter Initialized<--
22:25:36 T:2838436720 NOTICE: XBMC Hue service started, version: 0.6.0
22:25:36 T:2838436720 NOTICE: XBMC Hue: DEBUG class Hue: update settings
22:25:36 T:2838436720 NOTICE: XBMC Hue: DEBUG bridge_ip: 10.0.0.2
bridge_user: d3e55f3666016cc15470bc3a43676535
mode: 0
light: 3
light1_id: 1
light2_id: 2
light3_id: 3
group_id: 0
misc_initialflash: True
dimmed_bri: 50
undim_bri: 203
dimmed_hue: 22755
override_hue: False
undim_hue: 22755
ambilight_dim: False
ambilight_dim_group: 0
ambilight_min: 0
ambilight_max: 228
color_bias: 18
debug: True
22:25:36 T:2838436720 NOTICE: XBMC Hue: DEBUG creating Light instances
22:25:36 T:2838436720 NOTICE: XBMC Hue: DEBUG class Hue: flashing lights
22:25:36 T:2838436720 NOTICE: XBMC Hue: DEBUG set_light: 1: {"on":true,"bri":50,"transitiontime":4}
22:25:36 T:2838436720 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.KeyError'>
Error Contents: ('hue',)
Traceback (most recent call last):
File "/home/paul/.xbmc/addons/script.xbmc.hue.ambilight-master/default.py", line 454, in
hue = Hue(settings, args)
File "/home/paul/.xbmc/addons/script.xbmc.hue.ambilight-master/default.py", line 119, in init
self.flash_lights()
File "/home/paul/.xbmc/addons/script.xbmc.hue.ambilight-master/default.py", line 126, in flash_lights
self.light[0].flash_light()
File "/home/paul/.xbmc/addons/script.xbmc.hue.ambilight-master/resources/lib/tools.py", line 160, in flash_light
self.brighter_light()
File "/home/paul/.xbmc/addons/script.xbmc.hue.ambilight-master/resources/lib/tools.py", line 181, in brighter_light
data += ',"hue":%s' % self.start_setting['hue']
KeyError: ('hue',)
-->End of Python script error report<--

Auto detection doesnt work

Hi!

Ive used you're feature for a while, suddenly it´s stopped working.
I think there are two things that might have happened between working and not working.

  1. I could have updated to Kodi
  2. I have change my router for a new one.

Could this things have something to do with the script not working?

When I try to auto detect the bridge it just start and the the message to press bridge button doesn't apear.

Happy for some help.

//Magnus

Blank Screen (open elec 5.0.8 - Kodi 14.2 on Cuboxi4pro)

I recently updated my Cubox-i4 pro to openelec 5.0.8 - (kodi helix 14.2).
With this build i got blank screen (but audio) when i start a movie. After loosing control of the box when this happens, the only way was to unplug power.
(Unfortunately the whole partition on the SD-card corrupts on doing that and i had to reinstall kodi on the box.).
With deactivated Hue Ambilight plugin this error does not appear. (the only open elec version for me which works is 5.0.5 (imx6). I use the newest PhilippsFirmware and two blooms. (the error happens also when i use an iris-lamp instead of bloom... therefore i don't think it is a problem whith specific lamps.

Is there a way to fix that problem?

Differentiate between movie genres

request from blog:

[..] so that lights would dim on movies only and not tv. Dunno if thats even technically feasible. If it was, how about if it picked a custom scene based on movie genre? e.g. white/blue for drama, red for horror etc? Apologies if this is just pie in the sky stuff, but maybe some food for thought!?!?

Undim does not turn off the lights

Report from the blog:

Problem now is lights are dimmed and not off like before. Which setting I have to lower that lights are off? My setting now is standard setting, dimmed 0, undimmed 80, dimmed hue 22???, undimmed hue 22???.

Unable to replicate so far, awaiting more details

Hue light to 100% brightness

First thanks for the nice addon, but I have a weird problem.
At the moment I have 1 Hue light ans 2 living colors (bloom and iris).
If I use the theatre mode all the lights dimmed to 10% if the movie starts, but sometimes the Hue light only switch to 100% after some time.
If I pause the movie the lights go back to the start brightness and if I start again the lights dim again to 10% and after sometime the same problem with the Hue light.
Do you know what the problem is?

Bulb jumps to 100% suddenly

Hi there!

Thanks for creating such a great plugin for xbmc! It just feels like the cinema now!

I'm trying to deal with a strange problem which allways occurs when using the plugin. After some time one bulb suddenly jumps to 100% and white. When I pause the movie then and resume it goed back to his dimmed stage and color.

The setup:

Windows 7 with XBMC 12
Starter kit with three lights
1 added living colors

  • It happens randomly but allways a few times in an hour
  • for 90% of the time it's the same bulb but sometimes one of the others
  • It's never the living color lamp
  • It never happens when using the lamps with other apps like ipad or android app.

What could this be? I'm really into solving this because it's such a nice effect ;-)

With kind regards,

Jimmy

script fails, light3_id

hey there, i'm using the hue ambilight-script (+requests) with kodi beta 5 manually
user: newdeveloper and the script fails, something about light3_id.

it worked about two minutes a few days ago, then failed, restarted everything, hue switched ip from 1.2.3.57 to 1.2.3.52 but manually changing the idea didn't help
any ideas?

21:24:01 T:10496 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.ValueError'>
Error Contents: invalid literal for int() with base 10: ''
Traceback (most recent call last):
File "C:\Users\Christian\AppData\Roaming\Kodi\addons\script.xbmc.hue.ambilight-master\default.py", line 454, in
settings = settings()
File "C:\Users\Christian\AppData\Roaming\Kodi\addons\script.xbmc.hue.ambilight-master\resources\lib\settings.py", line 8, in init
self.readxml()
File "C:\Users\Christian\AppData\Roaming\Kodi\addons\script.xbmc.hue.ambilight-master\resources\lib\settings.py", line 19, in readxml
self.light3_id = int(addon.getSetting("light3_id"))
ValueError: invalid literal for int() with base 10: ''
-->End of Python script error report<--

Support for Living Whites Plug

If i try to dim only one of my LW plug in Theatre mode i get:

16:46:58 T:2810977088  NOTICE: XBMC Hue: DEBUG creating Light instances
16:46:59 T:2810977088  NOTICE: XBMC Hue: DEBUG class Hue: flashing lights
16:46:59 T:2810977088  NOTICE: XBMC Hue: DEBUG set_light: 5: {"on":true,"bri":0,"transitiontime":4}
16:46:59 T:2810977088  NOTICE: XBMC Hue: DEBUG set_light: 5: {"on":false}
16:46:59 T:2810977088   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.KeyError'>
                                            Error Contents: ('hue',)
                                            Traceback (most recent call last):
                                              File "/storage/.xbmc/addons/script.xbmc.hue.ambilight-master/default.py", line 454, in <module>
                                                hue = Hue(settings, args)
                                              File "/storage/.xbmc/addons/script.xbmc.hue.ambilight-master/default.py", line 119, in __init__
                                                self.flash_lights()
                                              File "/storage/.xbmc/addons/script.xbmc.hue.ambilight-master/default.py", line 126, in flash_lights
                                                self.light[0].flash_light()
                                              File "/storage/.xbmc/addons/script.xbmc.hue.ambilight-master/resources/lib/tools.py", line 160, in flash_light
                                                self.brighter_light()
                                              File "/storage/.xbmc/addons/script.xbmc.hue.ambilight-master/resources/lib/tools.py", line 181, in brighter_light
                                                data += ',"hue":%s' % self.start_setting['hue']
                                            KeyError: ('hue',)
                                            -->End of Python script error report<--

Version: 0.6.0
Settings:

    <setting id="ambilight_dim" value="false" />
    <setting id="ambilight_dim_group" value="0" />
    <setting id="ambilight_info" value="" />
    <setting id="ambilight_max" value="100" />
    <setting id="ambilight_min" value="50" />
    <setting id="bridge_ip" value="192.168.178.xxx" />
    <setting id="bridge_user" value="xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx" />
    <setting id="color_bias" value="36" />
    <setting id="debug" value="true" />
    <setting id="dimmed_bri" value="50" />
    <setting id="dimmed_hue" value="22755" />
    <setting id="discover_bridge" value="" />
    <setting id="group_id" value="0" />
    <setting id="light" value="1" />
    <setting id="light1_id" value="5" />
    <setting id="light2_id" value="2" />
    <setting id="light3_id" value="3" />
    <setting id="misc_initialflash" value="false" />
    <setting id="mode" value="1" />
    <setting id="override_hue" value="false" />
    <setting id="override_undim_bri" value="true" />
    <setting id="undim_bri" value="75" />
    <setting id="undim_hue" value="22755" />

Instantiating addon using automatically obtained id of "script.xbmc.hue.ambilight" dependent on version 2.1.0 of the xbmc.python api

I'm getting this error "Instantiating addon using automatically obtained id of "script.xbmc.hue.ambilight" dependent on version 2.1.0 of the xbmc.python api" in the debug when trying to automatically configure.

Any ideas? Let me know what additional information you need!

22:43:53 T:3288 DEBUG: LocalizeStrings: no strings.po file exist at C:\Users\rubix\AppData\Roaming\XBMC\addons\script.xbmc.hue.ambilight-master\resources\language\English, fallback to strings.xml
22:43:55 T:3288 DEBUG: Keyboard: scancode: 48, sym: 0111, unicode: 0000, modifier: 0
22:43:55 T:3288 DEBUG: CApplication::OnKey: up (f080) pressed, action is Up
22:43:55 T:3288 DEBUG: Keyboard: scancode: 48, sym: 0111, unicode: 0000, modifier: 0
22:43:55 T:3288 DEBUG: CApplication::OnKey: up (f080) pressed, action is Up
22:43:56 T:3288 DEBUG: Keyboard: scancode: 50, sym: 0112, unicode: 0000, modifier: 0
22:43:56 T:3288 DEBUG: CApplication::OnKey: down (f081) pressed, action is Down
22:43:57 T:3288 DEBUG: Keyboard: scancode: 1c, sym: 000d, unicode: 000d, modifier: 0
22:43:57 T:3288 DEBUG: CApplication::OnKey: return (f00d) pressed, action is Select
22:43:57 T:3288 INFO: initializing python engine.
22:43:57 T:3288 DEBUG: new python thread created. id=9
22:43:57 T:3676 NOTICE: Thread XBPyThread start, auto delete: false
22:43:57 T:3676 DEBUG: Python thread: start processing
22:43:57 T:3676 NOTICE: -->Python Interpreter Initialized<--
22:43:57 T:3676 DEBUG: XBPyThread::Process - The source file to load is C:\Users\rubix\AppData\Roaming\XBMC\addons\script.xbmc.hue.ambilight-master\default.py
22:43:57 T:3676 DEBUG: XBPyThread::Process - Setting the Python path to C:\Users\rubix\AppData\Roaming\XBMC\addons\script.xbmc.hue.ambilight-master;C:\Users\rubix\AppData\Roaming\XBMC\addons\script.module.simplejson\lib;C:\Program Files (x86)\XBMC\addons\script.module.pil\lib;C:\Users\rubix\AppData\Roaming\XBMC\addons\script.module.requests-master\lib;C:\Program Files (x86)\XBMC\system\python\DLLs;C:\Program Files (x86)\XBMC\system\python\Lib;C:\Program Files (x86)\XBMC\python26.zip;C:\Program Files (x86)\XBMC\system\python\lib\plat-win;C:\Program Files (x86)\XBMC\system\python\lib\lib-tk;C:\Program Files (x86)\XBMC;C:\Program Files (x86)\XBMC\system\python;C:\Program Files (x86)\XBMC\system\python\lib\site-packages;
22:43:57 T:3676 DEBUG: XBPyThread::Process - Entering source directory C:\Users\rubix\AppData\Roaming\XBMC\addons\script.xbmc.hue.ambilight-master
22:43:57 T:3676 DEBUG: Instantiating addon using automatically obtained id of "script.xbmc.hue.ambilight" dependent on version 2.1.0 of the xbmc.python api
22:43:57 T:3676 NOTICE: XBMC service started, version: 0.6.2

Raspberry Pi issues

From README.md

Ambilight mode doesn't work on a Raspberry Pi due to the way it renders video

Could you explain it a bit, I was going to do a Raspberry setup until I stumbled upon this comment

Undim to last known hue and brightness

Request from the blog:

I was also wondering if it was possible to make an option to disable the hue selector in the advanced menu so it just stays as the default colour. Still an amazing app though.

[..]

The colour my lights are when I start the application. in the advanced setting there’s an option now to change the hue colour when it dims and comes back up but I preferred it in 3.8 where it would just dim the hue colour I already had. So I was wondering if that feature could be optional.

Set lights to a colour at start of playback?

Hi there,

I know that the Ambilight won't work with the Raspberry Pi, but that it does dim the lights when the playback starts.
Is there however, a way to set the colour of the lights, rather than just switch them all off?
E.G. As playback starts, the Hue is set to "Movie Mode" or something?

Option to work via JointSpace API

http://jointspace.sourceforge.net/projectdata/documentation/jasonApi/1/doc/API-Method-ambilight-processed-GET.html

The idea is to replace the hue+ambilight app that you have to run on a smartphone for this feature to work with Philips TVs (all ambilight models released after 2011 with JointSpace API).

I understand that it may be of a low priority in the context of this plug-in as it would be useful for a limited amount of the hardware owners, also it might be a better idea to implement it as a standalone daemon, rather than a plug-in for XBMC (so that it works no matter what app or input source you are using).

It's just an idea to consider and the option that would be appreciated by ambilight TV users. Smartphone battery would not be drained and you will not have to run/stop the app on a phone while watching the movie, a plugin can do it automatically.

Probably it can also reduce the lag as the standalone app can query API and control the lamps with a higher frequency than the smartphone app (and using a wired connection). Querying API is also faster and less CPU intensive than processing a screen capture.

not working with Live TV

I use OpenELEC 3.1.5 (Frodo 12.1) on AppleTV 1.
The script works fine if i watch movie online or from NAS.
Thank you, nice work!

But if i watch Live TV (vdr, plugin xvdr) the ambilight wont work.
Is there another API for PVR?

I've read that boblight works with Live TV an ATV....

regards

Feature request: Option to turn off with screensaver

As I've got my htpc always on, but don't want to manually turn off my hue lights - I wanted to have the lights turn off with my screensaver.

I took a crack at it - not really familiar with all this so may be more efficient way to do - but thought it would be useful to post:

Added to default.py
line 44:
def onScreensaverActivated(self):
state_changed("saveron",5)

def onScreensaverDeactivated(self):
state_changed("stopped",5)

then line 442:
if state == "saveron":
logger.debuglog("dimming lights for screensaver")
hue.dim_lights()

Obviously would need option to turn off/on this feature.

Slightly related is having the lights turn on/off when Kodi starts/stops, so whenever Kodi is active the lights are on, and when it's not they're off - issue already exists here:
#19

playercorefactory.xm

This was working fine on my galaxy note 10.1 2014. Then I installed playercorefactory to stream to my Xbox one and now the hue ambilight script fails on startup of kodi?

Turn on light , new Feature

Hi
It would be nice to have a feature to turn on a light or a group when the movie starts.

Another nice feature would be when a movie is paused to bright up the light only half dimmed.

Thx

Video/Hue sync problems with latest firmwares and XBMC

Anyone else having issues with the latest Hue Firmwares and XBMC Gotham. I've recently noticed I'm getting delays of about 3-4 seconds between the video and the lights after only a few seconds of playback. Changing xbmc.sleep(100) to xbmc.sleep(300) resolves the issue for me. Although it's disappointing as the hue should be capable of handling much more requests than that.

I've tried it with both Gotham version's on Openelec and SteamOS with the exact same results.

Picture Slideshow

Picture Slideshow does not work for me. I would like to use Ambilight. Is there a setting that I have to configure or is it not implemented yet?

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.