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 »

perezbalen wrote:does someone know of a way to call the "show subtitles search window" with an eventghost action?. So far I can only open it using the OSD menu, and then selecting the option.
Here is a way, unfortunately EventGhost is unresponsive until the window is closed. Looks like EventGhost is waiting for a response that only comes after the subtitle search window is closed.

I'll have to look into it and see if there is anything I can do.

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

Yeees, another test version, like we need more of these. :roll:

Small change again, but should be useful for some JSON-RPC commands. Basically there are some JSON-RPC commands in Kodi/XBMC that don't return a result right away and blocks EventGhost from doing anything, until it gets unblocked depending on the command.

So I have added a timeout of 60 seconds, if a command takes longer the plugin will continue normally after 60 seconds.
And I have added a new option for JSON-RPC commands to not wait for the result from the command so it won't block EventGhost. This is not suitable for commands you expect results from.

I know of one command with this blocking problem "gui.activatewindow" with "{"window":"subtitlesearch"}" it shows the subtitle search window, and it will block EventGhost until the window is closed and you wouldn't be able to use your remote to close it, very problematic.

@leothlon please test if you're still interested.

jonib
Attachments
__init__.py
XBMC2 test ver 0.6.20 Don't block me bro edition.
(112.65 KiB) Downloaded 197 times
XBMC2 plugin to control XBMC. If you want to flatter me Image
Talguy
Posts: 25
Joined: Wed Mar 12, 2014 3:07 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by Talguy »

I just updated to the latest version you just posted and again I am no longer receiving events when Kodi started playback or stop playback of media files. Can you look into why this has been happening?
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 »

Finally had a chance to look into this.
Talguy wrote:I just updated to the latest version you just posted
Hmm, we seem to have different concepts of time. :mrgreen:
and again I am no longer receiving events when Kodi started playback or stop playback of media files. Can you look into why this has been happening?
I have tested XBMC 13.2, Kodi 14.2 and Kodi 15 alpha and all work with events.

So I have to guess it's something with your settings/firewall or something like that.

Or I need more information.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
tyebeach
Posts: 1
Joined: Mon Apr 13, 2015 9:59 pm

XBMC2 and Kodi

Post by tyebeach »

Sorry if this question has already been asked, but is XBMC2 compatible with Kodi. I can't seem to get it to connect.
Talguy
Posts: 25
Joined: Wed Mar 12, 2014 3:07 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by Talguy »

jonib wrote:Finally had a chance to look into this.
Talguy wrote:I just updated to the latest version you just posted
Hmm, we seem to have different concepts of time. :mrgreen:
and again I am no longer receiving events when Kodi started playback or stop playback of media files. Can you look into why this has been happening?
I have tested XBMC 13.2, Kodi 14.2 and Kodi 15 alpha and all work with events.

So I have to guess it's something with your settings/firewall or something like that.

Or I need more information.

jonib
ok so I just assigned a password in kodi and added to the this plugin's settings and it seems to be working now. weird that all it needed was a password to be assigned
GhostMine
Posts: 4
Joined: Mon Sep 09, 2013 9:13 am

Track XBMC media changes

Post by GhostMine »

Hi all. I have been a long time user but never posted. Ive got quite a few macros, but mostly to do with AutoRemote and file sharing and window control via phone shakes, but none to do with broadcast plugins.

Can someone help me understand the XBMC2 plugin ? How can I get it to generate an event like a media change IE when a movie changes, or a track ? I would like to send an AutoRemote message to my phone when ever the media changes but can't figure out how to get any XBMC events to generate in the logs.
XBMC2.PNG
The plugin seems to be connected by the upper blue log entries, but I have no idea how to get log events to generate.

Do I need to add in any other plugins ? I am at that point where reading more is actually confusing me more and the thread for the plugin is massive. Sorry if I missed something obvious, but I have spun myself out of the realm of logic on this. Can someone help me with this, or point me somewhere ? The different ports are confusing me especially as to which is what.
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Track XBMC media changes

Post by jonib »

GhostMine wrote:Can someone help me understand the XBMC2 plugin ?
Sure.
How can I get it to generate an event like a media change IE when a movie changes, or a track ?
To get events from Kodi/XBMC you need to activate "JSON-RPC notifications" in the XBMC2 plugins settings. Unless you are using a very old version (XBMC 10/11 maybe don't remember right now) that don't support it, broadcast is for old XBMCs (or if you use a plugin in XBMC that uses it).

You also need to activate some stuff in Kodi/XBMCs settings, "Services->UPnP->Allow control of Kodi/XBMC via UPnP" needs to be activated so the XBMC2 plugin detects when Kodi is starting.
You might need to activate "Services->Remote control->Allow programs on other systems to control Kodi".
Do I need to add in any other plugins ?
No other plugins are needed.
I am at that point where reading more is actually confusing me more and the thread for the plugin is massive. Sorry if I missed something obvious, but I have spun myself out of the realm of logic on this. Can someone help me with this, or point me somewhere ? The different ports are confusing me especially as to which is what.
There should be better documentation about this stuff not having to read 100 of posts, but last time I tried to do some documentation I had a heart-attack. :cry:

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
GhostMine
Posts: 4
Joined: Mon Sep 09, 2013 9:13 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by GhostMine »

Thanks Jonib !

It appears I had tried the JSON option when it wasn't connecting initially. It kept popping errors in the log so I disabled thinking I didn't even need it. But once the connection issue was fixed, the JSON option was the final thing needed. I found a random comment in this thread :shock: mentioning about having to use JSON in the newer plugin.

Once I ticked it, it all seemed to work. I had everything else correct, just that JSON option :oops:

I am actually really digging this plugin now, and may try to use it for everything Kodi/XBMC. Currently I am using AutoNotification and Tasker and some received broadcast intents to extract all the data from genre to rating to type and all other data. If I can figure out this plugin a little better, I can let my PC do all the work and just forward the data to my mobile devices.

Thanks again for taking the time to reply Jonib, I appreciate it. 8)
Acejoker
Posts: 7
Joined: Wed Apr 29, 2015 2:55 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by Acejoker »

I've been desperately trying to get eventghost to detect events from XBMC/Kodi (V14.2) with no luck. I have the JSON-RPC Notification enabled in eventghost (0.4.1r1700) and Service Remote Control and UPnP are also enabled in Kodi.

The Eventghost log doesn't throw any error of any sort and also displays that JSON-RCP is communicating with Kodi. (XBMC2: Connected to XBMC ( 127.0.0.1 : 9090 ), ready to receive JSON-RPC notifications.). However, when I use Kodi, I don't see any events being logged into eventghost other than Task.Activated/Task.Deactivated.

To give a little background as to what I'm trying to accomplish, I'm trying to launch Kodi (if not already opened) and a Kodi addon (advanced launcher) when my Xbox controller is connected. The part where I'm stuck at is getting Kodi to launch an addon.

I've tried to look through the thread for a solution but wasn't able to find or understand much.... I am not a smart man. Hopefully what I'm trying to do is possible and I'd really appreciate any kind of guidance that can be provided.

Thanks in advance! :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 »

I'm just going to bed so can't help more right now.
Acejoker wrote:displays that JSON-RCP is communicating with Kodi. (XBMC2: Connected to XBMC ( 127.0.0.1 : 9090 ), ready to receive JSON-RPC notifications.). However, when I use Kodi, I don't see any events being logged into eventghost other than Task.Activated/Task.Deactivated.
But as you are getting the message "Connected to XBMC" you should get events from Kodi, only thing I can think of right now is that you have "Log only assigned and activated events" checked in the bottom of EventGhosts window. If that's unchecked you should be getting events when you play a media file or certain other actions.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
Acejoker
Posts: 7
Joined: Wed Apr 29, 2015 2:55 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by Acejoker »

jonib wrote:only thing I can think of right now is that you have "Log only assigned and activated events" checked in the bottom of EventGhosts window. If that's unchecked you should be getting events when you play a media file or certain other actions.
jonib
I doubled checked to make sure I didn't have the log only assigned and activated events option checked and I didn't have it on.

Here's an image of my log.
Untitled-1.jpg
This is with Kodi opened and after I tried to play a movie, open an addon and play some music. None of it was logged.

If you can think of anything else, let me know. I really appreciate the help.

Thanks,
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 »

Acejoker wrote:This is with Kodi opened and after I tried to play a movie, open an addon and play some music. None of it was logged.

If you can think of anything else, let me know. I really appreciate the help.
This is weird, I can't think of whats going on. I'll look into it tomorrow and probably post a test version with some more debugging code that can hopefully show what's going on.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
Acejoker
Posts: 7
Joined: Wed Apr 29, 2015 2:55 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by Acejoker »

jonib wrote:I'll look into it tomorrow and probably post a test version with some more debugging code that can hopefully show what's going on.
jonib
That'd be really great. I've tried installing a clean version of kodi/eventghost on my laptop and was faced with the same problem (no logging of Kodi actions by eventghost, despite the JSON-RCP notification being activated and connected to Kodi).

I'll wait and see if you can dig up anything on your end but I'm all out of ideas here...

Thanks again!
GhostMine
Posts: 4
Joined: Mon Sep 09, 2013 9:13 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by GhostMine »

I'm having the same issue as AceJoker. For no reason the plugin seems to just stop announcing events. If I go into the plugin and untick json and broadcast then apply, then Ok.....then go back in and reselect them and apply then it usually starts working again for a while.

Ive tried changing ports to 80, 8080 and my own ports, got rid of password and user. Doesn't seem to make a difference in the consistency of it occurring.
Post Reply