Help with XBMC integration

Posted on
Fri May 09, 2014 9:30 am
sandconformgorgecloud offline
Posts: 85
Joined: Jun 22, 2007

Re: Help with XBMC integration

I have a 770.
Well, when it's cleaing, if I press stop (on Indigo) it does nothing, and continue cleaning.
I tried by http commands to test and effectively when it's cleaning or spotting you can only send another CLEAN command to stop it. Any other commands are ignored. When it's stopped, then you can send the DOCK command.
It's not because the board is busy because my test I make it with a terminal command (curl http…) and nothing else enabled (before I added your plugin too).
And the Wifi is working well, I'm sure :)

Well I can use debug if you need.
No stress :)

Thanks

EDIT:
When I manually press "DOCK" button on my roomba (assuming it need time to go to the base station), your plugin says :
RooWIFI Roomba: changed state to clean
When Roomba arrive :
RooWIFI Roomba: changed state to stop
RooWIFI Roomba: changed state to dock

Posted on
Sat Jun 14, 2014 4:50 pm
T-Power offline
User avatar
Posts: 220
Joined: May 10, 2010

Re: Help with XBMC integration

Hello All,

Has anyone had any success with getting the RooWIFI plugin to work with a Roomba Rootooth Bluetooth Adapter?

T.I.A.
Toran

MacMini 2.3 GHz Intel Core i7 16GB DDR3
Indigo Pro 2022.1 macOS Mojave 10.14.6

Posted on
Sun Jun 15, 2014 10:49 am
tenallero offline
Posts: 94
Joined: Oct 31, 2011
Location: Barcelona

Re: Help with XBMC integration

ssciboz wrote:
I have a 770.
Well, when it's cleaing, if I press stop (on Indigo) it does nothing, and continue cleaning.
I tried by http commands to test and effectively when it's cleaning or spotting you can only send another CLEAN command to stop it. Any other commands are ignored. When it's stopped, then you can send the DOCK command.
It's not because the board is busy because my test I make it with a terminal command (curl http…) and nothing else enabled (before I added your plugin too).
And the Wifi is working well, I'm sure :)

Well I can use debug if you need.
No stress :)

Thanks

EDIT:
When I manually press "DOCK" button on my roomba (assuming it need time to go to the base station), your plugin says :
RooWIFI Roomba: changed state to clean
When Roomba arrive :
RooWIFI Roomba: changed state to stop
RooWIFI Roomba: changed state to dock


Hi ssciboz,,
I am sorry.
I am away from my Indigo setup for some weeks.
I will try to answer you as soon as possible.

Posted on
Sun Jun 15, 2014 10:53 am
tenallero offline
Posts: 94
Joined: Oct 31, 2011
Location: Barcelona

Re: Help with XBMC integration

T-Power wrote:
Hello All,

Has anyone had any success with getting the RooWIFI plugin to work with a Roomba Rootooth Bluetooth Adapter?

T.I.A.
Toran



Hi Toran,

Rootooth is a different animal than Roowifi.
Rootooth is connected via bluetooth to your Mac/Windows machine.
Roowifi is connected to your home wifi.
A Java server is required to transmit your commands to Roomba.
The actual plugin will not understand the RooTooth interface. Maybe, you can adapt it to Rootooth.

Posted on
Sun Jun 15, 2014 3:47 pm
T-Power offline
User avatar
Posts: 220
Joined: May 10, 2010

Re: Help with XBMC integration

Thanks for the response.
I have a RooWIFI coming soon.
I'll try to do something interesting with the RooTooth and report my findings.

Thanks,
Toran

MacMini 2.3 GHz Intel Core i7 16GB DDR3
Indigo Pro 2022.1 macOS Mojave 10.14.6

Posted on
Wed Jul 16, 2014 4:38 pm
dherren offline
Posts: 32
Joined: Nov 26, 2003
Location: Shoreham, VT USA

Re: Help with XBMC integration

> The plugins is developed around a little board that is plugged to the Roomba's serial connector.
> I have not developed the hardware. It is a brilliant work from an engineer nearby I live.
> I will publish the contact info to get the board. I am sure he is selling to USA and Europe.

I would love to get the information about the the board.

Posted on
Thu Jul 17, 2014 2:48 am
tenallero offline
Posts: 94
Joined: Oct 31, 2011
Location: Barcelona

Re: Help with XBMC integration


Posted on
Mon Aug 25, 2014 6:27 pm
tatrog offline
Posts: 39
Joined: Nov 16, 2013

Re: Help with XBMC integration

Love the RooWIFI module and plugin but finding a problem. When the roomba is out cleaning I am getting constancy state changes. Roomba (my device name) change state to x. See log output below. I also added some debug info below the normal log output. I have roomba set to clean when my house is set to away and send me and SMS that its started to clean. However because the of the constant state change I get a new SMS every few min that its started to clean.

Aug 25, 2014, 8:18:57 PM
RooWIFI Roomba: changed state to stop
RooWIFI Roomba: changed state to clean

Aug 25, 2014, 8:19:38 PM
RooWIFI Roomba: changed state to stop
RooWIFI Roomba: changed state to clean
RooWIFI Roomba: changed state to stop
RooWIFI Roomba: changed state to clean

Aug 25, 2014, 8:20:44 PM
RooWIFI Roomba: changed state to stop
RooWIFI Roomba: changed state to clean

Aug 25, 2014, 8:21:16 PM
RooWIFI Roomba: changed state to stop
RooWIFI Roomba: changed state to clean
RooWIFI Roomba: changed state to stop
RooWIFI Roomba: changed state to clean

Aug 25, 2014, 8:22:29 PM
RooWIFI Roomba: changed state to stop
RooWIFI Roomba: changed state to clean
RooWIFI Roomba: changed state to stop
RooWIFI Roomba: changed state to clean
RooWIFI Roomba: changed state to stop
RooWIFI Roomba: changed state to clean
RooWIFI Roomba: changed state to stop
RooWIFI Roomba: changed state to clean


debug report:
Aug 25, 2014, 8:24:11 PM
RooWIFI Preferences were updated, reloading Preferences...
RooWIFI Debug Thread. Roomba State = clean
RooWIFI Debug Thread. Pooling interval = 3
RooWIFI Debug Roomba: Requesting status.
RooWIFI Debug Roomba: Status received.
RooWIFI Debug Thread. Roomba State = clean
RooWIFI Debug Thread. Pooling interval = 3
RooWIFI Debug Roomba: Requesting status.
RooWIFI Debug Roomba: Status received.

RooWIFI Debug Thread. Roomba State = clean
RooWIFI Debug Thread. Pooling interval = 3
RooWIFI Debug Roomba: Requesting status.
RooWIFI Debug Roomba: Status received.
RooWIFI Roomba: changed state to stop
RooWIFI Debug Thread. Roomba State = stop
RooWIFI Debug Thread. Pooling interval = 3
RooWIFI Debug Roomba: Requesting status.
RooWIFI Debug Roomba: Status received.
RooWIFI Roomba: changed state to clean
RooWIFI Debug Thread. Roomba State = clean
RooWIFI Debug Thread. Pooling interval = 3
RooWIFI Debug Roomba: Requesting status.
RooWIFI Debug Roomba: Status received.
RooWIFI Debug Thread. Roomba State = clean
RooWIFI Debug Thread. Pooling interval = 3
RooWIFI Debug Roomba: Requesting status.
RooWIFI Debug Roomba: Status received.
RooWIFI Debug Thread. Roomba State = clean
RooWIFI Debug Thread. Pooling interval = 3
RooWIFI Debug Roomba: Requesting status.
RooWIFI Debug Roomba: Status received.
RooWIFI Debug Thread. Roomba State = clean
RooWIFI Debug Thread. Pooling interval = 3
RooWIFI Debug Roomba: Requesting status.
RooWIFI Debug Roomba: Status received.
RooWIFI Roomba: changed state to stop
RooWIFI Debug Thread. Roomba State = stop
RooWIFI Debug Thread. Pooling interval = 3
RooWIFI Debug Roomba: Requesting status.
RooWIFI Debug Roomba: Status received.
RooWIFI Roomba: changed state to clean
RooWIFI Debug Thread. Roomba State = clean
RooWIFI Debug Thread. Pooling interval = 3
RooWIFI Debug Roomba: Requesting status.
RooWIFI Debug Roomba: Status received.
RooWIFI Debug Thread. Roomba State = clean
RooWIFI Debug Thread. Pooling interval = 3
RooWIFI Debug Roomba: Requesting status.
RooWIFI Debug Roomba: Status received.
RooWIFI Debug Thread. Roomba State = clean
RooWIFI Debug Thread. Pooling interval = 3
RooWIFI Debug Roomba: Requesting status.
RooWIFI Debug Roomba: Status received.
RooWIFI Debug Thread. Roomba State = clean
RooWIFI Debug Thread. Pooling interval = 3
RooWIFI Debug Roomba: Requesting status.
RooWIFI Debug Roomba: Status received.
RooWIFI Roomba: changed state to stop
RooWIFI Debug Thread. Roomba State = stop
RooWIFI Debug Thread. Pooling interval = 3
RooWIFI Debug Roomba: Requesting status.
RooWIFI Debug Roomba: Status received.
RooWIFI Roomba: changed state to clean
RooWIFI Debug Thread. Roomba State = clean
RooWIFI Debug Thread. Pooling interval = 3
RooWIFI Debug Roomba: Requesting status.
RooWIFI Debug Roomba: Status received.
RooWIFI Debug Thread. Roomba State = clean
RooWIFI Debug Thread. Pooling interval = 3
RooWIFI Debug Roomba: Requesting status.
RooWIFI Debug Roomba: Status received.
RooWIFI Debug validating Prefs called
RooWIFI Preferences were updated, reloading Preferences...

Posted on
Thu Sep 25, 2014 11:23 am
Sleepy81 offline
Posts: 47
Joined: Sep 25, 2014

Re: Help with XBMC integration

Having an issue with the XBMC plugin...

I have set up events to change the lights based on "playing", "paused" and "stopped" values. However, I can't seem to get this to work properly.

I first tried to use simeple triggers like this:

Trigger: XBMC media.video becomes on
Action: Dim lights to 0%

Trigger: XBMC player.paused becomes on
Action: Dim lights to 50%

Trigger: XBMC player.stopped becomes on
Action: Dim lights to 100%

The play and stopped triggers works perfectly. However the paused does not work as I want.
When i am playing a movie, and i press paused, the lights dim to 50% as programmed, however, when I press play again, they do not dim down again to 0%, thay remain at 50%. To get the lights to dim down to 0%, I have to hit stop (inturn turning the lights full on), and then play again.

So going from paused to play does not seam to work for me...

I also tried to generate some variables, and executing light commands based on those, but same results. When i am paused in the XBMC, and click play again, the variable does not change from paused to playing status.

The wierd thing is tha I can see, in the Custom States box when I select the XBMC device, that the player value changes correctly.
So that changes from "paused" to "playing", when I hit play on my XBMC from a paused state.
So the plugin detects the change, but I cannot figure out how to get it to use this value....

Anybody know what I'm doing wrong?

Posted on
Sat Dec 13, 2014 7:47 am
DrLove offline
Posts: 260
Joined: Dec 12, 2014
Location: Sweden

Re: Help with XBMC integration

Hi!

New to Indigo (moving from HomeSeer, like yesterday). The XBMC plugin works great for XBMC -> Indigo but if I try to control XBMC (like sending OFF) I get the following error:

XBMC: Request error : Max retries exceeded for url: /jsonrpc


Any suggestions? I have restarted XBMC and Indigo server to no avail.

Best regards, L

Love Kull (yes it's my name)
Blog (in Swedish)
Sweden

Posted on
Tue Dec 23, 2014 12:30 pm
Korey offline
User avatar
Posts: 811
Joined: Jun 04, 2008
Location: Henderson, NV

Re: Help with XBMC integration

tenallero wrote:
Korey wrote:
tenallero wrote:

In the following link, you will find documentation for the XBMC plugin:
https://www.dropbox.com/s/swg416uu7u2f5 ... plugin.pdf

I hope the plugin cover what you need.
Let us know your feedback.

Regards,
Ramon


Just installed and configured the plugin, it works great!

Now I can get rid of all the scripting in XBMC that I was using to trigger Indigo events :P

Thank you very much for this Fantastic Plugin! :D


Hi Korey,

I remember your target was syncronizing your room lights with xmbc player status.
Thanks for your feedback.

Ramon


Hi Ramon,

Any chance of getting an updated "XBMC" plugin for Kodi now that it is released?

Code: Select all
10:23:40 T:4599205888   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ImportError'>
                                            Error Contents: No module named simplejson
                                            Traceback (most recent call last):
                                              File "/Users/Indigo/Library/Application Support/Kodi/addons/service.indigo/default.py", line 26, in <module>
                                                import simplejson
                                            ImportError: No module named simplejson
                                            -->End of Python script error report<--


Thank you and happy holidays.
Attachments
Screen Shot 2014-12-23 at 10.23.41 AM.png
Plugin fails under Kodi (v14)
Screen Shot 2014-12-23 at 10.23.41 AM.png (55.62 KiB) Viewed 16475 times

--
Korey

Posted on
Fri Dec 26, 2014 6:44 am
DrLove offline
Posts: 260
Joined: Dec 12, 2014
Location: Sweden

Re: Help with XBMC integration

Korey wrote:

Code: Select all
10:23:40 T:4599205888   ERROR: EXCEPTION Thrown (PythonToCppException) : -->Python callback/script returned the following error<--
                                             - NOTE: IGNORING THIS CAN LEAD TO MEMORY LEAKS!
                                            Error Type: <type 'exceptions.ImportError'>
                                            Error Contents: No module named simplejson
                                            Traceback (most recent call last):
                                              File "/Users/Indigo/Library/Application Support/Kodi/addons/service.indigo/default.py", line 26, in <module>
                                                import simplejson
                                            ImportError: No module named simplejson
                                            -->End of Python script error report<--


Thank you and happy holidays.


I get the exact same error on 13.2 after "test upgrade" to 14 and then reverting back w/ clean install. Used to work on 13.2 before.. What am I missing?

//L

Love Kull (yes it's my name)
Blog (in Swedish)
Sweden

Posted on
Fri Dec 26, 2014 6:54 am
DrLove offline
Posts: 260
Joined: Dec 12, 2014
Location: Sweden

Re: Help with XBMC integration

PS. After installing Add-on: Simplejson it works again.. May be it works on Kodi if you install it on Kodi to.

Best regards, L

Love Kull (yes it's my name)
Blog (in Swedish)
Sweden

Posted on
Fri Dec 26, 2014 9:00 am
Korey offline
User avatar
Posts: 811
Joined: Jun 04, 2008
Location: Henderson, NV

Re: Help with XBMC integration

DrLove wrote:
PS. After installing Add-on: Simplejson it works again.. May be it works on Kodi if you install it on Kodi to.

Best regards, L



I had the simplejson plugin installed (Kodi moved it over during install from XBMC). But I tried to install it from the repository but still no luck. :cry:

Thanks anyway.

Sticking with XBMC 13.2 until there is an updated plugin for Kodi 14.

--
Korey

Posted on
Thu Jan 08, 2015 12:17 pm
Korey offline
User avatar
Posts: 811
Joined: Jun 04, 2008
Location: Henderson, NV

Re: Help with XBMC integration

I now have the plugin working with Kodi V14.

The fix I found was to change line 26 in : "/Users/Indigo/Library/Application Support/Kodi/addons/service.indigo/default.py"


From: import simplejson
To: import json

So far so good. :D

Going to run it like this until Ramon comes by with a proper update.

--
Korey

Who is online

Users browsing this forum: No registered users and 14 guests