saurabhwahile / boblight

Automatically exported from code.google.com/p/boblight
GNU General Public License v3.0
0 stars 0 forks source link

Not picking colors at all #67

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I intend to use boblightd with XBMC Boblight plugin to connect with Lightpack. 
To do so i rewrote ruby script to python (attached both) to communicate with 
Lightpack daemon. In result it should pick colours using either boblight-X11, 
boblight-constant or plugin mentioned above, then send to Lightpack to light 
proper LEDs. Instead of real colors i get only this (using boblight-X11 as 
client):

./bin/boblightd -c config/boblight.conf
(InitLog)                       start of log /storage/.boblight/boblightd.log
(PrintFlags)                    starting ./bin/boblightd -c config/boblight.conf
(CConfig::LoadConfigFromFile)   opening config/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)              Lightpack: starting with output "python 
/storage/.xbmc/addons/script.lightpack/boblight.py"
(CDevice::Process)              Lightpack: setting up
(CDevice::Process)              Lightpack: setup succeeded
service Lightpack connect
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 
setcolor:1-0,0,0;2-0,0,0;3-0,0,0;4-0,0,0;5-0,0,0;6-0,0,0;7-0,0,0;8-0,0,0;9-0,0,0
;10-0,0,0;
(CClientsHandler::Process)      127.0.0.1:53350 connected
(CClientsHandler::ParseMessage) 127.0.0.1:53350 said hello
(CClientsHandler::ParseSet)     127.0.0.1:53350 priority set to 128
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 
setcolor:1-0,0,0;2-0,0,0;3-0,0,0;4-0,0,0;5-0,0,0;6-0,0,0;7-0,0,0;8-0,0,0;9-0,0,0
;10-0,0,0;
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 
setcolor:1-0,0,0;2-0,0,0;3-0,0,0;4-0,0,0;5-0,0,0;6-0,0,0;7-0,0,0;8-0,0,0;9-0,0,0
;10-0,0,0;
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 
setcolor:1-0,0,0;2-0,0,0;3-0,0,0;4-0,0,0;5-0,0,0;6-0,0,0;7-0,0,0;8-0,0,0;9-0,0,0
;10-0,0,0;
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 
setcolor:1-0,0,0;2-0,0,0;3-0,0,0;4-0,0,0;5-0,0,0;6-0,0,0;7-0,0,0;8-0,0,0;9-0,0,0
;10-0,0,0;
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 
setcolor:1-0,0,0;2-0,0,0;3-0,0,0;4-0,0,0;5-0,0,0;6-0,0,0;7-0,0,0;8-0,0,0;9-0,0,0
;10-0,0,0;
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 
setcolor:1-0,0,0;2-0,0,0;3-0,0,0;4-0,0,0;5-0,0,0;6-0,0,0;7-0,0,0;8-0,0,0;9-0,0,0
;10-0,0,0;
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 
0.000000 0.000000 0.000000 0.000000 0.000000 0.000000 
setcolor:1-0,0,0;2-0,0,0;3-0,0,0;4-0,0,0;5-0,0,0;6-0,0,0;7-0,0,0;8-0,0,0;9-0,0,0
;10-0,0,0;

0.000000 is the raw data coming from boblightd, setcolor stuff is a command 
that's going to be send to lightpack.

Eventually, after a while it'll start picking some random colors, like:

0.042526 0.070788 0.144175 0.042526 0.070788 0.144175 0.042526 0.070788 
0.144175 0.042526 0.070788 0.144175 0.042526 0.070788 0.144175 0.042526 
0.070788 0.144175 0.042526 0.070788 0.144175 0.042526 0.070788 0.144175 
0.042526 0.070788 0.144175 0.042526 0.070788 0.144175 
setcolor:1-10,18,36;2-10,18,36;3-10,18,36;4-10,18,36;5-10,18,36;6-10,18,36;7-10,
18,36;8-10,18,36;9-10,18,36;10-10,18,36;
0.042526 0.070788 0.144175 0.042526 0.070788 0.144175 0.042526 0.070788 
0.144175 0.042526 0.070788 0.144175 0.042526 0.070788 0.144175 0.042526 
0.070788 0.144175 0.042526 0.070788 0.144175 0.042526 0.070788 0.144175 
0.042526 0.070788 0.144175 0.042526 0.070788 0.144175 
setcolor:1-10,18,36;2-10,18,36;3-10,18,36;4-10,18,36;5-10,18,36;6-10,18,36;7-10,
18,36;8-10,18,36;9-10,18,36;10-10,18,36;

It's still nowhere near the real ones. Same thing happend when i try to use 
boblight-constant or the plugin.

What version of the product are you using? On what operating system?

Not sure which version is it, it's marked as boblightd-467 in XBMC plugin 
changelog.txt. Running on OpenELEC 3.0.6 Generic i386 and OpenELEC 3.1.0 
Generic X86_64 on Zotac HD-ND22 (Intel U2300 with nVidia ION).

The same config and script runs just fine on regular PC with Arch Linux and 
also nVidia ION GPU.

Original issue reported on code.google.com by krzyszto...@gmail.com on 30 Jun 2013 at 5:30

Attachments:

GoogleCodeExporter commented 8 years ago
I've found an issues. My fault after all lies in boblight.py. Once 
time.sleep(1) (line 47) is removed the script works perfectly. Sorry to bother 
you all, please close that issues.

Best regards.

Original comment by krzyszto...@gmail.com on 1 Jul 2013 at 8:29

GoogleCodeExporter commented 8 years ago

Original comment by bob.loo...@gmail.com on 2 Sep 2013 at 12:52