bengalih wrote:eirik226 wrote:Thanks for your quick answer - but all I seem to get is:
I have enabled the Json notification - could it perhaps be a problem with my port?
Yes, probably. It defaults to 9090. Other things (like sabNZB) may be using that port.
You can either change the other apps, or change the kodi listening port:
http://kodi.wiki/view/Advancedsettings.xml#jsonrpc
I'm seeing issues here as well on doing tests:
The problem is that after Kodi quits, I get the following events:
10:32:13 XBMC2.System.OnQuit {u'exitcode': 0}
10:32:14 XBMC2: Disconnected from XBMC, not receiving JSON-RPC notifications.
But then, after I start it up again I don't get any connection. I've played with this for 15 minutes and the majority of my restarts don't initiate a connection.
I have tried playing around with all the different config options in "Services" on Kodi:
- allow remote control via UPnP
- allow remote control by programs *
- zeroconf
- airplay
It seemed that when I had everything enabled I was getting good results in terms of a connection being picked up each time. I restarted about 5 times in a row and each time got the notifications:
10:48:57 XBMC2: Connected to XBMC ( 127.0.0.1 : 9090 ), ready to recive JSON-RPC notifications.
10:48:57 XBMC2.System.OnStart
I messed around trying to figure out which one was doing it, but now I have inconsistent results.
Right now I have them all enabled again, and it still isn't working.
Honestly, I've tried just about every combination. Having them all enabled (just for safety) and then disabling and re-enabling the plugin seems to be the most effective, but even this isn't guaranteed to work.
I believe that the only options that need to be enabled for this to work are:
- Web server
- Remote Control > "Allow remote control by programs on this system" .... And I think only this one is needed for it to honor the Quit command...
I don't know if this is a bug with the plugin, Kodi, or both. I don't know the architecture well enough yet of how Kodi is supposed to notify that it is online.
I'm wondering if this is some sort of port timeout/hang issue due to the inconsistencies, I generally leave my Kodi running, but sometimes I need to restart it remotely because of focus/resolution issues.
This weird behavior may explain why I've seen some other control inconsistencies in the past.