Page 43 of 94
Re: Support for XBMC2 plugin (formerly XBMCRepeat)
Posted: Wed Feb 13, 2013 4:30 pm
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
Re: Support for XBMC2 plugin (formerly XBMCRepeat)
Posted: Mon Feb 18, 2013 6:44 pm
by piipes
Can't find "Add to Favourites" commands anywhere.
Re: Support for XBMC2 plugin (formerly XBMCRepeat)
Posted: Mon Feb 18, 2013 7:17 pm
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
Re: Support for XBMC2 plugin (formerly XBMCRepeat)
Posted: Mon Feb 18, 2013 7:41 pm
by piipes
Thanks jonib, i try in xbmc forum.
Re: Support for XBMC2 plugin (formerly XBMCRepeat)
Posted: Fri Feb 22, 2013 11:20 pm
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?
Re: Support for XBMC2 plugin (formerly XBMCRepeat)
Posted: Sat Feb 23, 2013 12:06 am
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
Re: Support for XBMC2 plugin (formerly XBMCRepeat)
Posted: Sat Feb 23, 2013 12:23 am
by jaaahaaa
Yes jonib, im using that version

Re: Support for XBMC2 plugin (formerly XBMCRepeat)
Posted: Sat Feb 23, 2013 1:09 am
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
Re: Support for XBMC2 plugin (formerly XBMCRepeat)
Posted: Mon Feb 25, 2013 8:52 am
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
Re: Support for XBMC2 plugin (formerly XBMCRepeat)
Posted: Tue Feb 26, 2013 12:22 am
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
Re: Support for XBMC2 plugin (formerly XBMCRepeat)
Posted: Tue Feb 26, 2013 4:31 am
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
Re: Support for XBMC2 plugin (formerly XBMCRepeat)
Posted: Tue Feb 26, 2013 11:24 am
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!
Re: Support for XBMC2 plugin (formerly XBMCRepeat)
Posted: Wed Feb 27, 2013 1:01 am
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:
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
Re: Support for XBMC2 plugin (formerly XBMCRepeat)
Posted: Wed Feb 27, 2013 3:09 am
by ntk1
i'm using onkyo iscp and select command, this is the commands
MVL57
MVL56
MVL55
MVL54
Re: Support for XBMC2 plugin (formerly XBMCRepeat)
Posted: Wed Feb 27, 2013 3:36 am
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.
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