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.
nonob
Experienced User
Posts: 76
Joined: Tue Dec 06, 2011 6:52 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by nonob »

nonob wrote:So i installed 0.6..3e and now it seems to work better but i have this error message at EG start :

JSON-RPC event settings reset, please check.

I had to change how the settings are stored when I added the events support, you just have to open the configuration for XBMC2 plugin check that the settings are right then save, then the error should be gone.
It works :)
I'm surprised to see "HTTP API connected", i thought it was no longer available with frodo ? isn't it ?

The plugin just initializes the HTTPAPI support, it doesn't actually connect anywhere, so it doesn't know that it's not supported. I'm going to change that message.
Ok.
Put this code in the JSONRPC.Player.Open action, changing the "Path\\Movies.xsp" to your file of course, the slashes need to be doubled or it wont work.

Code: Select all
[{"file":"Path\\Movies.xsp"}]
It works, thanks a lot :)
Mambo100
Posts: 3
Joined: Fri Jan 18, 2013 7:34 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by Mambo100 »

hi
Does someone know how I can check with eventghost whether xmbc doing something e.g. playing a media file?
I need the status of xmbc to trigger an event

thanks a lot

Mambo
blaher
Experienced User
Posts: 487
Joined: Thu Nov 17, 2011 1:27 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by blaher »

Mambo100 wrote:hi
Does someone know how I can check with eventghost whether xmbc doing something e.g. playing a media file?
I need the status of xmbc to trigger an event
Mambo
Yes, this plugin will let you do just that. It can differentiate between movies and music playing too.

viewtopic.php?f=9&t=1562&start=525#p23511 has the latest version
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 »

Mambo100 wrote:Does someone know how I can check with eventghost whether xmbc doing something e.g. playing a media file?
With the XBMC2 plugin you can get all kinds of information, using the Experimental\JSONRPC action. For example Experimental\JSONRPC.Player.GetActivePlayers will return a playerid if something is playing. More information about JSON-RPC in XBMC here.
I need the status of xmbc to trigger an event
With the latest test version that blaher linked to, you can get events from XBMC. Instructions how to activate events here.

The JSON-RPC syntax can be a bit difficult to use, I'm working on making it hopefully a bit easier to use. Just ask and I'll try to help with any commands if I can.

If you are using XBMC 12 (Frodo) you need to use the test version for JSON-RPC and events.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
backbone10
Posts: 3
Joined: Fri Mar 15, 2013 9:28 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by backbone10 »

Hi,
i would be very happy if someon can help me, since i am not an expert :(
I use XBMC 12 on W7 64, a x.10 remote and eventghoste and of course the xbmc2 plugin.
it was hard to find out how to get it configured for me, but o got it working, at least for a few weeks..
Altough i really did not change everything it looks like it is missing some infos
and i get the message :

Error in Action: "XBMC2.RemoteVolPlus()"
Traceback (most recent call last) (1610):
File "<string>", line 1, in <module>
NameError: name 'XBMC2' is not defined

its only an example for the vol+ key, no key that i defined in the past is working now..
i also tried to make a fresh installation, but without a change...

If further infos are required please let me know.....

thx for your help

br

bb10
Attachments
15-03-2013 22-26-26.jpg
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 »

backbone10 wrote:If further infos are required please let me know.....
Attach your EventGhost config file, and I'll look into it.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
backbone10
Posts: 3
Joined: Fri Mar 15, 2013 9:28 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by backbone10 »

Hi,
here is the config file.
Thx for your Offer !!

br
bb10
Attachments
eventghost config_x10 - Kopie.xml
NameError: name 'XBMC2' is not defined
(80.23 KiB) Downloaded 122 times
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 »

backbone10 wrote:Altough i really did not change everything it looks like it is missing some infos
and i get the message :
Well something has changed, EventGhost has replaced the actions for the XBMC2 plugin with PythonCommand actions for some reason so they don't work.
I have seen this happen when the correct plugin was missing when starting EventGhost and then saving the config.

I have attached your config that I have tried to fix, if it don't work and you don't have a (older) backup of your EventGhost config, you will need to re add all the actions you want to use.

jonib
Attachments
eventghost config_x10 - Fixed.xml
(70.17 KiB) Downloaded 144 times
XBMC2 plugin to control XBMC. If you want to flatter me Image
backbone10
Posts: 3
Joined: Fri Mar 15, 2013 9:28 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by backbone10 »

Hi jonib,

that did it , you are the hero of the day for me :)

i will backup my configs from now...

thank you very much for your help !!!

br

bb10
miljbee
Experienced User
Posts: 146
Joined: Fri Mar 27, 2009 1:29 pm
Location: Orl├®ans, France

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by miljbee »

Hello jonib,

I would like to set the volume level of xbmc.

I don't want to loop dozens of vol up/down to set it.

I saw that it could be done with json.

I have choosen Application.Setvolume, and tried different things in the param field, but I can't get it working. Could you help me please ?

Thanks in advance
miljbee
TCP Events : A Better Network Event Sender/Receiver Plugin.
The Network Event Sender/Receiver in C#
Get events in EG from Google Calendar.
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 »

miljbee wrote:I have choosen Application.Setvolume, and tried different things in the param field, but I can't get it working. Could you help me please ?
Two ways:

Code: Select all

[50]
or

Code: Select all

{"volume":50}
I'm trying to make it work without the "[]" or "{}" so commands like setvolume would only need "50" to work, so people wouldn't have to know JSON or have to ask, but I'm not finished with it yet. :cry:

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
Biff
Experienced User
Posts: 56
Joined: Mon Mar 25, 2013 11:06 am

XBMC2: SmallStepForward not available?

Post by Biff »

"XBMC2: SmallStepBack:" is available in EG, but (something like) XBMC2: SmallStepForward doesn't seem to be. Is there a way to create such a function?

And why is there available the first action only without having the vice verse function of it?
Biff
Experienced User
Posts: 56
Joined: Mon Mar 25, 2013 11:06 am

Open XBMC showing the last seen video?

Post by Biff »

Can I open XBMC showing the last seen video on the screen at the last position (where I have stopped, closed the video) of the video or the video before the last seen one by pressing a single key?

There is an action "Show foobar", where could I find the action doing the same for XBMC?

Is there an action to bring the video opened (currently watched and paused) in XBMC on top (in fulls screen mode, if not already being in)?
jonib
Plugin Developer
Posts: 1328
Joined: Thu Mar 26, 2009 9:33 pm
Location: Sweden

Re: XBMC2: SmallStepForward not available?

Post by jonib »

Biff wrote:"XBMC2: SmallStepBack:" is available in EG, but (something like) XBMC2: SmallStepForward doesn't seem to be. Is there a way to create such a function?
I think it's possible to create it using JSON-RPC. Specifically "Experimental\JSONRPC\Player.Seek". I'll see if I can make a command for you, when I have time. You would need to first get the current position then add your desired seek time.
And why is there available the first action only without having the vice verse function of it?
That is something you need to ask the XBMC developers.(XBMC forum)

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: Open XBMC showing the last seen video?

Post by jonib »

Biff wrote:Can I open XBMC showing the last seen video on the screen at the last position (where I have stopped, closed the video) of the video or the video before the last seen one by pressing a single key?
With JSON-RPC it might be possible to do this, I'll have to look into it.
There is an action "Show foobar", where could I find the action doing the same for XBMC?
Do you mean to show/activate the XBMC window? or something else?
Is there an action to bring the video opened (currently watched and paused) in XBMC on top (in fulls screen mode, if not already being in)?
So the video is playing in the background with the XBMC homescreen/filelist showing and you want the video fully visible again? You can use "XBMC2\Buttons\Remote\Dispaly" or "XBMC2\Actions\Media Playing\Fullscreen".

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