[RELEASE] Official XBMC boblight Addon

  Thread Rating:
  • 2 Votes - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Lunatixz Online
Posting Freak
Posts: 2,766
Joined: May 2011
Reputation: 46
Location: New York
Post: #31
Memphiz Wrote:Well i've had another look. DD-WRT unfortunatly is not that open source as OpenWRT - it has more a commercial touch (though it is of course free). I didn't find a HowTo on building packages for it. But the wiki states, that OpenWRT packages might be compatible.

Well i'll try to get boblightd into official OpenWRT tree first. When OpenWRT buildbots start building it on a nightly base - you can try if you get it into your dd-wrt then. This might need some weeks i think.

Beside that you already should double check that your router has an USB port and that your amblone is compatible with boblightd and it has a usb2rs232 adapter on it which has drivers on ddwrt (see USB to Serial on http://www.dd-wrt.com/wiki/index.php/USB#USB_drivers for supported adapters).

http://todbot.com/blog/2010/12/16/wifi-f...-wl-520gu/

according to the info above, serial communication between dd-wrt and micro-controller isn't a problem... how Do I install the daemon? is their an install package
(This post was last modified: 2011-12-13 05:49 by Lunatixz.)
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 11,045
Joined: Feb 2011
Reputation: 113
Location: germany
Post: #32
Lunatixz Wrote:http://todbot.com/blog/2010/12/16/wifi-f...-wl-520gu/

according to the info above, serial communication between dd-wrt and micro-controller isn't a problem... how Do I install the daemon? is their an install package

I think my post you quoted should have made clear in what state the package is?!? So once again in a short form. No - i've opened a ticket for getting the package into OpenWrt first - no clue about making packages for dd-wrt - maybe the openwrt package will work once its in.

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
Lunatixz Online
Posting Freak
Posts: 2,766
Joined: May 2011
Reputation: 46
Location: New York
Post: #33
Memphiz Wrote:I think my post you quoted should have made clear in what state the package is?!? So once again in a short form. No - i've opened a ticket for getting the package into OpenWrt first - no clue about making packages for dd-wrt - maybe the openwrt package will work once its in.

What I should have said is... How did you do it? can you send me your source for the install package, and I will play around and see if I can get it working...
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 11,045
Joined: Feb 2011
Reputation: 113
Location: germany
Post: #34
its attached to the ticket for openwrt

see
http://forum.xbmc.org/showpost.php?p=954...stcount=13

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
Dannydeman Offline
Senior Member
Posts: 179
Joined: Sep 2008
Reputation: 0
Post: #35
Will this work with multiple Philips AMBX lights?

[Image: widget]
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 11,045
Joined: Feb 2011
Reputation: 113
Location: germany
Post: #36
philips? nope you need a boblight or clone ... philips controls its ambilight native doesn't it?

Well it works as long as boblightd is involved Smile

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
(This post was last modified: 2011-12-19 10:57 by Memphiz.)
find quote
bleze Offline
Senior Member
Posts: 216
Joined: Nov 2009
Reputation: 0
Post: #37
I have boblightd1.3, combustd installed and working with Philips amBX.

Lights come on when I run this;
Code:
boblight-constant ff00ff; sleep 5; killall boblight-constant

In XBMC the addon is installed and I've compiled the required lib so there is no popup at start up.

But I get no colors when watching a movie. I've tried to use the remote settings to 127.0.0.1 19333, but no different.

XBMC is crystalbuntu build from Nov 4. Too old?

Any ideas? Thanks for the work!
find quote
bleze Offline
Senior Member
Posts: 216
Joined: Nov 2009
Reputation: 0
Post: #38
actually I do not have 1.3 installed as when I built the required lib I have also built and installed newest boblightd. It does not write the version number in any output, but I think it's true.

XBMC pops up and says it cannot connect. boblight-constant has no problem connecting and colors are displayed.

XBMC log:

Code:
NOTICE: boblight: connection to boblightd failed: getsockopt() 127.0.0.1:19333 Connection refused

If I telnet to the port I get connection refused also.

If I start boblightd from prompt:

Code:
atv@Crystalbuntu:~/trunk$ sudo boblightd -f
Nr of devices: 1
Nr of lights: 5
Nr of colors: 3
Port: 19333
Interface: 127.0.0.1

Device AmbX_Combust
Type: 2
Output: ruby /usr/local/combustd/applications/boblight/boblight.rb
Channels: 15
Interval: 20000
Period: -1
Rate: -1

Color red
RGB: ff0000
Adjust: 1.0
Blacklevel: 0.0
Gamma: 1.0

Color green
RGB: 00ff00
Adjust: 1.0
Blacklevel: 0.0
Gamma: 1.0

Color blue
RGB: 0000ff
Adjust: 1.0
Blacklevel: 0.0
Gamma: 1.0

Light left
Number of colors: 3
Color 0: red
Color 1: green
Color 2: blue
Interpolation is on
Hscan: 0.0-33.3
Vscan: 0.0-66.7
Proportional: 20.0
Saturation: 3.0
Value: 15.0
Valuerange: 0.0-1.0
Use this light
Average method used
Black threshold: 20

Light right
Number of colors: 3
Color 0: red
Color 1: green
Color 2: blue
Interpolation is on
Hscan: 66.7-100.0
Vscan: 0.0-66.7
Proportional: 20.0
Saturation: 3.0
Value: 15.0
Valuerange: 0.0-1.0
Use this light
Average method used
Black threshold: 20

Light wwleft
Number of colors: 3
Color 0: red
Color 1: green
Color 2: blue
Interpolation is on
Hscan: 0.0-40.0
Vscan: 0.0-33.3
Proportional: 20.0
Saturation: 3.0
Value: 5.0
Valuerange: 0.0-1.0
Use this light
Average method used
Black threshold: 20

Light wwright
Number of colors: 3
Color 0: red
Color 1: green
Color 2: blue
Interpolation is on
Hscan: 60.0-100.0
Vscan: 0.0-33.3
Proportional: 20.0
Saturation: 3.0
Value: 5.0
Valuerange: 0.0-1.0
Use this light
Average method used
Black threshold: 20

Light wwcenter
Number of colors: 3
Color 0: red
Color 1: green
Color 2: blue
Interpolation is on
Hscan: 33.0-66.0
Vscan: 0.0-33.3
Proportional: 20.0
Saturation: 3.0
Value: 15.0
Valuerange: 0.0-1.0
Use this light
Average method used
Black threshold: 20

Starting popen daemon on ruby /usr/local/combustd/applications/boblight/boblight.rb

boblight - a small tool to listen to the output of boblight popen to control a set of Philips Ambx lights.
See README and docs/ for faq, usage and support.

Looking for support ?
Chat: irc.oceanius.com #dev
Mail: combustd@sexybiggetje.nl

Format: ruby boblight.rb r1 g1 b1 r2 g2 b2 r3 g3 b3 r4 g4 b4 r5 g5 b5

boblight-constant:

Code:
Starting boblight-constant with color ff00ff

Received hello from new client 127.0.0.1:56864
Assigning number 0 to client
Sending global config to 127.0.0.1:56864
Sending lights config to 127.0.0.1:56864
Timeout of 127.0.0.1:56864 set to 20
Priority of 127.0.0.1:56864 set to 200
127.0.0.1:56864 light left interpolation off
127.0.0.1:56864 light left proportional set to 20.000000
127.0.0.1:56864 light left saturation set to 1.00
127.0.0.1:56864 light left value set to 1.00
127.0.0.1:56864 light left valuerange set to 0.00-1.00
127.0.0.1:56864 use light left
127.0.0.1:56864 light right interpolation off
127.0.0.1:56864 light right proportional set to 20.000000
127.0.0.1:56864 light right saturation set to 1.00
127.0.0.1:56864 light right value set to 1.00
127.0.0.1:56864 light right valuerange set to 0.00-1.00
127.0.0.1:56864 use light right
127.0.0.1:56864 light wwleft interpolation off
127.0.0.1:56864 light wwleft proportional set to 20.000000
127.0.0.1:56864 light wwleft saturation set to 1.00
127.0.0.1:56864 light wwleft value set to 1.00
127.0.0.1:56864 light wwleft valuerange set to 0.00-1.00
127.0.0.1:56864 use light wwleft
127.0.0.1:56864 light wwright interpolation off
127.0.0.1:56864 light wwright proportional set to 20.000000
127.0.0.1:56864 light wwright saturation set to 1.00
127.0.0.1:56864 light wwright value set to 1.00
127.0.0.1:56864 light wwright valuerange set to 0.00-1.00
127.0.0.1:56864 use light wwright
127.0.0.1:56864 light wwcenter interpolation off
127.0.0.1:56864 light wwcenter proportional set to 20.000000
127.0.0.1:56864 light wwcenter saturation set to 1.00
127.0.0.1:56864 light wwcenter value set to 1.00
127.0.0.1:56864 light wwcenter valuerange set to 0.00-1.00
127.0.0.1:56864 use light wwcenter
(This post was last modified: 2011-12-19 00:36 by bleze.)
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 11,045
Joined: Feb 2011
Reputation: 113
Location: germany
Post: #39
bleze Wrote:actually I do not have 1.3 installed as when I built the required lib I have also built and installed newest boblightd. It does not write the version number in any output, but I think it's true.

XBMC pops up and says it cannot connect. boblight-constant has no problem connecting and colors are displayed.

please post the complete xbmc.log to pastebin and put the link here.

Please also post the boblightd.conf.

So XBMC and boblightd are running on the same mashine right? Well it looks like it should work (when boblight-constant works, boblight addon should work too). No clue what prevents it from connecting here.

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
Kode Offline
fanart.tv admin
Posts: 750
Joined: Mar 2010
Reputation: 14
Post: #40
combustd is the magic layer between boblight and the ambx system, it could be that it's not compatible with the addon.

Get and request your ClearLOGOs / ClearART / TV Thumbs / Season Thumbs / Music ClearLOGOs / cdART / Artist Backgrounds / CD Covers from fanart.tv

Severus Server Monitor - Self hosted application to monitor all your servers
find quote
bleze Offline
Senior Member
Posts: 216
Joined: Nov 2009
Reputation: 0
Post: #41
Memphiz, thank you for helping out. Yes XBMC and boblightd both running on aTV. boblight-constant works.

XBMC log: http://pastebin.com/cUxv4ntR
boblight.rb: http://pastebin.com/rMfA6hj1
boblight.conf: http://pastebin.com/7rWkC2zx

Kode, I think the addon talks to boblight daemon and does not know or need to know combustd in any way. boblightd talks to combustd which clearly works as boblight-constant makes the leds light up.
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 11,045
Joined: Feb 2011
Reputation: 113
Location: germany
Post: #42
yep ... it talks directly to boblightd ... if boblight-constant works - the addon should work too.

Everything is looking ok in the xbmc.log ... beside that it just can't connect. You could try to alter your boblight.conf

Code:
[global]
#interface      127.0.0.1
port            19333

See the commented (prefixed by "#") interface. This will make boblight listen on all interfaces. After that use the network IP of your aTV instead of 127.0.0.1 for trying to connect.

If its still failing please post the output of

Code:
netstat -n | grep 19333

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
bleze Offline
Senior Member
Posts: 216
Joined: Nov 2009
Reputation: 0
Post: #43
Ok I've commented out the interface line of the conf file and restarted boblightd.

Changed IP to the IP of my aTV in the addon settings. Disabled and enabled addon.

It still cannot connect...

Code:
netstat -n | grep 19333

outputs nothing... wierd that boblight-constant works when nothing else can connect to the port.

I can set you up with SSH access to my aTV if you want to snoop around? Thanks
(This post was last modified: 2011-12-19 22:33 by bleze.)
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 11,045
Joined: Feb 2011
Reputation: 113
Location: germany
Post: #44
bleze Wrote:Ok I've commented out the interface line of the conf file and restarted boblightd.

Changed IP to the IP of my aTV in the addon settings. Disabled and enabled addon.

It still cannot connect...

Code:
netstat -n | grep 19333

outputs nothing... wierd that boblight-constant works when nothing else can connect to the port.

I can set you up with SSH access to my aTV if you want to snoop around? Thanks

if that command doesn't output something then the boblightd daemon is not listening on port 19333 ... i'm already of the pc ... so no digging ... maybe you meet me on irc sometime (#xbmc-ios in freenode irc)

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: Wiki NFS
HowTo configure avahi (zeroconf): Wiki Avahi
READ THE IOS FAQ!: iOS FAQ
find quote
bleze Offline
Senior Member
Posts: 216
Joined: Nov 2009
Reputation: 0
Post: #45
Memphiz Wrote:if that command doesn't output something then the boblightd daemon is not listening on port 19333

But how does this explain that boblight-constant works fine or rather what is the difference between addon and boblight-constant that results in this behavior?

I will try to meet you on IRC if you're online to night...
find quote
Post Reply