[RELEASE] Official XBMC boblight Addon

  Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
AcidLiquid Offline
Junior Member
Posts: 4
Joined: Mar 2015
Reputation: 0
Post: #1291
not exactly. The television shows the red color and the LEDs are blue.
(This post was last modified: 2015-03-25 21:21 by AcidLiquid.)
find quote
MrHenky Offline
Member
Posts: 55
Joined: Aug 2008
Reputation: 0
Location: Ritterhude, Germany
Post: #1292
So I did install the daemon as well and the message regarding the binary is gone. I want to say, that I didn't have to install the daemon, when installing XBMC boblight on my FireTV.

Anyway, the connection is working. Thanks for the info. Could be mentioned in the pop-up for the binary Wink
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 12,584
Joined: Feb 2011
Reputation: 122
Location: germany
Post: #1293
Its openelec specific.

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
find quote
AcidLiquid Offline
Junior Member
Posts: 4
Joined: Mar 2015
Reputation: 0
Post: #1294
nobody knows what the problem?
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 12,584
Joined: Feb 2011
Reputation: 122
Location: germany
Post: #1295
If red and blue are mixed up it normally means that something is not in RGB but BGR format. Try to change the color definitions in your boblightd like this:

http://pastebin.com/HDc52pfP

(basically change red with blue ...)

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
find quote
AcidLiquid Offline
Junior Member
Posts: 4
Joined: Mar 2015
Reputation: 0
Post: #1296
Thank you !! Try what you said, but changed everything. And only had to change the hexadecimal
find quote
Memphiz Offline
Team-Kodi Developer
Posts: 12,584
Joined: Feb 2011
Reputation: 122
Location: germany
Post: #1297
Don't get that answer - could you reformulate it?

AppleTV2/iPhone/iPod: HowTo find debug logs and everything else which the devs like so much: click here
HowTo setup NFS for XBMC: NFS (wiki)
HowTo configure avahi (zeroconf): Avahi_Zeroconf (wiki)
READ THE IOS FAQ!: iOS FAQ (wiki)
find quote
BTopbas Offline
Junior Member
Posts: 8
Joined: Jan 2014
Reputation: 0
Post: #1298
Hi Memphiz;

I have wetek device and raspberry pi b+ for led drive. I used before raspberry pi with openelec and hyperion. Now i want wetek and boblight. I installed raspbian on raspberry. I installed and make boblight. I create config and copy raspbian etc path.(boblight.conf). And i installed xbmc boblight addon and boblightd service on openelec(wetek device) I config xbmcaddon to boblight server my raspberry pi ip adress. And i restart both of systems. But no luck. What i missing? I trying use hyperion as server but leds stay same colors. Not change to video. Maybe xbmc boblight capture a small or big images. Anyone help with this? Raspberry pi and wetek and boblight.
find quote
fuuss Offline
Junior Member
Posts: 15
Joined: Jan 2012
Reputation: 0
Post: #1299
Hi , I have since yesterday a weird problem with my boblight , It was working like charm for years now . So first I am using a xtreamer ultra 2 with Openelec 5.0.6 running

Since yesterday the LEd arround my TV are just updating like every minute . My Boblight is connected to a sedu board .

In the Boblight Log I just get this

http://pastebin.com/xV0SSYur

Here is the Kodi Debug Log
http://pastebin.com/ej52AyiA

It looks like Boblight is running and then stopping and so on ,

I have no clue why , maybe someone could help me out

Thx

.
find quote
x23piracy Offline
Senior Member
Posts: 170
Joined: Feb 2011
Reputation: 0
Location: Germany
Post: #1300
Hi Memphiz,

is it maybe possible to get support for milight bulbs?
I allready have something working but it does not really do nice.

Here is what i got:

boblight.conf:
Code:
[device]
name        WifiLed
output        python /storage/.kodi/userdata/addon_data/service.multimedia.boblightd/milight.py
channels    3
type        popen
interval    100000
debug        off

[color]
name        WIFIred
rgb            FF0000
blacklevel    0.00

[color]
name        WIFIgreen
rgb            00FF00
blacklevel    0.00

[color]
name        WIFIblue
rgb            0000FF
blacklevel    0.00

[light]
name        WI1
color        WIFIred     WifiLed 1
color        WIFIgreen     WifiLed 2
color        WIFIblue     WifiLed 3
hscan        0 100
vscan        0 100

milight.py:
Code:
import colorsys
import sys
import socket

logger=None

class Logger:
  logfile=None
  def __init__(self,activateLogging,path):
    if(activateLogging):
      self.logfile = file(path, "wb")

  def writeLine(self,msg):
    if(self.logfile!=None):
      self.logfile.write(str(msg))
      self.logfile.flush()


class boblightMilightConnector:
  def __init__(self):
    self.readInputStream()

  def readInputStream(self):
    milight=milightController("192.168.178.44",8899)
    while True:
      input = sys.stdin.readline()
      logger.writeLine("Input: "+input)
      inputData=input.split(' ')
      if(len(inputData)>3):
        r = float(inputData[0])
        g = float(inputData[1])
        b = float(inputData[2])
        milight.setRGB(r,g,b)


class milightController:
  ip=None
  port=None
  sock=socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
  def __init__(self,IP,Port):
    self.ip=IP
    self.port=Port
  def setRGB(self,r,g,b):
    h, s, v = colorsys.rgb_to_hsv(float(r), float(g), float(b))
    logger.writeLine("H: "+str(h)+" S: "+str(s)+" v: "+str(v))
    if(s<0.02):
      MESSAGE1 = "\xC5\x00"
      if(h>0.3333):
        htmp=h-0.3333
        logger.writeLine("Vk1: "+str(htmp))
        vtmp=htmp/0.6666
        logger.writeLine("Vk2: "+str(vtmp))
        vtmp=(2*vtmp)
        logger.writeLine("Vk3: "+str(vtmp))
        v=v/vtmp
        logger.writeLine("Vk4: "+str(v))
    else:
      #Korrektur Gelb
      if (h < 0.33333):
        h= h *0.5
      #Korrektur Cyan
      if (h > 0.33333 and h < 0.5):
        h= h*0.9
      if(h>0.3333):
        htmp=h-0.3333
        logger.writeLine("Vk1: "+str(htmp))
        vtmp=htmp/0.6666
        logger.writeLine("Vk2: "+str(vtmp))
        vtmp=(2*vtmp)
        logger.writeLine("Vk3: "+str(vtmp))
        v=v/vtmp
        logger.writeLine("Vk4: "+str(v))
      h = int((h) * 256)
      #Korrektur Farbverschiebung
      h=h+85
      if(h>256):
        h=256-(h%256)
      else:
        h=abs(h-256)
      h=int(h)
      MESSAGE1 = "\x40" + chr(h)
    if (v>=0.75):
      v=0.75
    v=v*25
    v=int(round(v))
    v=v+2
    v=min(27,v)
    v = max(2,v)
    MESSAGE2 = "\x4E" + chr(v)
    logger.writeLine("H2: "+str(h)+" S2: "+str(s)+" v2: "+str(v))
    self.sock.sendto(MESSAGE1, (self.ip, self.port))
    self.sock.sendto(MESSAGE2, (self.ip, self.port))
    
logger=Logger(False,"/storage/milight.log")
boblightMilightConnector()

This still works but there is one big problem, if i stop video playback and normal ambilight (arduino with ws2801) turns off the milight.py sends the command to set the milights to white mode and this will happen permanent, that means if i don't look video and wnat to turn of the milight bulbs with the remote or the smartphone app they immediatelly will turn on again because boblight will trigger the milight.py script even if there is no playback.

How did you realize that my arduino turn off the lights and how can i integrate the milights better, any idea appreaciated Smile

Here is a link to the api of the milights or how ever they name em:
http://www.limitlessled.com/dev/

the milights are a good and cheaper alternative to the philips hue lights, i payed 80€ for 3 9w RGBW Milight Bulbs + RF Remote + WLAN Bridge, philips hue is about 200€


Reagrds X23

[Image: widget]
[Image: widget]

XBMC: OpenELEC_PVR-ION.x86_64-devel-20110904195355-r8297
HW: Zotac IONITX-P-E / 4GB RAM / 2x 2TB WD20EARS
Skin: Aeon MQ3
(This post was last modified: Yesterday 00:40 by x23piracy.)
find quote
Post Reply