Notice: This forum has been recovered from an old backup, so some content, links, and dates may be outdated. The forum is currently read-only while we restore sign-in and registration functionality. Details

If you find this forum valuable and would like to help keep it online, donations to help cover hosting and domain costs are greatly appreciated, but never expected. You can support the forum through Buy Me a Coffee or Ko-fi. Thank you for helping preserve the EventGhost community.

Support for XBMC2 plugin (formerly XBMCRepeat)

Questions and comments specific to a particular plugin should go here.
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by jonib »

tjabas wrote:sorry to say, but eventghost cant detect any events from kodi, here┬┤s the log:
Yeah, that. I didn't have the energy to look at as the other problem was too frustrating. And as I don't get that error I have no way to test it.

But try this test version I added an alternative setting when activating SSDP.

jonib
Attachments
__init__.py
XBMC2 test ver 0.6.29 "May bad" edition
(122.89 KiB) Downloaded 113 times
XBMC2 plugin to control XBMC. If you want to flatter me Image
tjabas
Experienced User
Posts: 98
Joined: Sun Feb 07, 2016 6:28 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by tjabas »

jonib wrote:
tjabas wrote:sorry to say, but eventghost cant detect any events from kodi, here┬┤s the log:
Yeah, that. I didn't have the energy to look at as the other problem was too frustrating. And as I don't get that error I have no way to test it.

But try this test version I added an alternative setting when activating SSDP.

jonib

sorry it didnt work.

its the same result.
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by jonib »

tjabas wrote:its the same result.
I would like to see the log as it should not be the same even if it didn't work.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
Phil
Experienced User
Posts: 111
Joined: Tue Apr 15, 2014 10:42 am
Location: Merseyside, UK

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by Phil »

Hi
Unfortunately after a promising start mine dropped out as well, this is the last entry I see

12:53:47 Exception in thread Thread-68:
12:53:47 Traceback (most recent call last):
12:53:47 File "threading.pyc", line 532, in __bootstrap_inner
12:53:47 File "threading.pyc", line 484, in run
12:53:47 File "C:\Program Files (x86)\EventGhost\plugins\XBMCRepeat\__init__.py", line 2102, in JSONRPCNotifications
12:53:47 WaitForXBMC(Socket)
12:53:47 File "C:\Program Files (x86)\EventGhost\plugins\XBMCRepeat\__init__.py", line 2034, in WaitForXBMC
12:53:47 if headers['USN'].split(':', 2)[1] not in USNCache:
12:53:47 IndexError: list index out of range
12:53:47
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by jonib »

Phil wrote:Unfortunately after a promising start mine dropped out as well, this is the last entry I see
This is great, these kind of errors are easy to fix as long as they are reported.
As long as the basic detection of Kodi is working I'm happy.

Try this version it should show why you get this error and should not stop working because of it.

jonib
Attachments
__init__.py
XBMC2 test ver 0.6.30 "Slight hiccup" edition.
(123.26 KiB) Downloaded 118 times
XBMC2 plugin to control XBMC. If you want to flatter me Image
Phil
Experienced User
Posts: 111
Joined: Tue Apr 15, 2014 10:42 am
Location: Merseyside, UK

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by Phil »

jonib wrote:Try this version it should show why you get this error and should not stop working because of it.
:shock: Should there be link for 'this version' ?

Now I see it! :D
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by jonib »

Phil wrote: :shock: Should there be link for 'this version' ?

Now I see it! :D
You ware too fast, I added another small fix, after I posted it.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
Phil
Experienced User
Posts: 111
Joined: Tue Apr 15, 2014 10:42 am
Location: Merseyside, UK

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by Phil »

12:25:47 XBMC2: Error: JSON-RPC responce, "result" missing {u'jsonrpc': u'2.0', u'id': 1, u'error': {u'message': u'Method not found.', u'code': -32601}}
12:25:57 XBMC2: Error: JSON-RPC responce, "result" missing {u'jsonrpc': u'2.0', u'id': 1, u'error': {u'message': u'Method not found.', u'code': -32601}}
12:26:07 XBMC2: Error: JSON-RPC responce, "result" missing {u'jsonrpc': u'2.0', u'id': 1, u'error': {u'message': u'Method not found.', u'code': -32601}}
12:26:17 XBMC2: Error: JSON-RPC responce, "result" missing {u'jsonrpc': u'2.0', u'id': 1, u'error': {u'message': u'Method not found.', u'code': -32601}}
12:26:27 XBMC2: Error: JSON-RPC responce, "result" missing {u'jsonrpc': u'2.0', u'id': 1, u'error': {u'message': u'Method not found.', u'code': -32601}}
12:26:37 XBMC2: Error: JSON-RPC responce, "result" missing {u'jsonrpc': u'2.0', u'id': 1, u'error': {u'message': u'Method not found.', u'code': -32601}}
12:26:47 XBMC2: Error: JSON-RPC responce, "result" missing {u'jsonrpc': u'2.0', u'id': 1, u'error': {u'message': u'Method not found.', u'code': -32601}}
12:26:57 XBMC2: Error: JSON-RPC responce, "result" missing {u'jsonrpc': u'2.0', u'id': 1, u'error': {u'message': u'Method not found.', u'code': -32601}}
12:27:07 XBMC2: Error: JSON-RPC responce, "result" missing {u'jsonrpc': u'2.0', u'id': 1, u'error': {u'message': u'Method not found.', u'code': -32601}}
12:27:17 XBMC2: Error: JSON-RPC responce, "result" missing {u'jsonrpc': u'2.0', u'id': 1, u'error': {u'message': u'Method not found.', u'code': -32601}}
12:27:27 XBMC2: Error: JSON-RPC responce, "result" missing {u'jsonrpc': u'2.0', u'id': 1, u'error': {u'message': u'Method not found.', u'code': -32601}}
12:27:37 XBMC2: Error: JSON-RPC responce, "result" missing {u'jsonrpc': u'2.0', u'id': 1, u'error': {u'message': u'Method not found.', u'code': -32601}}
12:27:47 XBMC2: Error: JSON-RPC responce, "result" missing {u'jsonrpc': u'2.0', u'id': 1, u'error': {u'message': u'Method not found.', u'code': -32601}}
12:27:57 XBMC2: Error: JSON-RPC responce, "result" missing {u'jsonrpc': u'2.0', u'id': 1, u'error': {u'message': u'Method not found.', u'code': -32601}}
12:28:07 XBMC2: Error: JSON-RPC responce, "result" missing {u'jsonrpc': u'2.0', u'id': 1, u'error': {u'message': u'Method not found.', u'code': -32601}}
12:28:17 XBMC2: Error: JSON-RPC responce, "result" missing {u'jsonrpc': u'2.0', u'id': 1, u'error': {u'message': u'Method not found.', u'code': -32601}}
12:28:27 XBMC2: Error: JSON-RPC responce, "result" missing {u'jsonrpc': u'2.0', u'id': 1, u'error': {u'message': u'Method not found.', u'code': -32601}}
12:28:37 XBMC2: Error: JSON-RPC responce, "result" missing {u'jsonrpc': u'2.0', u'id': 1, u'error': {u'message': u'Method not found.', u'code': -32601}}
12:28:47 XBMC2: Error: JSON-RPC responce, "result" missing {u'jsonrpc': u'2.0', u'id': 1, u'error': {u'message': u'Method not found.', u'code': -32601}}
12:28:57 XBMC2: Error: JSON-RPC responce, "result" missing {u'jsonrpc': u'2.0', u'id': 1, u'error': {u'message': u'Method not found.', u'code': -32601}}
12:29:07 XBMC2: Error: JSON-RPC responce, "result" missing {u'jsonrpc': u'2.0', u'id': 1, u'error': {u'message': u'Method not found.', u'code': -32601}}
12:29:17 XBMC2: Error: JSON-RPC responce, "result" missing {u'jsonrpc': u'2.0', u'id': 1, u'error': {u'message': u'Method not found.', u'code': -32601}}
12:29:27 XBMC2: Error: JSON-RPC responce, "result" missing {u'jsonrpc': u'2.0', u'id': 1, u'error': {u'message': u'Method not found.', u'code': -32601}}
12:29:37 XBMC2: Error: JSON-RPC responce, "result" missing {u'jsonrpc': u'2.0', u'id': 1, u'error': {u'message': u'Method not found.', u'code': -32601}}
12:29:47 XBMC2: Error: JSON-RPC responce, "result" missing {u'jsonrpc': u'2.0', u'id': 1, u'error': {u'message': u'Method not found.', u'code': -32601}}
12:29:57 XBMC2: Error: JSON-RPC responce, "result" missing {u'jsonrpc': u'2.0', u'id': 1, u'error': {u'message': u'Method not found.', u'code': -32601}}
12:30:07 XBMC2: Error: JSON-RPC responce, "result" missing {u'jsonrpc': u'2.0', u'id': 1, u'error': {u'message': u'Method not found.', u'code': -32601}}
12:30:17 XBMC2: Error: JSON-RPC responce, "result" missing {u'jsonrpc': u'2.0', u'id': 1, u'error': {u'message': u'Method not found.', u'code': -32601}}
12:30:27 XBMC2: Error: JSON-RPC responce, "result" missing {u'jsonrpc': u'2.0', u'id': 1, u'error': {u'message': u'Method not found.', u'code': -32601}}
12:30:37 XBMC2: Error: JSON-RPC responce, "result" missing {u'jsonrpc': u'2.0', u'id': 1, u'error': {u'message': u'Method not found.', u'code': -32601}}
12:30:47 XBMC2: Error: JSON-RPC responce, "result" missing {u'jsonrpc': u'2.0', u'id': 1, u'error': {u'message': u'Method not found.', u'code': -32601}}
12:30:57 XBMC2: Error: JSON-RPC responce, "result" missing {u'jsonrpc': u'2.0', u'id': 1, u'error': {u'message': u'Method not found.', u'code': -32601}}
12:31:07 XBMC2: Error: JSON-RPC responce, "result" missing {u'jsonrpc': u'2.0', u'id': 1, u'error': {u'message': u'Method not found.', u'code': -32601}}


This is the error I get starting up with the latest couple of releases.
I've installed the update remotely but am not near the tv to have any control over it.
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by jonib »

Phil wrote:This is the error I get starting up with the latest couple of releases.
I've installed the update remotely but am not near the tv to have any control over it.
That's the missing "Ping" JSON-RPC Method, I'll be doing a better test function later that will hopefully show why you are missing it, as any JSON-RPC capable Kodi/XBMC should have it.

If the detection of Kodi is working I'll do some bigger redesign of some parts of the plugin that will hopefully make it more robust and also show better errors when there are problems. I was going to do that this week but the detection code was much more elusive than I could handle. :cry:

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
tjabas
Experienced User
Posts: 98
Joined: Sun Feb 07, 2016 6:28 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by tjabas »

hi!

here┬┤s the log:

14:09:17 JSON-RPC connected
14:09:17 HTTP API connected
14:09:17 XBMC2: Listening for XBMC broadcast events
14:09:17 JSON-RPC connect error:
14:09:17 Traceback (most recent call last):
14:09:17 File "C:\Program\EventGhost\plugins\XBMCRepeat\__init__.py", line 1955, in SSDPInit
14:09:17 mreq = socket.inet_aton(_SSDP_IP) + socket.inet_aton(INTERFACE_ADDR)
14:09:17 NameError: global name '_SSDP_IP' is not defined
14:09:17 Exception in thread Thread-7468:
14:09:17 Traceback (most recent call last):
14:09:17 File "threading.pyc", line 532, in __bootstrap_inner
14:09:17 File "threading.pyc", line 484, in run
14:09:17 File "C:\Program\EventGhost\plugins\XBMCRepeat\__init__.py", line 2096, in JSONRPCNotifications
14:09:17 Socket = SSDPInit(SSDP_IP, SSDP_PORT)
14:09:17 File "C:\Program\EventGhost\plugins\XBMCRepeat\__init__.py", line 1955, in SSDPInit
14:09:17 mreq = socket.inet_aton(_SSDP_IP) + socket.inet_aton(INTERFACE_ADDR)
14:09:17 NameError: global name '_SSDP_IP' is not defined
14:09:17


when i start the plugin i get the eventghost notification in kodi, but after that nothing more.


i hope that you can see whats wrong.
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by jonib »

tjabas wrote:
i hope that you can see whats wrong.
Yes a really stupid and totally idiotic error "_SSDP_IP" should be "SSDP_IP", I copied it from my test code and forgot to change it. This is why you need to show me the log.

Try this test version.

jonib
Attachments
__init__.py
XBMC2 test ver "Idiotic" edition.
(123.26 KiB) Downloaded 104 times
XBMC2 plugin to control XBMC. If you want to flatter me Image
tjabas
Experienced User
Posts: 98
Joined: Sun Feb 07, 2016 6:28 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by tjabas »

tested it emediatley, dont work, here┬┤s the log:

14:30:46 JSON-RPC connected
14:30:46 HTTP API connected
14:30:46 XBMC2: Listening for XBMC broadcast events
14:30:46 JSON-RPC connect error:
14:30:46 Traceback (most recent call last):
14:30:46 File "C:\Program\EventGhost\plugins\XBMCRepeat\__init__.py", line 1956, in SSDPInit
14:30:46 sock.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, mreq)
14:30:46 File "<string>", line 1, in setsockopt
14:30:46 error: [Errno 10022] Ett ogiltigt argument angavs
14:30:46 Exception in thread Thread-24:
14:30:46 Traceback (most recent call last):
14:30:46 File "threading.pyc", line 532, in __bootstrap_inner
14:30:46 File "threading.pyc", line 484, in run
14:30:46 File "C:\Program\EventGhost\plugins\XBMCRepeat\__init__.py", line 2107, in JSONRPCNotifications
14:30:46 Socket = SSDPInit(SSDP_IP, SSDP_PORT)
14:30:46 File "C:\Program\EventGhost\plugins\XBMCRepeat\__init__.py", line 1956, in SSDPInit
14:30:46 sock.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, mreq)
14:30:46 File "<string>", line 1, in setsockopt
14:30:46 error: [Errno 10022] Ett ogiltigt argument angavs
14:30:46
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by jonib »

tjabas wrote:tested it emediatley, dont work, here┬┤s the log:
OK, that's the proper error, unfortunately it doesn't help much.

What is you computer running EventGhost? software and networking hardware, as the command I'm using should work I need to do some more research.

Edit: could you test without your firewall?

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
tjabas
Experienced User
Posts: 98
Joined: Sun Feb 07, 2016 6:28 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by tjabas »

jonib wrote:
tjabas wrote:tested it emediatley, dont work, here┬┤s the log:
OK, that's the proper error, unfortunately it doesn't help much.

What is you computer running EventGhost? software and networking hardware, as the command I'm using should work I need to do some more research.

jonib

im using an old asus eee and windows xp, i really dont know the networking card inside the computer.

but your older versions of xbmc2 worked, the only problem was that kodi couldnt autoconnect to eventghost after a kodi shutdown, i needed to restart eventghost to get it working again,
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by jonib »

tjabas wrote:im using an old asus eee and windows xp, i really dont know the networking card inside the computer.
OK
but your older versions of xbmc2 worked, the only problem was that kodi couldnt autoconnect to eventghost, i needed to restart eventghost to get it working again,
Could you tell me what version worked? and test if it still works.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
Post Reply