bobo1on1 / script.xbmc.boblight Goto Github PK
View Code? Open in Web Editor NEWXBMC addon for boblight
Home Page: http://code.google.com/p/boblight/
XBMC addon for boblight
Home Page: http://code.google.com/p/boblight/
There are currently two issues with the library download for Nvidia Shield TV (android TV 7.0)
For reference, running $ restorecon /data/data/org.xbmc.kodi/files/libboblight.so
should fix the SElinux permission error.
Further reference, the SElinux fault as shown by logcat (note that this was during debugging, tcontext was modified by hand to try and solve the issue and does not match original):
08-03 18:33:45.808 16761 16761 W Thread-3: type=1400 audit(0.0:77): avc: denied { execute } for path="/data/data/org.xbmc.kodi/files/libboblight.so" dev="mmcblk0p29" ino=594626 scontext=u:r:untrusted_app:s0:c512,c768 tcontext=u:r:untrusted_app:s0:c512,c768 tclass=file permissive=0
The Fast or Slow presets work as expected for everything. However, the only custom setting that seems to work is "Music Videos." If I set TV Shows, Movies or Files to "Custom," the lights remain off, just as if it is set to disabled.
Same thing happens with the Override Used Category setting. If it's set to TV Shows, Movies or Files and the setting is Custom, the lights remain off as if it is disabled. Setting the Override using Musicvideo set to Custom is the only mode that works.
Tested using the latest boblight 2.0.7 and 2.0.8, boblightd (OE version) v3.1.3, OpenELEC 3.4.2
Hey!
Recently I've been testing some custom Android firmwares and I found an issue that maybe you'll help me to figure out. When playing any video content boblight acts like it would be set up to static light only - all leds are glowing in orange and don't change. Can this be a permission issue ? I had to change the permissions to allow Kodi access the libboblight.so in /data/data/org.xbmc/kodi/files/ so maybe there's another directory that needs to get it's permissions changed too (buffer directory) ?
Here's my log : http://pastebin.com/UBu9iUu2
Using this plugin with both boblight and the hyperion boblight server results in the colors being correct and no lag (which i do get with the hyperion-kodi plugin) but its always on full brightness. a dark (even black) area results in a full on white leds. while something of color results in that color being full on.
(full on being the 70% on i configured in the arduino sketch)
using the hyperion plugin (and hyperiond) the colors are correct and so is the brightness, but that plugin has significant delay, so i'd like to use this one.
my setup is a debian (jessie)
AMD E350 (bobcat) with the open source radeon drivers
arduino nano connected to USB (/dev/ttyusb0) with Adafruit_NeoPixel based sketch
and ws2812b led's (45 currently, 44 configured)
bot 2.0.16 of this plugin, and got both boblight and hyperion of of git today (2016-1-18).
plugin configuration is set to default for movies: fast.
added boblight configuration.
boblight.conf.txt
especially for ProjecM-fans on listening music and watching boblight ;) it would be nice to implement this function.
When I watch my tv shows, I just click the play button on my remote when I'm over a show item on my list (with "hide watched" enabled). When there is more than one item unwatched, all items get queued and the oldest one starts to play and Boblight Addon works great!
But when the next episode starts, the colors are all wrong and it seems the Addon is ignoring my settings. To get the "right" colors again I can open the settings and just hit OK again (I mapped a key on my keyboard for the settings window), open the subtitle selector via long press on the subtitle button on the iOS official Kodi Remote App and closing that window or simply hit stop and press play again.
What is going wrong? I'm happy to provide any more details if you tell me what you need.
I'm trying to get started with the Boblight Kodi addon but having some problems with it, I just get the error "Failed to connect to boblightd" when trying to install it.
I've looked so that the libboblight-osx.0.dylib is in the correct path but still the same error is thrown. I can't really understand why.
The Kodi log never mentions the addon error or anything else regarding the Boblight addon, so the log doesn't give me much either.
Any ideas?
Hi,
I'm reporting the issue with the addon and Android environment (4.4.2 in my case). On the latest Kodi beta 5 and latest addon version from the Kodi's repository the addon doesn't connect to the remote boblightd. Everytime you enable/disable the addon the message pops-up that it requires to the binaries and to check the Readme.
I just wanted to mention that other Android applications that allow boblight control ie. BobDroid, are working just fine, and connect successfully.
If there's a way to debug the connection, I'll provide all the logs that I can to help!
Thank you!
Could you add an option to disable the lights when playing a 3D movie? I have the issue that my Ambioder flickers really bad when wearing 3D glasses, which distracts a lot from the movie, and i don't want to go into the settings and disable the whole plugin every time i want to watch a 3D movie... and then enable it again after the movie.
Maybe there's a way to detect if a 3D movie is playing, now that it has seen so much attention in Gotham?
Thanks!
With the z button in xbmc one can adjust the image. Is it possible to use this info to detect the black bars?
For example the movie has 1920x812 but the screen size is 1920x1080. Can this info be used to get the correct edge pixel colours?
Sometimes Boblight suddenly stops working in Frodo final (happens also in RC2 and 3)
I can't reproduce it but it happens on a regular basis, this time when playback was finished.
Error contains:
10:13:16 T:140088881182464 NOTICE: -->Python Interpreter Initialized<--
10:13:16 T:140088959809280 NOTICE: Thread XBPyThread start, auto delete: false
10:13:16 T:140089709610752 ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <type 'exceptions.SystemError'>
Error Contents: illegal user state
Traceback (most recent call last):
File "/storage/.xbmc/addons/script.xbmc.boblight/default.py", line 213, in
run_boblight()
File "/storage/.xbmc/addons/script.xbmc.boblight/default.py", line 188, in run_boblight
pixels = capture.getImage();
SystemError: illegal user state
-->End of Python script error report<--
10:13:16 T:140088959809280 NOTICE: -->Python Interpreter Initialized<--
The stated sources ling on google is down. Readme described procedure no longer works.
After stopping a video, espacially in PVR, boblight stays on.
After one or two more start -> stop cycles you can switch it off.
Just updated from Kodi 18 (32bit) to 19 (64bit) on my windows machine. Kadi is working but the bob light add-on does not start. In the Log I found these errors. There seem to be others with the identical issue.
https://forum.kodi.tv/showthread.php?tid=116331&page=106
EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
- NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
Error Type: <class 'TypeError'>
Error Contents: can't concat str to bytes
Traceback (most recent call last):
File "C:\Users\XXXXX\AppData\Roaming\Kodi\addons\script.xbmc.boblight\default.py", line 242, in <module>
run_boblight()
File "C:\Users\ XXXXX\AppData\Roaming\Kodi\addons\script.xbmc.boblight\default.py", line 193, in run_boblight
if main.startup() == 0:
File "C:\Users\ XXXXX\AppData\Roaming\Kodi\addons\script.xbmc.boblight\default.py", line 130, in startup
if xbmcgui.Dialog().yesno(__scriptname__, localize(32504) + " " + localize(32509)):
TypeError: can't concat str to bytes
-->End of Python script error report<--
when you start playing the light dims. not sure if this is intended/changed lately.
i'd rather have it would stay on like you have set the static colour.
maybe i will look into it myself but just wanted to mention it in case i forgot
Can anybody confirm if this is working? I will try later on next week if not. I'm struggling to get hyperion to work.
After updating to Kodi 18 boblight is interfering with video/audio playback, causing unwatchable frame rates and audio out of sync. Using Android 5.1.1 (MediaCodec) on Odroid C2
Settings attempt 1
MediaCodec (Surface) hardware acceleration ON
MediaCodec hardware acceleration ON
No boblight, video/audio perfect.
Settings attempt 2
MediaCodec (Surface) hardware acceleration ON
MediaCodec hardware acceleration OFF
Boblight static light on the top left, video/audio perfect.
Settings attempt 3 (this was the setting before updating to Kodi 18)
MediaCodec (Surface) hardware acceleration OFF
MediaCodec hardware acceleration ON
Boblight works perfectly but video frame rates are unwatchable + audio is laggy
Settings attempt 4
MediaCodec (Surface) hardware acceleration OFF
MediaCodec hardware acceleration OFF
Boblight works but pulses with every change, making it annoying and unwatchable. Other than that video/audio perfect.
Kodi-plugin to work boblight with pictures and desktop category. In previous versions 1.xx it worked this can be possible?
Static lights be good but like putting dynamic lights?
Thanks!
If several movies are playing after each other (e.g. music videos), the plugin will often get confused and go to "static" mode when the movie switches. I enabled debug and saw that something racey seems to be going on:
21:23:40 T:140507655075584 DEBUG: ### [XBMC Boblight] - PlayerChanged(stop)
21:23:41 T:140507655075584 DEBUG: ### [XBMC Boblight] - PlayerChanged(start)
21:23:42 T:140507655075584 DEBUG: ### [XBMC Boblight] - settings() - handleCategory(movie)
21:23:42 T:140507655075584 DEBUG: ### [XBMC Boblight] - settings() - handleGlobalSettings
21:23:42 T:140507655075584 DEBUG: ### [XBMC Boblight] - settings() - handleStaticBgSettings
21:23:42 T:140507655075584 DEBUG: ### [XBMC Boblight] - settings() - handleCategory(static)
21:23:42 T:140507655075584 DEBUG: ### [XBMC Boblight] - settings() - handleGlobalSettings
21:23:42 T:140507655075584 DEBUG: ### [XBMC Boblight] - settings() - setupForStatic
21:23:42 T:140507655075584 DEBUG: ### [XBMC Boblight] - changed saturation to 4.0 ret: True
21:23:42 T:140507655075584 DEBUG: ### [XBMC Boblight] - changed value to 1.0 ret: True
21:23:42 T:140507655075584 DEBUG: ### [XBMC Boblight] - changed speed to 50.0 ret: True
21:23:42 T:140507655075584 DEBUG: ### [XBMC Boblight] - changed autospeed to 0.0 ret: True
21:23:42 T:140507655075584 DEBUG: ### [XBMC Boblight] - changed interpolation to 1 ret: True
21:23:42 T:140507655075584 DEBUG: ### [XBMC Boblight] - changed threshold to 0.0 ret: True
21:23:42 T:140507655075584 DEBUG: ### [XBMC Boblight] - settings() - handleStaticBgSettings
I wanted to be able to enable/disable boblight from my remote, but I don't see how this is possible at the moment. I've created a simple script that does this for me (https://github.com/alexiri/script.toggleboblight), but it would be nice to have the option built-in.
You're missing movies in this block:
# Possible Videoplayer options: files, movies, episodes, musicvideos, livetv
if xbmc.getCondVisibility("Player.HasVideo()"):
if xbmc.getCondVisibility("VideoPlayer.Content(musicvideos)"):
ret = "musicvideo"
elif xbmc.getCondVisibility("VideoPlayer.Content(episodes)"):
ret = "tvshow"
elif xbmc.getCondVisibility("VideoPlayer.Content(livetv)"):
ret = "livetv"
elif xbmc.getCondVisibility("VideoPlayer.Content(files)"):
ret = "files"
should be:
# Possible Videoplayer options: files, movies, episodes, musicvideos, livetv
if xbmc.getCondVisibility("Player.HasVideo()"):
if xbmc.getCondVisibility("VideoPlayer.Content(musicvideos)"):
ret = "musicvideo"
elif xbmc.getCondVisibility("VideoPlayer.Content(episodes)"):
ret = "tvshow"
elif xbmc.getCondVisibility("VideoPlayer.Content(movies)"):
ret = "movie"
elif xbmc.getCondVisibility("VideoPlayer.Content(livetv)"):
ret = "livetv"
elif xbmc.getCondVisibility("VideoPlayer.Content(files)"):
ret = "files"
...I think?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.