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

DarkCinema wrote:Still get the "Error opening: jsonrpc.dat" message?
Using the latest test version here, I get the "Error opening: jsonrpc.dat" message (if it's missing), but when I press the update button, I don't get the message anymore. Are you still getting the message after you pressed the update button?

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
piipes
Posts: 34
Joined: Wed Mar 23, 2011 12:21 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by piipes »

Can't find "Add to Favourites" commands anywhere.
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 »

piipes wrote:Can't find "Add to Favourites" commands anywhere.
I did a check on everything I could think of and there don't seem to be a "Add to Favourites" other than from the XBMC GUI. Closest thing I found was to get to the favorites window.

You would need to ask in the XBMC forum if it can be added. And then I can add it to the plugin.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
piipes
Posts: 34
Joined: Wed Mar 23, 2011 12:21 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by piipes »

Thanks jonib, i try in xbmc forum.
jaaahaaa
Posts: 16
Joined: Mon May 24, 2010 3:10 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by jaaahaaa »

Thx for a great plugin however I have a problem getting eg to listen to the events. They get sent but it crashes...

Code: Select all

XBMC2: JSONRPCEventsConnect
try # 1
Listening for XBMC JSON-RPC events
Raw event: {u'params': {u'data': {u'playlistid': 1}, u'sender': u'xbmc'}, u'jsonrpc': u'2.0', u'method': u'Playlist.OnClear'}
Error: JSON-RPC event (<type 'exceptions.KeyError'>, KeyError('item',), <traceback object at 0x03DF3418>)
Not listening for XBMC JSON-RPC events

Any ideas?
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 »

jaaahaaa wrote:Thx for a great plugin however I have a problem getting eg to listen to the events. They get sent but it crashes...
Are you using this test version? As that one shouldn't stop getting events.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
jaaahaaa
Posts: 16
Joined: Mon May 24, 2010 3:10 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by jaaahaaa »

Yes jonib, im using that 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 »

jaaahaaa wrote:Yes jonib, im using that version :(
I rechecked the code and you can't be using that test version, please download it again and test. All the test releases have the same version number(because I'm lazy).

If you get the same (or similar) error I'll look again.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
jaaahaaa
Posts: 16
Joined: Mon May 24, 2010 3:10 pm

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by jaaahaaa »

Got it working now! Had forgot to remove the old XBMC Repeat plugin think that was why it crashed. Thx for the help
ntk1
Posts: 19
Joined: Sat Nov 24, 2012 6:25 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by ntk1 »

hello

i want to change my amp volume when i change the volume in XBMC, but the event when changing the volume in XBMC don't show up/down

XBMC2.Application.OnVolumeChanged {u'muted': False, u'volume': 100}
XBMC2.Application.OnVolumeChanged {u'muted': False, u'volume': 98}

i can also send my amp the volume number, like this

MVL57
MVL56

but when i copy the event it only copy this part
XBMC2.Application.OnVolumeChanged

so i can only send one command for all the volume levels, there is something i can do ?

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

ntk1 wrote:so i can only send one command for all the volume levels, there is something i can do ?
You need to use "event.payload" to get to the extra info in the event, and when you have it you can send it to the amp.

I don't have time right now for more specifics but search for "payload" on the forum and maybe you can figure it out, if not I'll post more later.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
ntk1
Posts: 19
Joined: Sat Nov 24, 2012 6:25 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by ntk1 »

jonib

thanks for the help, i tried but i did not understand nothing, im new with eventghost, so when you have the time if you could help it will be great ( no pressure :) )

thanks!
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 »

ntk1 wrote:i want to change my amp volume when i change the volume in XBMC, but the event when changing the volume in XBMC don't show up/down

XBMC2.Application.OnVolumeChanged {u'muted': False, u'volume': 100}
XBMC2.Application.OnVolumeChanged {u'muted': False, u'volume': 98}
You need to use eg.event.payload["volume"] to get the volume.
To test it you can put a ShowOSD action in the macro with this code in the "Text to display:" field:

Code: Select all

{eg.event.payload["volume"]}
The "{}" indicates it's code and not just text.
i can also send my amp the volume number, like this

MVL57
MVL56
What plugin do you use to send to the amp? It depends on the plugin how it's sent so I don't know how to add the volume yet.

jonib
XBMC2 plugin to control XBMC. If you want to flatter me Image
ntk1
Posts: 19
Joined: Sat Nov 24, 2012 6:25 am

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Post by ntk1 »

i'm using onkyo iscp and select command, this is the commands

MVL57
MVL56
MVL55
MVL54
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 »

ntk1 wrote:i'm using onkyo iscp and select command, this is the commands
I can't test as I don't have your amp, but this should work. :roll:

Put a "Python command" action in the macro, then put the below code in it.

Code: Select all

eg.plugins.OnkyoISCP.SendCommand(u'MVL'+str(eg.event.payload["volume"]))
It should send a MVL+volume to your amp.

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