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.
isaksson
Posts: 3
Joined: Fri Dec 21, 2012 9:39 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by isaksson »

Hello.
Thanks for a great work with the plugin.

What iam looking for is a way for eventghost to get a signal when openelec (xbmc 12rc1) play / pause / stop
I tryed your plugin and i could send signals to xbmc from the plugin but it does not seems that i could receive any information from xbmc.
and jsonrpc gives me only connection error but for example sendNotification works.

So what do i have to configure to make the plugin listen to what xbmc does?
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 »

isaksson wrote:Thanks for a great work with the plugin.
Thanks. :D
What iam looking for is a way for eventghost to get a signal when openelec (xbmc 12rc1) play / pause / stop
I tryed your plugin and i could send signals to xbmc from the plugin but it does not seems that i could receive any information from xbmc.
and jsonrpc gives me only connection error but for example sendNotification works.
You need to use one of the newer test versions I have posted to get the JSON actions to work with the latest versions of XBMC.
So what do i have to configure to make the plugin listen to what xbmc does?
You need to use this last plugin test version. And look here and here for instructions to activate the events. The events support is experimental at the moment as I haven't finished it yet, so there are bugs and I might change how it works in later versions.

I'm trying to release a more finished version of the XBMC2 plugin before XBMC 12 is officially relesed, but I have a feeling I wont make it as RC2 is already out. :cry:

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
isaksson
Posts: 3
Joined: Fri Dec 21, 2012 9:39 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by isaksson »

Hello.
Thanks for the reply.

Its working now iam receiving play, pause and stop thats great.
But i cant get the jsonrpc to work, and by the way the port i enter in the setup my quess is that it should be the port to webinterface?
I have password in xbmc but i dont se any field to enter username and password, but maybe its not necessary?

this is what i get when i run update on the jsonrpc
Error opening: jsonrpc.dat
JSON-RPC connection error: http://192.0.0.41:8088
{"jsonrpc": "2.0", "id": 1, "method": "JSONRPC.Version"}
Error opening: jsonrpc.dat

httpapi gives me this error
Traceback (most recent call last) (1600):
File "C:\Program Files (x86)\EventGhost\plugins\XBMCRepeat\__init__.py", line 778, in OnUpdate
UpdateCommands()
File "C:\Program Files (x86)\EventGhost\plugins\XBMCRepeat\__init__.py", line 815, in UpdateCommands
doc = xml.dom.minidom.parse(urllib.urlopen('http://wiki.xbmc.org/index.php?title=We ... r_HTTP_API'))
File "xml\dom\minidom.pyc", line 1918, in parse
File "xml\dom\expatbuilder.pyc", line 928, in parse
File "xml\dom\expatbuilder.pyc", line 207, in parseFile
ExpatError: not well-formed (invalid token): line 1417, column 203

Get currently playing filename gives me this
XBMC2: GetCurrentlyPlayingFilename
JSON-RPC connection error: http://192.0.0.41:8088
{"jsonrpc": "2.0", "id": 1, "method": "Player.GetActivePlayers"}
HTTP API connection error: http://192.0.0.41:8088
getcurrentlyplaying()
Application is not running!
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 »

isaksson wrote:Its working now iam receiving play, pause and stop thats great.
Great.
But i cant get the jsonrpc to work,
Looks like something changed in the later XBMC beta/RC, I'll check. Thanks for reporting.
and by the way the port i enter in the setup my quess is that it should be the port to webinterface?
Yes the first port setting is for HTTPAPI(not availibile in Frodo) and the webinterface.
I have password in xbmc but i dont se any field to enter username and password, but maybe its not necessary?
Yeah, I have not implemented the password stuff yet, I don't use it and it has gotten a low priority. Will look into it later. Another user posted a way to edit the plugin and hard code the password and login here.
httpapi gives me this error
Traceback (most recent call last) (1600):
File "C:\Program Files (x86)\EventGhost\plugins\XBMCRepeat\__init__.py", line 778, in OnUpdate
UpdateCommands()
File "C:\Program Files (x86)\EventGhost\plugins\XBMCRepeat\__init__.py", line 815, in UpdateCommands
doc = xml.dom.minidom.parse(urllib.urlopen('http://wiki.xbmc.org/index.php?title=We ... r_HTTP_API'))
File "xml\dom\minidom.pyc", line 1918, in parse
File "xml\dom\expatbuilder.pyc", line 928, in parse
File "xml\dom\expatbuilder.pyc", line 207, in parseFile
ExpatError: not well-formed (invalid token): line 1417, column 203
The HTTPAPI is not available anymore in XBMC 12
Get currently playing filename gives me this
XBMC2: GetCurrentlyPlayingFilename
JSON-RPC connection error: http://192.0.0.41:8088
{"jsonrpc": "2.0", "id": 1, "method": "Player.GetActivePlayers"}
HTTP API connection error: http://192.0.0.41:8088
getcurrentlyplaying()
Application is not running!
I think it's been broken a long time, and I'm probably doing to remove it.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
RBS_Vader
Posts: 3
Joined: Sat Dec 15, 2012 3:37 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by RBS_Vader »

jonib wrote:
RBS_Vader wrote:I checked everything. But no luck at all. Will wait till next XBMC2 release.
Hmm, I moved my XBMC settings dir, so XBMC created a new config and I didn't have to do anything in XBMC for it to work. So only thing needed should be to have the correct IP in XBMC2, and if you run both XBMC and EventGhost on the same computer the default IP should work. :cry:

Only things I can think of:
Did you check this (Settings\Services\Remote control) needs "Allow programs on this system to control XBMC" to be checked, you didn't mention it.
Try putting your actual IP in the XBMC2 config.

Other then that maybe something is conflicting with the port 9777 that XBMC2 is using to send the commands (The port setting in XBMC2s config is for HTTPAPI only)

I don't think the next release is going to help, as I'm not planning any changes in how the actions are sent to XBMC, as they seem to work correctly. But I'll see if I can improve detecting connection problems.

jonib
Of course, i checked all options. But, thanks anyway. I'll try with fresh installs of XMBC, plugin and EventGhost. Hmmm. Maybe installation of MediaPortal is somehow interferring...
rickardk
Posts: 14
Joined: Thu Dec 31, 2009 3:16 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by rickardk »

With the old EventServer you could choose to turn on broadcasting at high level (including button presses etc).
Is that possible now?

I had a timer triggered on left, right, up, down etc so that a macro could shut down some AV equipment when inactive for a couple of minutes
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 »

rickardk wrote:With the old EventServer you could choose to turn on broadcasting at high level (including button presses etc).
Is that possible now?
I haven't seen any button press related events with the new JSON based notifications. Look here for what I assume is the current list of supported events.
I had a timer triggered on left, right, up, down etc so that a macro could shut down some AV equipment when inactive for a couple of minutes
Maybe there is some other event that could work.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
jang430
Experienced User
Posts: 55
Joined: Fri Dec 21, 2012 8:24 am

With xbmc2 plugin, is there a command to switch xbmc to 2nd

Post by jang430 »

Is there any command in xbmc2 plugin to switch xbmc from primary display to secondary display?
jang430
Experienced User
Posts: 55
Joined: Fri Dec 21, 2012 8:24 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by jang430 »

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

Re: With xbmc2 plugin, is there a command to switch xbmc to

Post by jonib »

jang430 wrote:Is there any command in xbmc2 plugin to switch xbmc from primary display to secondary display?
Sorry, I don't think there is a way to switch display externally, only within XBMC. You should ask in the XBMC forum for a way and I would happily add it to the XBMC2 plugin.

The closest I found to change it externally was this, but then you would need to restart XBMC after.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
labtopia
Posts: 1
Joined: Mon Dec 17, 2012 6:13 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by labtopia »

hi jonib,
posted in the xbmc forum but moved it here for you

having to push the xbox360 remote buttons 2 times to get xbmc2 to send the event to xbmc.

i am using usbuirt plugin to capture the ir from the remote. in the log here you can see one press is captured but not sent- second press is sending the mapped command to xbmc. any ideas on why this is happening?

Code: Select all

USB_UIRT.RC6mode6_0_800FF421
   Right
      XBMC2: Right
USB_UIRT.RC6mode6_0_800F7421
USB_UIRT.RC6mode6_0_800FF421
   Right
      XBMC2: Right
USB_UIRT.RC6mode6_0_800F7421
USB_UIRT.RC6mode6_0_800FF421
   Right
      XBMC2: Right
USB_UIRT.RC6mode6_0_800F7421
USB_UIRT.RC6mode6_0_800FF421
   Right
      XBMC2: Right
USB_UIRT.RC6mode6_0_800F7421
USB_UIRT.RC6mode6_0_800FF421
   Right
      XBMC2: Right
USB_UIRT.RC6mode6_0_800F7421
USB_UIRT.RC6mode6_0_800FF421
   Right
      XBMC2: Right
dave
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 »

labtopia wrote:posted in the xbmc forum but moved it here for you
Reply posted in XBMC forum. No need to repost here if I'm already replied in the other forum. :D

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
sunny25a
Posts: 5
Joined: Sat Jan 05, 2013 3:37 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by sunny25a »

Hi,

I have a very strange problem. Maybe someone can help. I use this great plugin with Windows 7 for over one year. It's working great. Thank you for this.

I upgraded to Windows 8 and wanted to test if everythings working but now the emulated keys do not work. I use this just for 3 actions because I can map one key to several actions (depending on the windows/Status of xbmc). The key emulation is working in every other software except in XBMC. I have absolutly no idea why because the keyboard/mouse works.

The event is logged properly but there's just no reaction.

Regards,

S
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 »

sunny25a wrote:I use this great plugin with Windows 7 for over one year. It's working great. Thank you for this.
Great to hear (hmm read :D ).
I upgraded to Windows 8 and wanted to test if everythings working but now the emulated keys do not work.
I can't help with Win8, hopefully someone else can but..
I use this just for 3 actions because I can map one key to several actions (depending on the windows/Status of xbmc).
If you tell me what 3 actions and how you want to use them, I'm sure there are another way to do them without emulating keystrokes or I can add it to the plugin.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
sunny25a
Posts: 5
Joined: Sat Jan 05, 2013 3:37 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by sunny25a »

Hi Jonib,

thank you very much for your support. Not so many people using WIN8 for HTPC yet. We will see how long it takes :-) Win 7 is a good OS I think, regaridnig to Performance and reliability Win8 does a good :-)

To my specific actions:

Well, this is not really a specific one. I just use different actions with one key. Let give you two examples:
- I have a key exit on my remote. During media playback it just stops the video. Only in HomeScreen XBMC closes. With the help of the keymap.xml I could easily do that.
- I have an Info key on my remote. During media Playback the menu appears, on the home Screen the System Info appears, using it on a selected media, file the info for this appears.

Hopefully my English was good enough to explain this :-)

Thank you and Regards,

S
Post Reply