Support for XBMC2 plugin (formerly XBMCRepeat)

Questions and comments specific to a particular plugin should go here.
jonib
Plugin Developer
Posts: 1280
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: xbmc2 jsonrpc TypeError: __call__() takes at most 4 arguments (5 given)

Post by jonib » Sat Dec 23, 2017 1:15 am

dave305 wrote:
Fri Dec 22, 2017 8:17 pm
If I try to edit the action EG freezes solid. I am at my wits end with this one. I searched google, but couldn't find really anything that helped much. Any insight will be helpful.
I'm assuming you have an old version of the plugin,try updating to this version.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image

dennyhle
Posts: 2
Joined: Wed Nov 25, 2015 1:45 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by dennyhle » Sat Dec 23, 2017 4:22 pm

jonib wrote:
Mon Dec 18, 2017 9:05 am

What do you get when pressing the "Test" button in the XBMC2 config?

edit: Also what version EventGhost/XBMC2 plugin/Kodi are you using?
When I hit Test I get:
JSON-RPC connected
JSON-RPC closed
JSON-RPC works.

I enabled both those settings you mentioned and I'm still not getting any events captured in the log. I am using.
Kodi 17.6
EG 0.4.1.r1722
XBMC2 plugin 0.6.19

Thanks!

jonib
Plugin Developer
Posts: 1280
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by jonib » Sun Dec 24, 2017 12:17 am

dennyhle wrote:
Sat Dec 23, 2017 4:22 pm
When I hit Test I get:
JSON-RPC connected
JSON-RPC closed
JSON-RPC works.
Good
XBMC2 plugin 0.6.19
Update the plugin to 0.6.35 here and see if that helps.

I might not reply for a couple of days over Christmas.

edit: Just to verify you have the "Log only assigned and activated events" unchecked? as you won't see any unassigned events otherwise.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image

holdestmade
Experienced User
Posts: 104
Joined: Thu Dec 04, 2014 2:44 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by holdestmade » Wed Feb 14, 2018 8:56 am

I have a request to add currentwindow and currentcontrol events to this plugin.

I have an open thread where I asked for a script to do this and yokel22 is kindly helping me out:

viewtopic.php?f=10&t=10067

Would be great though if this could be added to the plugin ?

Cheers

jonib
Plugin Developer
Posts: 1280
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by jonib » Tue Feb 20, 2018 1:13 pm

holdestmade wrote:
Wed Feb 14, 2018 8:56 am
I have a request to add currentwindow and currentcontrol events to this plugin.
The plugin only supports events created by Kodi, so there is no support for custom events. So any events added to Kodi will be supported in the plugin. You could try and make suggestions for new events here (Kodi forum)
Would be great though if this could be added to the plugin ?
After I have finished the next version (complete rewrite) I might look into adding custom events I added an issue to github here.

I was expecting to be more or less finished with the next version at the end of 2017, unfortunately there was almost no development and as a result I don't know when at this point.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image

holdestmade
Experienced User
Posts: 104
Joined: Thu Dec 04, 2014 2:44 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by holdestmade » Tue Feb 20, 2018 1:20 pm

OK thanks, I have a working solution now using a script

I was reading the other day that v18 of Kodi changes the way JSON requests are done, will this affect this plugin ?

Thanks

jonib
Plugin Developer
Posts: 1280
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by jonib » Wed Feb 21, 2018 2:14 am

holdestmade wrote:
Tue Feb 20, 2018 1:20 pm
OK thanks, I have a working solution now using a script
Great
I was reading the other day that v18 of Kodi changes the way JSON requests are done, will this affect this plugin ?
The plugin uses HTTP POST and the Kodi change seems to effect HTTP GET only so should be fine.

The update in development uses primarily JSON-RPC via TCP but will support HTTP too. and I'm hoping to finish it before Kodi 18 is released.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image

z3us
Posts: 32
Joined: Fri Jul 29, 2011 2:35 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by z3us » Sun Mar 04, 2018 11:25 pm

Hi.
I´m getting this error in the log when I push the "add plugin" button:

Code: Select all

Error while loading plugin-file C:\Program Files (x86)\EventGhost\plugins\XBMCRepeat.
Traceback (most recent call last) (1722):
  File "C:\Program Files (x86)\EventGhost\eg\Classes\PluginModuleInfo.py", line 70, in __init__
    __import__(moduleName, None, None, [''])
  File "C:\Program Files (x86)\EventGhost\plugins\XBMCRepeat\__init__.py", line 7
    <!DOCTYPE html>
    ^
SyntaxError: invalid syntax
I´ve downloaded the plugin from here: https://github.com/EventGhost/EventGhos ... XBMCRepeat, placing both files in plugins/XBMCRepeat


Thx

jonib
Plugin Developer
Posts: 1280
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by jonib » Mon Mar 05, 2018 5:41 am

z3us wrote:
Sun Mar 04, 2018 11:25 pm
I´ve downloaded the plugin from here: https://github.com/EventGhost/EventGhos ... XBMCRepeat, placing both files in plugins/XBMCRepeat
You need to download the "Raw" version of the file or you will get a HTML formatted file that wont work.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image

z3us
Posts: 32
Joined: Fri Jul 29, 2011 2:35 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by z3us » Mon Mar 05, 2018 12:20 pm

jonib wrote:
Mon Mar 05, 2018 5:41 am
z3us wrote:
Sun Mar 04, 2018 11:25 pm
I´ve downloaded the plugin from here: https://github.com/EventGhost/EventGhos ... XBMCRepeat, placing both files in plugins/XBMCRepeat
You need to download the "Raw" version of the file or you will get a HTML formatted file that wont work.

jonib
Raw version?
What I did is right click on _init_ and xbmcclient and then "save as"

Ok, solved. I left click on the files and then right clic on "RAW"- save as...

Awology
Posts: 1
Joined: Wed Apr 11, 2018 12:44 am

Actions being blocked.

Post by Awology » Wed Apr 11, 2018 1:14 am

Hi guys, I've recently installed Eventghost and am trying to map both an IR remote and a keyboard for use with KODI media player, using the XBMC plugin.. The problem I am having is that after installing the XBMC plugin and connecting to my IP under port 9777.. JSON_RPC connects, HTTP API connects and the XBMC folder and actions are loaded, However when I try to test the commands, they are sent in Event ghost but do not seem to come through, or they're being blocked some how.. I have used the same event ghost to send commands to kodi on another machine which seems to work no problem, and then with event-ghost installed on another machine I am able to control kodi on the this machine, but I cannot control kodi from the same machine that I am on.. I have kaspersky internet security and I suspect it may have something to do with it, but even with it turned off, I can't seem to get any response.. I have been twiddling around with this for hours so if anyone could give me a nudge in the right direction, I would appreciate that greatly ..

Thanks in Advance.

jonib
Plugin Developer
Posts: 1280
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: Actions being blocked.

Post by jonib » Wed Apr 11, 2018 7:35 am

Awology wrote:
Wed Apr 11, 2018 1:14 am
but I cannot control kodi from the same machine that I am on..
Lets start with the basics (I finally) added a FAQ Q: How to configure Kodi/XBMC to be controlled by the XBMC2 plugin to the first post.

Check that you have the settings correct in Kodi.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image

Post Reply