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.
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.
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?
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
XBMC2 plugin to control XBMC. If you want to flatter me
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)
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.
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.
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)
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.
jonib
XBMC2 plugin to control XBMC. If you want to flatter me
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}}