Page 39 of 94

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Fri Dec 21, 2012 9:56 pm
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?

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Sat Dec 22, 2012 2:41 pm
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

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Sat Dec 22, 2012 9:17 pm
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!

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Sun Dec 23, 2012 11:08 pm
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

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Sat Dec 29, 2012 4:58 pm
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...

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Sun Dec 30, 2012 11:35 pm
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

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Sun Dec 30, 2012 11:50 pm
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

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

Posted: Mon Dec 31, 2012 9:20 am
by jang430
Is there any command in xbmc2 plugin to switch xbmc from primary display to secondary display?

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Wed Jan 02, 2013 1:30 pm
by jang430
bump

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

Posted: Fri Jan 04, 2013 10:05 am
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

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Fri Jan 04, 2013 11:31 pm
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

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Sat Jan 05, 2013 5:10 pm
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

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Sun Jan 06, 2013 10:45 pm
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

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Mon Jan 07, 2013 3:08 am
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

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Mon Jan 07, 2013 9:46 am
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