Page 29 of 94
Re: Support for XBMC2 plugin (formerly XBMCRepeat)
Posted: Tue May 22, 2012 6:02 am
by blaher
jonib wrote:blaher wrote:The same for TV episodes, it says XBMC2.Player.OnStop, instead of XBMC2.Player.OnStop.episode if it's not a manual stop.
That is/was a bug in XBMC see my
ticket, it should be fixed in today's nightly build of XBMC.
jonib
Cheers, it says it's already fixed.
BTW, both examples above, the python script and macro, (after I picked monitor 1), worked for me to display the OSD information.
Re: Support for XBMC2 plugin (formerly XBMCRepeat)
Posted: Tue May 22, 2012 7:22 am
by peppe_sr
jonib wrote:peppe_sr wrote:i would like to have a command to clean library from remote i found in the List of built-in functions this command: CleanLibrary(database). is there a way to set a command in the xbmc2 list to do this.
Sure

. Unfortunately I haven't finished adding the built-in functions directly, but you can still use them via the
Experimental\HTTPAPI action with command
ExecBuiltIn using
CleanLibrary(video) as parameter.
XBMC2CleanLibrary.PNG
If you haven't used the
HTTPAPI action before you need to press the Update button to download the syntax information, if that don't work you can still put in the command manually.
Hope this helps.
jonib
thanks alot for your quick answer.
i tried only yesterday but i have some trouble.
first of all when i edited the HTTPAPI action, after i have used the update button, i haven't found in "miscellaneous command" tab the sub-voice ExecuteBuiltIn, i found it in "broadcast command" tab so i used this one.
i have added this new action to a button of my remote to test the action but, as you can see in the image i had two kind of issues.
first: the site is running team viewer (and this is right, i have the team viewer on in my system).
so i have turned off the team viewer and tested again the command. in this second attemp i had a new messag "HTTPAPI connecction errore etc.....".
could you help me? could depend from the version of the plug in EG (my EG version is 0.4.1r1568. i don't know i'm new in this kind of software.
here some images to explane what i wrote.

config HTTPAPI

first message (team viewer on)

second message (team viewer off)
in each test the xbmc was running
thank you
peppe
Re: Support for XBMC2 plugin (formerly XBMCRepeat)
Posted: Tue May 22, 2012 8:43 am
by jonib
peppe_sr wrote:first of all when i edited the HTTPAPI action, after i have used the update button, i haven't found in "miscellaneous command" tab the sub-voice ExecuteBuiltIn, i found it in "broadcast command" tab so i used this one.
Unfortunately the webpage I get the command information changed after I released the plugin, as a result the categories get messed up, I think it works correctly in the current test version. But anyway the commands should work just fine anyway.
in each test the xbmc was running
Looks like both XBMC and TeamViewer uses network port 80, you need to change the port on one of them, if you change the port in XBMC remember to change in the XBMC2 plugin also (info how to change port in
XBMC). I use port 8080 in XBMC and works great.
Did you restart XBMC when you closed down TeamViewer?
jonib
Re: Support for XBMC2 plugin (formerly XBMCRepeat)
Posted: Tue May 22, 2012 8:53 am
by jonib
blaher wrote:jonib wrote:blaher wrote:The same for TV episodes, it says XBMC2.Player.OnStop, instead of XBMC2.Player.OnStop.episode if it's not a manual stop.
That is/was a bug in XBMC see my
ticket, it should be fixed in today's nightly build of XBMC.
jonib
Cheers, it says it's already fixed.
It was fixed fast that's for sure, but there is already trouble in paradise

check
post.
BTW, both examples above, the python script and macro, (after I picked monitor 1), worked for me to display the OSD information.
Thanks for the report, I was in a bit of a hurry so I assumed non of them would work.

Now the question is are they useful to show how the actions work?
jonib
Re: Support for XBMC2 plugin (formerly XBMCRepeat)
Posted: Tue May 22, 2012 9:17 am
by peppe_sr
jonib wrote:peppe_sr wrote:
Did you restart XBMC when you closed down TeamViewer?
jonib
no i haven't.
i understood it was a problem of ports.
but i use already the port 8080 in xbmc (is the one i setted to run the android remote).
i don't understand why EG calls that port. i have to change the port number also in EG settings. if i remember when i added plugins in EG configuration i read a sort of IP and a port numer (the one in the error). isn't it?
peppe
Re: Support for XBMC2 plugin (formerly XBMCRepeat)
Posted: Tue May 22, 2012 1:33 pm
by jonib
peppe_sr wrote:i don't understand why EG calls that port. i have to change the port number also in EG settings. if i remember when i added plugins in EG configuration i read a sort of IP and a port numer (the one in the error). isn't it?
You need to change the port number in the XBMC2 plugins settings, just doublclick on XBMC2 in the autostart folder in EventGhost, the second editbox is the port.
jonib
Re: Support for XBMC2 plugin (formerly XBMCRepeat)
Posted: Wed May 23, 2012 6:39 am
by blaher
jonib wrote:Now the question is are they useful to show how the actions work?
jonib
Yes, I can use your Python script with a 'Trigger event' of {eg.result} instead of the 'Show OSD' to give me:
Main.30 Rock: Do-Over
i.e. showname: episodename
I couldn't figure that out before.
I think that's what 'Livin' was after, except maybe with the XBMC2.Player.OnPlay prefix instead of Main.
Re: Support for XBMC2 plugin (formerly XBMCRepeat)
Posted: Wed May 23, 2012 7:12 am
by peppe_sr
jonib wrote:peppe_sr wrote:i don't understand why EG calls that port. i have to change the port number also in EG settings. if i remember when i added plugins in EG configuration i read a sort of IP and a port numer (the one in the error). isn't it?
You need to change the port number in the XBMC2 plugins settings, just doublclick on XBMC2 in the autostart folder in EventGhost, the second editbox is the port.
jonib
i set the right port in EG and now the action "sounds good".
thank you
peppe
Re: Support for XBMC2 plugin (formerly XBMCRepeat)
Posted: Wed May 23, 2012 8:23 am
by jonib
peppe_sr wrote:i set the right port in EG and now the action "sounds good".
Great.
Pro tip: If you would like your remote events to be nicer you could use
Remote event mapper plugin(it's included in EventGhost) to rename them to more descriptive names.
jonib
Re: Support for XBMC2 plugin (formerly XBMCRepeat)
Posted: Wed May 23, 2012 11:56 am
by DeeWay
Hello
maybe someone can help me (translated by google)
I've created several playlists in XBMC, now I want to put any playlist on a button on the remote control with Event Ghost .. how can this be done?
thank you
Re: Support for XBMC2 plugin (formerly XBMCRepeat)
Posted: Wed May 23, 2012 2:59 pm
by Livin
HTTP server supports playlists...
http://wiki.xbmc.org/index.php?title=We ... r_HTTP_API
JSON API does too..
"Player.Open" : { "description" : "Opens a file or playlist" }
I suspect you will need to create a macro. jonib could give you the format needed, I'm not up on the format quite yet.
Re: Support for XBMC2 plugin (formerly XBMCRepeat)
Posted: Wed May 23, 2012 9:15 pm
by jonib
DeeWay wrote:I've created several playlists in XBMC, now I want to put any playlist on a button on the remote control with Event Ghost .. how can this be done?
I think the easiest is to use the
HTTPAPI command
PlayFile.
Make a macro and add the
HTTPAPI action from
XBMC2\Experimental. Configure it like the picture below (with a path to your playlist file).
jonib
Re: Start dynamic Playlist
Posted: Wed May 23, 2012 9:39 pm
by jonib
First, I apologize for the extremely late response.

Hopefully it has not scarred you for life.
coolfire wrote:I want to start a dynamic playlist in XBMC with an EventGhost Macro. I hope that is possible.
Looks like the solution is the same as the
post above (how convenient for me

), you just need to know the path to your dynamic list (I assume it's the same as a smart list).
Sorry again for the really late reply, I didn't miss it when you posted but I wasn't able to look into it at the time, then it got lost in all my Firefox tabs (which there are hundreds of).
jonib
Re: Support for XBMC2 plugin (formerly XBMCRepeat)
Posted: Wed May 23, 2012 10:40 pm
by DeeWay
thx
so I can play files directly .. But I want to be my playlist list opens
when I mean "playlist.xsp" entries always played a movie is in the playlist
these three categories, there are .. I want to taste each of them has its own place on the remote
( translate by google )
Re: Support for XBMC2 plugin (formerly XBMCRepeat)
Posted: Thu May 24, 2012 12:29 am
by Livin
I think you are now saying you want to open XBMC to the playslist screen... not actually start a playlist -- correct?
I don't know if there is a way to tell XBMC to open the playlist screen. You'll need to search the wiki, and or post on XBMC's forum. If XBMC provides a way, we can do it with EG.
One thought, if XBMC does not provide a way directly, is to set that to a Favorite (if XBMC allows this) and then open the Favorite.
let us know what you find.