Support for XBMC2 plugin (formerly XBMCRepeat)

Questions and comments specific to a particular plugin should go here.
Post Reply
User avatar
Fiasco
Plugin Developer
Posts: 215
Joined: Fri Jul 24, 2009 5:32 am
Location: St. Louis MO
Contact:

Re: XBMCRepeat XBMC plugin based on the official plugin

Post by Fiasco » Tue Jun 22, 2010 3:33 am

W/ XBMC Repeat we can toggle between Digital and Analog audio.

Would it be possible to add a function to select the speaker setup (2.0, 5.1, 7.1 ect)?

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

Re: XBMCRepeat XBMC plugin based on the official plugin

Post by jonib » Tue Jun 22, 2010 3:57 am

Fiasco wrote:Is there a "shuffle" function in XBMCRepeat?

*edit* It's called random :D
Glad you found it.
Maybe I should add it as Shuffle too, as that is what is shown in XBMC.
W/ XBMC Repeat we can toggle between Digital and Analog audio.
Sure, XBMCRepeat\Actions\Uncategorized actions\AudioToggleDigital
Would it be possible to add a function to select the speaker setup (2.0, 5.1, 7.1 ect)?
Unfortunately I have not seen a command to do so.

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

Shodan
Posts: 1
Joined: Thu Aug 19, 2010 10:31 pm

Re: XBMCRepeat XBMC plugin based on the official plugin

Post by Shodan » Thu Aug 19, 2010 10:49 pm

jonib wrote:So I'm finally doing some work on this plugin specifically adding some XBMC HTTP API commands, right now I'm working on GetCurrentlyPlaying() and FileDelete() as those ware some of the commands I need.

So if you use my XBMCRepeat plugin and need any commands supported by the XBMC HTTP API, reply here and I'll see if I can add it (No guarantees).

jonib
Hi, I am very new to eventghost but I have tried out a few HTTP API commands within voxcommando, but as yet it does not have the ability to act on the information received back from xbmc.

Here are a few I have used which would be useful:

GetMusicLabel() --> this can be used to display any information about the song currently playing, I use it to get the name of song and artist name then TTS says it.

GetPercentage
GetPlaylistContents([playlist])
GetVolume
QueryMusicDatabase
QueryVideoDatabase

Anyway they are the ones that I find helpful

Regards

Shodan

Oh I just thought I should add that I use voxcommando for voice control of eventghost to control xbmc over the network. Hopefully I will someday be able to add control of Z-wave devices for home automation but I don't think that eventghost has this plugin yet (correct me if I am wrong)

krambriw
Plugin Developer
Posts: 2570
Joined: Sat Jun 30, 2007 2:51 pm
Location: Stockholm, Sweden
Contact:

Re: XBMCRepeat XBMC plugin based on the official plugin

Post by krambriw » Fri Aug 20, 2010 5:39 am

z-wave is amongst others supported via xPL
http://www.xplmonkey.com/zwave.html
xPL is supported in EG via a xPL plugin. From there on have your z-wave in EG

xPL works so fine, I have used it for my solutions for about one and a half year now without problems

BR Walter

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

Re: XBMCRepeat XBMC plugin based on the official plugin

Post by jonib » Tue Aug 31, 2010 2:54 pm

Shodan wrote:Hi, I am very new to eventghost but I have tried out a few HTTP API commands within voxcommando, but as yet it does not have the ability to act on the information received back from xbmc.
Hi Shodan (Hmm for some reason I'm feeling the urge to play System Shock 2), sorry for this very late reply :oops: , I haven't done anything with this plugin for a while but was going to look into it again but that didn't happen. :(
I'll see if I can do it this week.
Here are a few I have used which would be useful:

GetMusicLabel() --> this can be used to display any information about the song currently playing, I use it to get the name of song and artist name then TTS says it.

GetPercentage
GetPlaylistContents([playlist])
GetVolume
QueryMusicDatabase
QueryVideoDatabase
I'll add them when I get something done.

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

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

Re: XBMCRepeat XBMC plugin based on the official plugin

Post by jonib » Tue Aug 31, 2010 9:29 pm

So I installed the new XBMC Dharma Beta1, and the HTTP API has been deprecated. Instead they have JSON-RPC.

Unfortunately I know very little about JSON-RPC, anybody have any information how I could use it in EventGhost/Python?

I was about to add some HTTP API actions to the plugin, but now I'm not sure.
I'm trying to understand how to use JSON-RPC in XBMC, so this will take much longer. :(

Edit: Hmm, HTTP API seems to still work with XBMC Dharma Beta1, it seemed to not work when I first installed it, must have been user/coder error :oops:

jonib
Last edited by jonib on Sat Sep 04, 2010 7:30 pm, edited 2 times in total.
XBMC2 plugin to control XBMC. If you want to flatter me Image

User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: XBMCRepeat XBMC plugin based on the official plugin

Post by Livin » Tue Aug 31, 2010 9:36 pm

I'd think this would be posted in the XBMC Wiki? If not, post on the XBMC dev forum and I'm sure they'll get back to you quickly...
setup... XBMC, W7MC for DVR & Live OTA TV, JRMC for multi-zone audio, EG, MiCasaVerde Vera3, USB-UIRT IR receiver, Harmony remote, 5.2 home theater system

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

Re: XBMCRepeat XBMC plugin based on the official plugin

Post by jonib » Tue Aug 31, 2010 10:00 pm

Livin wrote:I'd think this would be posted in the XBMC Wiki?
Only reference I found in the WIKI was "HTTP-API is depreciated - use the JSON-RPC interface" :?
If not, post on the XBMC dev forum and I'm sure they'll get back to you quickly...
I'm reading this JSON-RPC thread on the XBMC forum, I'll ask for help there at some point if I can't figure it out myself.

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

kricker
Experienced User
Posts: 147
Joined: Thu Oct 12, 2006 5:49 am
Contact:

Re: XBMCRepeat XBMC plugin based on the official plugin

Post by kricker » Tue Aug 31, 2010 10:05 pm

I am an XBMC team member. I will see if I can find you the relevant info or get you connected to the proper contact to help you with it.

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

Re: XBMCRepeat XBMC plugin based on the official plugin

Post by jonib » Tue Aug 31, 2010 10:16 pm

kricker wrote:I am an XBMC team member. I will see if I can find you the relevant info or get you connected to the proper contact to help you with it.
Cool, thanks.

Edit: In the JSON-RPC thread I found a Python code example, and I got one command working. This code seems to list all the commands, now I just need to find information of the parameters and I might get something working. But there seems to be a lot of functionality missing compared to the HTTP API, like to delete files something I kinda need.

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

User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: XBMCRepeat XBMC plugin based on the official plugin

Post by Livin » Wed Sep 01, 2010 2:55 am

joni,
if you need a tester let me know
setup... XBMC, W7MC for DVR & Live OTA TV, JRMC for multi-zone audio, EG, MiCasaVerde Vera3, USB-UIRT IR receiver, Harmony remote, 5.2 home theater system

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

Re: XBMCRepeat XBMC plugin based on the official plugin

Post by jonib » Thu Sep 02, 2010 9:43 pm

Livin wrote:if you need a tester let me know
Sure, test the attached.

I have attached a test version of the XBMCRepeat plugin, it has only one new (hopefully working) command GetCurrentlyPlayingFilename, It's supposed to return the file path to any file that's playing in XBMC.
It supports JSON-RPC in newer XBMC Dharma builds, and HTTP API on older builds that don't support JSON-RPC.

If using XBMC Dharma Beta1 it won't work for pictures, as I did not find a command to return that.
edit: HTTP API is still working in beta1, and the command GetCurrentlyPlayingFilename uses HTTP API to show the picture path even in beta1, :oops:

Provided this works I'll add other commands, it has very limited error checking so expect it to crash. :twisted:

jonib
Last edited by jonib on Sat Sep 04, 2010 7:34 pm, edited 1 time in total.
XBMC2 plugin to control XBMC. If you want to flatter me Image

User avatar
Livin
Experienced User
Posts: 792
Joined: Wed Oct 08, 2008 4:56 am

Re: XBMCRepeat XBMC plugin based on the official plugin

Post by Livin » Fri Sep 03, 2010 12:03 am

I only use EG for remote functions, so I never pull data/info back from XBMC.

Also, the original version never stopped working for me, even with Beta1.

I'll test this weekend.
setup... XBMC, W7MC for DVR & Live OTA TV, JRMC for multi-zone audio, EG, MiCasaVerde Vera3, USB-UIRT IR receiver, Harmony remote, 5.2 home theater system

kricker
Experienced User
Posts: 147
Joined: Thu Oct 12, 2006 5:49 am
Contact:

Re: XBMCRepeat XBMC plugin based on the official plugin

Post by kricker » Fri Sep 03, 2010 12:35 am

Livin wrote:I only use EG for remote functions, so I never pull data/info back from XBMC.

Also, the original version never stopped working for me, even with Beta1.

I'll test this weekend.
Are you using the plugin's HTTP commands or the Event Server commands? Are not most of the default commands Event Client commands? Event Server commands have not changed. XBMC did receive a fix so commands coming from Event Server would reset the idle timer. Therefore XBMC will no longer idle out while you were navigating menus using Event Server commands.

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

Re: XBMCRepeat XBMC plugin based on the official plugin

Post by jonib » Fri Sep 03, 2010 1:00 am

kricker wrote:Are not most of the default commands Event Client commands?
Yes XBMCRepeat 0.5 only uses Event Client commands. only the test version has a HTTP API/JSON-RPC command, if there are no problems I'll add more.
Therefore XBMC will no longer idle out while you were navigating menus using Event Server commands.
Interesting, I have never noticed this, what version(s) had this problem?

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

Post Reply