• 1(current)
  • 2
  • 3
  • 4
  • 5
  • 11
  •   
Android -  BobDroid - Control boblight from Android (Now on Play)
#1
Rainbow 
I wrote a small app to control boblight from my phone.

boblight is used to control Ambilight systems.


What you need:

boblight running on your pc/server or other device

Android phone/tablet running Android 4.0 or higher



If you are running boblight on your pc check the boblight.conf global section.
Change:
Quote:[global]
interface 127.0.0.1
port 19333
to
Quote:[global]
port 19333

If you want to allow connecting from every IP.


Google Play Link
Reply
#2
Hello TeKo,

thank you for this app, i have download and installed it on a samsung i9100 (galaxy 2 with stock android 4.0.4) and connected to a boblight-daemon running on windows 8.
The connection works (the boblight-daemon recognized the connect) but after that, the bobdroid-app on my samsung crashes: no response for about 10 seconds, then the android message "bobdroid was closed" window appears. I have tried it for about 3 times with the same result.

How we can analyse what's wrong ?

Thanks & Regards, XBMCManni
Reply
#3
Im going to emulate it on a similar device and see if it stops working there too.

thanks for the feedback.


Ok found it, in the last update I changed the notification, but I didnt know it was for api level 16 (4.1 or higher) only.

New version is uploaded my emulator is not working with 4.0 so I couldnt test it but the notification should work on non JellyBean devices now.
Reply
#4
Hi,

Tried the app this weekend, but no luck.
First it could not connect at all ("check IP" message). I opened up port 19333 on my router and then I got a "time out" error, followed by the "check IP" message.

Did I miss something? Does XMBC need extra settings for the app (e.g. allow external control)?
Reply
#5
No, it has nothing to do with XBMC in fact you can use it without xbmc even running.

If you entered the right ip and allow connection from every ip in your boblight.conf it should work.

You should only have to open the port if you connect over the Internet and not over Lan.
Reply
#6
(2013-03-11, 14:34)TeKo Wrote: No, it has nothing to do with XBMC in fact you can use it without xbmc even running.

If you entered the right ip and allow connection from every ip in your boblight.conf it should work.

You should only have to open the port if you connect over the Internet and not over Lan.

It won't connect Sad

I tried different methods now. Starting (sudo) boblightd or boblight-x11 from cmd did not help either.

Maybe it's my installation? I always use this guide: http://www.lockstockmods.net/2010/05/22/...with-ambx/

The only thing since Frodo is that Boblight won't start automatically anymore, but that's another topic ;-)
Reply
#7
Thats a really old boblight version, you can always get the latest version from here:
https://code.google.com/p/boblight/

Does it even work with the XBMC Addon?

Can you post your boblight.conf?
Reply
#8
(2013-03-11, 23:11)TeKo Wrote: Thats a really old boblight version, you can always get the latest version from here:
https://code.google.com/p/boblight/

Does it even work with the XBMC Addon?

Can you post your boblight.conf?

this is my bob.conf:

Code:
[global]
interface 127.0.0.1
port 19333

[device]
name AmbX_Combust
output "ruby /usr/local/combustd/applications/boblight/boblight.rb"
channels 15
type popen
interval 20000

[color]
name red
rgb FF0000

[color]
name green
rgb 00FF00

[color]
name blue
rgb 0000FF

[light]
name left
color red AmbX_Combust 1
color green AmbX_Combust 2
color blue AmbX_Combust 3
hscan 0 33.33
vscan 0 66.66
saturation 3.0
proportional 20.0
value 3
threshold 20
interpolation on

[light]
name right
color red AmbX_Combust 4
color green AmbX_Combust 5
color blue AmbX_Combust 6
hscan 66.66 100
vscan 0 66.66
saturation 3.0
proportional 20.0
value 3
threshold 20
interpolation on

[light]
name wwleft
color red AmbX_Combust 7
color green AmbX_Combust 8
color blue AmbX_Combust 9
hscan 0 40
vscan 0 33.33
saturation 3.0
proportional 20.0
value 3
threshold 20
interpolation on

[light]
name wwright
color red AmbX_Combust 10
color green AmbX_Combust 11
color blue AmbX_Combust 12
hscan 60 100
vscan 0 33.33
saturation 3.0
proportional 20.0
value 3
threshold 20
interpolation on

[light]
name wwcenter
color red AmbX_Combust 13
color green AmbX_Combust 14
color blue AmbX_Combust 15
hscan 33 66
vscan 0 33.33
saturation 3.0
proportional 20.0
value 3
threshold 20
interpolation on

I'll try the new code.
Reply
#9
Like I said in the first post and in my reply you have to remove this part: "interface 127.0.0.1"

"interface 127.0.0.1" means you can only connect from the PC boblight is running on if you just remove it you can connect from every IP.

And you can connect with multiple clients at the same time so you dont have to stop XBMC to use the app.
Reply
#10
android 4.1.2

latest boblightd and without interface line, so only

[global]
port 19333

app crashes if I want to change color.
I can see the "hello" message in boblightd, so the connection works.

boblightd config is also fine. works with xbmc plugin, boblight-enigma2, boblight-constant, and so on.

do you write a log file in your app?
Reply
#11
No, but I can add saving a log file to sd.

Going to bed now Ill upload the new version within the next 12 hours.
Reply
#12
Here is a version that writes a log to your sdcard root.
http://www.mediafire.com/?34oi330p6i8r6kc
Reply
#13
Great, it is working realy cool Big Grin
Are you considering releasing the source code?

The colour change works only if I switch the lights button on-off-on again.

And a colour wheel would be nice Big Grin
Reply
#14
And a possibility to change the value of the leds.... Do you use as default 20?
Reply
#15
(2013-03-15, 17:19)Yblih Wrote: Great, it is working realy cool Big Grin
Are you considering releasing the source code?

The colour change works only if I switch the lights button on-off-on again.

And a colour wheel would be nice Big Grin

Yea I could release the code but I probably have to clean it up a bit so it doesnt look too shitty...


Yep thats intended, I could make it optional in preferences and add a listener to the seekbars. (going on my todo list)


If you have example code of a color wheel (preferably in c++ or java) I guess I could implement that.

Looking it both over the weekend.


Quote:And a possibility to change the value of the leds.... Do you use as default 20?

Uhm I dont really understand what you mean? value of the leds?
Reply
  • 1(current)
  • 2
  • 3
  • 4
  • 5
  • 11
  •   
 
Thread Rating:
  • 3 Vote(s) - 4.67 Average



Logout Mark Read Team Forum Stats Members Help
BobDroid - Control boblight from Android (Now on Play)4.673