You need to press the "Update" button while XBMC(Kodi) is running to get the JSON-RPC methods that are supported.Derbyboy wrote:Hi,
Why do I not have any options here:
I'll make it do it the first time automatically at some point.
jonib
You need to press the "Update" button while XBMC(Kodi) is running to get the JSON-RPC methods that are supported.Derbyboy wrote:Hi,
Why do I not have any options here:
Sure, but the next time (if you didn't do it) read a couple of pages back before asking and you might find a solution.Derbyboy wrote:Could you help me with whis one as well?
Do this that I posted before. It's a known problem I haven't fixed yet (as I forgot about it the last time I updated the pluginI┬┤m trying to run the scan video library Json.
Interestingly (and lucky youbuilderjer wrote:I am trying to use JSON to get which window is open in XBMC. I guess I have no idea on how to achieve that.
Coolbuilderjer wrote:OK, so I have another question.
NiceI am trying to learn to use JSON to notify me of when media is playing.
That's a notification (event) and you just need to activate "JSON-RPC notifications" in XBMC2s settings. You also need to activate UPnP in XBMC(Kodi). After that you would get all events from XBMC and you can do whatever you want with them.I want to use the Player.OnPlay method, but it doesn't seem to be available in the options provided. Is there a way that I can code this into a python script to achieve this?
Just drag a event to a macro you want it to activate, you can access the information in the event with "eg.event.payload".builderjer wrote:I am receiving all of these notifications in my log, I just don't know how to use them.
Those are "Raw" events just used for debugging, so you should turn that off. You need to disable the "Log only assigned and activated events" to see all events.builderjer wrote:This is my log. It only shows it as a notification, not an event.
Greatbuilderjer wrote:Got it!!! Thank you!!
That would be a bug then, mind posting a new screenshot of the log with RAW events and normal events? I'll check on my system too a bit later with Gotham and HelixI did have to leave the "Raw Events" checked, otherwise it didn't show the events from them.