Page 79 of 94

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Fri Feb 26, 2016 1:20 pm
by tjabas
jonib wrote:
tjabas wrote:i have searched for xbmc 11 for android, but unfortunately the oldest android version is xbmc12, and sadly that one didnt work.
So you are using Kodi on Android, that is probably why it doesn't work. The SSDP.log will hopefully tell me whats different.

edit: I'll have to test on my android 10" tablet.

jonib
yepp its an an android device, so called minix neo x8-h plus, i think its 4.4.

did you try it on your android device?

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Fri Feb 26, 2016 2:41 pm
by Phil
Hi
I also have the same issue of KODI not being detected unless evenghost is just started.
This is using the latest version of openelec on a Pi 2, every option turn on, so its not just limited to android.

really great plugin and i'd love for it to be working reliably again in combination with my lights.

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Fri Feb 26, 2016 6:01 pm
by tjabas
Phil wrote:Hi
I also have the same issue of KODI not being detected unless evenghost is just started.
This is using the latest version of openelec on a Pi 2, every option turn on, so its not just limited to android.

really great plugin and i'd love for it to be working reliably again in combination with my lights.

thats to bad, i was thinking of installing openelec on my android device just to get this plugin to work, i wonder if it works good on windows?

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Sat Feb 27, 2016 3:23 am
by jonib
Phil wrote:I also have the same issue of KODI not being detected unless evenghost is just started.
This is using the latest version of openelec on a Pi 2, every option turn on, so its not just limited to android.
I need information like logs that you can get from this post. I don't have every device capable of running Kodi/XBMC so I can't add/fix support without information, I use Windows for Kodi development.

jonib

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Sat Feb 27, 2016 3:26 am
by jonib
tjabas wrote:did you try it on your android device?
Not yet, been working on other projects. If you post the log my motivation to work on it will rise exponentially. 8)

jonib

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Sat Feb 27, 2016 10:44 am
by tjabas
jonib wrote:
tjabas wrote:did you try it on your android device?
Not yet, been working on other projects. If you post the log my motivation to work on it will rise exponentially. 8)

jonib
I Will try later today to get the log file, Im a bit unsecure of how to fix it, but i Will try my best.

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Mon Feb 29, 2016 9:43 am
by Phil
Hi
When I enable the plugin with debug I get this

09:35:53 XBMC22.System.OnStart
09:35:53 XBMC2: JSON-RPC notifications: Wait for event.
09:35:53 Exception in thread Thread-23:
09:35:53 Traceback (most recent call last):
09:35:53 File "threading.pyc", line 532, in __bootstrap_inner
09:35:53 File "threading.pyc", line 484, in run
09:35:53 File "C:\Program Files (x86)\EventGhost\plugins\XBMCRepeat\__init__.py", line 2119, in JSONRPCNotifications
09:35:53 if 'notifications' in message['result']:
09:35:53 KeyError: 'result'
09:35:53

09:35:59 JSON-RPC connected
09:35:59 HTTP API connected
09:35:59 XBMC2: Activating JSON-RPC notifications
09:35:59 XBMC2: Connecting to XBMC, to be able to recive JSON-RPC notifications.
09:35:59 XBMC2: Listening for XBMC broadcast events
09:35:59 XBMC2: Connected to XBMC ( 172.20.1.22 : 9090 ), ready to recive JSON-RPC notifications.
09:35:59 XBMC2: JSON-RPC sent: "GetConfiguration".
09:35:59 XBMC22.System.OnStart
09:35:59 XBMC2: JSON-RPC notifications: Wait for event.
09:35:59 Exception in thread Thread-26:
09:35:59 Traceback (most recent call last):
09:35:59 File "threading.pyc", line 532, in __bootstrap_inner
09:35:59 File "threading.pyc", line 484, in run
09:35:59 File "C:\Program Files (x86)\EventGhost\plugins\XBMCRepeat\__init__.py", line 2119, in JSONRPCNotifications
09:35:59 if 'notifications' in message['result']:
09:35:59 KeyError: 'result'
09:35:59


I dont know it if it makes a different but Kodi is always on but overnight gets logged off so will just be displaying the profile page (2 profiles, one for adults, one for the kids)

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Mon Feb 29, 2016 11:31 am
by tjabas
this is the log that i get when i exit kodi on android:

12:29:31 XBMC2: Disconnected from XBMC, not receiving JSON-RPC notifications.
12:29:32 Exception in thread Thread-35015:
12:29:32 Traceback (most recent call last):
12:29:32 File "threading.pyc", line 532, in __bootstrap_inner
12:29:32 File "threading.pyc", line 484, in run
12:29:32 File "C:\Program\EventGhost\plugins\XBMCRepeat\__init__.py", line 2064, in JSONRPCNotifications
12:29:32 WaitForXBMC()
12:29:32 File "C:\Program\EventGhost\plugins\XBMCRepeat\__init__.py", line 1979, in WaitForXBMC
12:29:32 sock.setsockopt(socket.IPPROTO_IP, socket.IP_ADD_MEMBERSHIP, mreq)
12:29:32 File "<string>", line 1, in setsockopt
12:29:32 error: [Errno 10022] Ett ogiltigt argument angavs
12:29:32




and after that i have restarted kodi and nothing happens in the log.

the text in the log is supposed to be red, but i dont know how to change that.

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Tue Mar 01, 2016 12:13 am
by jonib
Phil wrote:I dont know it if it makes a different but Kodi is always on but overnight gets logged off so will just be displaying the profile page (2 profiles, one for adults, one for the kids)
I don't think that should matter.
tjabas wrote:this is the log that i get when i exit kodi on android:
[error snip]
and after that i have restarted kodi and nothing happens in the log.
No idea whats happening there but I'll try to make the plugin handle it somehow.
the text in the log is supposed to be red, but i dont know how to change that.
Don't worry about it as long as I can read the text.

Could you both test the attached version and post any relevant log entries? It should (again) hopefully (again) show more relevant error messages. :|
Thanks for the logs, makes it much easier to find problems.

jonib

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Tue Mar 01, 2016 11:46 am
by tjabas
so here┬┤s the new log:

12:42:22 XBMC2: Raw event: '{"id":1,"jsonrpc":"2.0","result":"pong"}'
12:42:22 Raw event: {u'jsonrpc': u'2.0', u'id': 1, u'result': u'pong'}
12:42:27 XBMC2: Disconnected from XBMC, not receiving JSON-RPC notifications. (this one appears when i kill kodi)
12:42:28 JSON-RPC connect error: (<class 'socket.error'>, error(10022, 'Ett ogiltigt argument angavs'), <traceback object at 0x02DD9530>) (this one appears right after in red)


the log contains much less data then before.

i hope you have any use for it.

thanks.

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Tue Mar 01, 2016 2:16 pm
by Phil
Hi
I get this

14:14:29 XBMC2: JSON-RPC sent: "ping".
14:14:29 XBMC2: JSON-RPC notifications: Wait for event.
14:14:29 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}}
14:14:29 XBMC2: JSON-RPC notifications: Wait for event.
14:14:39 XBMC2: JSON-RPC notifications: Wait for event: Timeout.

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Tue Mar 01, 2016 5:07 pm
by jonib
Phil wrote:14:14:29 XBMC2: JSON-RPC sent: "ping".
14:14:29 XBMC2: JSON-RPC notifications: Wait for event.
14:14:29 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}}
14:14:29 XBMC2: JSON-RPC notifications: Wait for event.
14:14:39 XBMC2: JSON-RPC notifications: Wait for event: Timeout.
Your installation seems to be missing the "Ping" method weird.
Could you add a "XBMC2\Experimental\JSONRPC" action and check (after pressing update) if it has namespace "JSONRPC" and Method "Ping"?
I probably need to add even more debugging info. :cry:

jonib

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Tue Mar 01, 2016 5:17 pm
by jonib
tjabas wrote:the log contains much less data then before.
Try this one as I missed some changes last time.

jonib

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Wed Mar 02, 2016 9:43 am
by Phil
Hi
When I do update actions I get this

09:33:55 Traceback (most recent call last) (1722):
09:33:55 File "C:\Program Files (x86)\EventGhost\plugins\XBMCRepeat\__init__.py", line 1620, in UpdateActions
09:33:55 ActionDict = GetActionDescriptions()
09:33:55 File "C:\Program Files (x86)\EventGhost\plugins\XBMCRepeat\__init__.py", line 1588, in GetActionDescriptions
09:33:55 w = urllib2.urlopen(request)
09:33:55 File "urllib2.pyc", line 126, in urlopen
09:33:55 File "urllib2.pyc", line 397, in open
09:33:55 File "urllib2.pyc", line 510, in http_response
09:33:55 File "urllib2.pyc", line 429, in error
09:33:55 File "urllib2.pyc", line 369, in _call_chain
09:33:55 File "urllib2.pyc", line 605, in http_error_302
09:33:55 File "urllib2.pyc", line 397, in open
09:33:55 File "urllib2.pyc", line 510, in http_response
09:33:55 File "urllib2.pyc", line 435, in error
09:33:55 File "urllib2.pyc", line 369, in _call_chain
09:33:55 File "urllib2.pyc", line 518, in http_error_default
09:33:55 HTTPError: HTTP Error 403: Forbidden

09:33:58 XBMC2: JSON-RPC notifications: Wait for event: Timeout.
09:33:58 XBMC2: JSON-RPC sent: "ping".
09:33:58 XBMC2: JSON-RPC notifications: Wait for event.
09:33:58 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}}

When I run the JSONRPC I get this

09:36:54 JSONRPC
09:36:54 XBMC2 #2: JSONRPC
09:36:54 Error:
09:36:54 {
09:36:54 "code": -32601,
09:36:54 "message": "Method not found."
09:36:54 }


Hope this helps.

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Wed Mar 02, 2016 11:12 am
by jonib
Phil wrote:When I do update actions I get this
That's a known problem, that's to update the "BuiltinFunctions" and not JSONRPC. (Someday I will combine/automate them)
When I run the JSONRPC I get this
You need to update from the JSONRPC action config, does that work? (you need to have Kodi running at the time)

jonib