Kodi Community Forum

Full Version: [RELEASE] Official XBMC boblight Addon
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
No idea. Boblight doesn't need disk io at all. Its all about gpu. Do you run the daemon on the very same pc?
(2016-10-28, 18:18)RealGsus Wrote: [ -> ]
(2016-10-28, 12:02)RealGsus Wrote: [ -> ]Hi,

I'm running Kodi on Win 10 which recently installed the Anniversary Update. After that, Boblight wasn't working anymore. Tried to uninstall and reinstall the boblight addon, now everytime I start up Kodi the message "This addon needs a binary library. Should the addon try to download it for you." appears. Selecting Yes does nothing.

Maybe you guys can help me figure out what to do, to make it work again. Thanks so much.

Kind regards
Gsus

Here is the Log: http://pastebin.com/uCA7ThQm

Thanks again

Edit: Ok, after checking the log, I found out, that the DLL wasn't downloaded in the addon path, I did that manually, now the startup message is gone and ambilight is back in the menus. BUT it still isn't working while watching a movie. There is just like 1 one the LEDs turned on according to the background. Could it be a config problem? Would be weired since I didn't touch the config.

Here's the new log: http://pastebin.com/htZRwAjH
I have exactly the same issue.
Did you find a solution?
Trying to set it up on a rpi 3 with kodi: I'm trying to get the rgbw-values sent as arguments to a python script / client. Is this possible with the plugin alone or does it also need boblightd running in the background? Afaik hyperion's boblightd doesn't have a popen function to output to file/binary, so it has to run on the original boblightd?

I've set it up with following config
Code:
[global]
interface 127.0.0.1
port 19333

[device]
name ambilight
type popen
output python /home/pi/boblight/ambixi.py
channels 3
interval 500000

[color]
name red
rgb FF0000

[color]
name green
rgb 00FF00

[color]
name blue
rgb 0000FF

[light]
name xi
color red ambilight 1
color green ambilight 2
color blue ambilight 3
hscan 0 100
vscan 0 100

Code:
Ambixi.py
from yeelight import *
import sys

bulb = Bulb(IPADDRESS)
bulb.turn_on()


while True:
      input = sys.stdin.readline()
      inputData=input.split(' ')
      print(input)
      if(len(inputData)>3):
        r = float(inputData[0])
        g = float(inputData[1])
        b = float(inputData[2])
        bulb.set_rgb(r, g, b)

When you start the process it changes lots of colors and keeps counting down towards 000 000 000 all the time within a couple of seconds. Seems to be on the daemon-side. How can I tell if Kodi is stopping sending color-data within a couple of seconds? I've tried outputting directly to a file and see the same trend: starts with RGB goes towards 000 000 000
Can anyone help me get this runing on my Android TV Box? i got an Lightpack Clone. Please!
Hello everyone, I've connected my arduino with Android TV BOX, I've installed boblightd server in Windows and XBMC Boblight Addon 2.0.16 in KODI, I've connected between both well, but I can not turn on the Leds because i've an error with the port / dev / ttyACM0, it tells me
"(CDeviceRS232 :: OpenSerialPort) ERROR: ambilight: / dev / ttyACM0: open () Read-only file system" and I put the permissions with rw-rw-rw- 0666 but I can not find the solution.

Please, can anyone help me? Thx

http://pastebin.com/ZXAibWjE

My boblight.conf has this first lines

Code:
[global]
#timeout         20
interface       0.0.0.0
port            19333

[device]
name            ambilight
type            momo
output          /dev/ttyACM0
rate            115200
channels        150
interval        10000
prefix          41 64 61 00 31 64
delayafteropen  1000000
You need to connect the arduino to the windows pc and need to use something like "COM4" (you need to check which one it really is) in the device line i guess...
(2016-12-29, 00:36)Memphiz Wrote: [ -> ]You need to connect the arduino to the windows pc and need to use something like "COM4" (you need to check which one it really is) in the device line i guess...

But i would like to put the Arduino with Android near the TV with my leds.

Long time ago i got to put Arduino with Raspi and the leds and this mode works, but now i would like to change raspi by Android TV BOX
There is no boblight daemon for android...
Hi,

Is it possible to setup a shortcut key to toggle between 2 settings in boblight via a script?
I have 2 settings, a bright one with more saturated colour for daytime viewing and a dimmer less saturate one for the night.

Any help much appreciated.
Hello Guys,

my bobligt was just working fine (2.0.16 on Kodi 17 RC3, Win10). Now it is asking me for a binary libary and stopped working. No update or anything where made. Any idea on how to fix this issue? PLS Help.

i downloaded the libboblight.so and copyed it to c:\users\name\kodi\addon\script.xbmc.bobligt\ressource\lib but it changed nothing is still asking for that binary.

PLS HELP!! Many thanks in advance.

SORRY, I Fixed it on my own. Got the libboblight-win32.0.dll from the net and it worked again. Thanks and have a NICE DAY
I'm having a strange issue with my boblight setup. I am running Ubuntu 16.04 and have added boblightd to my startup through rc.local. I added the line /usr/local/bin/boblightd

When my HTPC starts and loads Kodi, the message saying that boblight is connected pops up and my lights cycle through the red green blue colors and then to blank. If I try to play a video, the lights do not respond though. If I SSH in with my root account and try to run sudo boblightd, I get these messages:
Code:
(InitLog)                       start of log /home/saber07/.boblight/boblightd.log
(PrintFlags)                    starting boblightd
(CConfig::LoadConfigFromFile)   opening /etc/boblight.conf
(CConfig::CheckConfig)          checking config lines
(CConfig::CheckConfig)          config lines valid
(CConfig::BuildConfig)          building config
(CConfig::BuildConfig)          built config successfully
(main)                          starting devices
(CClientsHandler::Process)      opening listening socket on 127.0.0.1:19333
(CDevice::Process)              Ambilight: starting with output "/dev/ttyACM0"
(CDevice::Process)              Ambilight: setting up
(CClientsHandler::Process)      ERROR: bind() 127.0.0.1:19333 Address already in use
(CDeviceRS232::SetupDevice)     ERROR: Ambilight: /dev/ttyACM0: write() Resource temporarily unavailable
/dev/ttyACM0 write: 41 64 61 00 18 4d 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
(CDevice::Process)              ERROR: Ambilight: setting up failed, retrying in 10 seconds
If I close this message by hitting ctrl c, I get these messages
Code:
^C(SignalHandler)                 caught SIGINT
(main)                          signaling devices to stop
(CClientsHandler::Cleanup)      disconnecting clients
(CClientsHandler::Cleanup)      closing listening socket
(CClientsHandler::Cleanup)      clients handler stopped
(main)                          waiting for devices to stop
(CDevice::Process)              Ambilight: closed
(CDevice::Process)              Ambilight: stopped
(main)                          exiting
And then my lights will function properly to videos. Does anyone know what might be the issue here? I would like to have my lights functioning without having to go through these steps.

Let me know if any additional information would be helpful, thanks
Pipe the output of boblightd in rc.local to a file and see if the log shows any errors
(2017-01-22, 13:40)Memphiz Wrote: [ -> ]Pipe the output of boblightd in rc.local to a file and see if the log shows any errors

After piping it out and rebooting, then loading a video, here's the output towards the end of the file. It looks like it is trying to send the correct info, but the lights aren't responding.

Code:
/dev/ttyACM0 write: 41 64 61 00 18 4d ff 6a 00 ff 6a 00 ff 6c 00 ff 6c 00 ae 9d$
/dev/ttyACM0 write: 41 64 61 00 18 4d ff 6a 00 ff 6a 00 ff 6c 00 ff 6c 00 ab 9c$
/dev/ttyACM0 write: 41 64 61 00 18 4d ff 6a 00 ff 6b 00 ff 6c 00 ff 6b 00 b1 9c$
/dev/ttyACM0 write: 41 64 61 00 18 4d ff 6a 00 ff 6b 00 ff 6c 00 ff 6a 00 b5 9c$
/dev/ttyACM0 write: 41 64 61 00 18 4d ff 6a 00 ff 6b 00 ff 6c 00 ff 6a 00 b7 9e$
/dev/ttyACM0 write: 41 64 61 00 18 4d ff 6a 00 ff 6b 00 ff 6d 00 ff 6a 00 b5 9f$
/dev/ttyACM0 write: 41 64 61 00 18 4d ff 6a 00 ff 6b 00 ff 6d 00 ff 6a 00 b3 9f$
/dev/ttyACM0 write: 41 64 61 00 18 4d ff 6a 00 ff 6b 00 ff 6d 00 ff 6c 00 b3 a2$
/dev/ttyACM0 write: 41 64 61 00 18 4d ff 6a 00 ff 6b 00 ff 6d 00 ff 6c 00 b3 a3$
/dev/ttyACM0 write: 41 64 61 00 18 4d ff 6a 00 ff 6c 00 ff 6d 00 ff 6d 00 b3 a4$
/dev/ttyACM0 write: 41 64 61 00 18 4d ff 6a 00 ff 6c 00 ff 6d 00 ff 6d 00 b2 a4$
/dev/ttyACM0 write: 41 64 61 00 18 4d ff 6a 00 ff 6c 00 ff 6e 00 ff 6d 00 b3 a3$
/dev/ttyACM0 write: 41 64 61 00 18 4d ff 6a 00 ff 6b 00 ff 6e 00 ff 6e 00 b1 a2$
/dev/ttyACM0 write: 41 64 61 00 18 4d ff 6b 00 ff 6b 00 ff 6d 00 ff 6f 00 af a1$
/dev/ttyACM0 write: 41 64 61 00 18 4d ff 6b 00 ff 6b 00 ff 6d 00 ff 6f 00 ae a0$

I have restarted a few times and it will randomly work after startup, but not very often. I don't know if this has anything with me getting the lights working by running through the close process I mentioned earlier and then restarting or if it just randomly works sometimes. Is it possible to have a timing issue on when certain things start? I tried adding sleep 6 to the rc.local file at one point but that didn't seem to help.

Thanks for your help.
Hello all,

I was using this add on and other on my OpenELEC box. I have switched to Shield TV and looking for info on setting up to use this on this box. Is there a setup guide or anything?
Hi I'm looking at setting this up with. Looking at the options can I have a static backlight color when I'm the Kodi menu, that turns off with screensaver and turn off when playing movie tv shows etc? Like theatre mode with the hue lights.