Page 36 of 94

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Mon Oct 08, 2012 10:30 pm
by Livin
jonib wrote:BUT when I'm trying to create custom Actions it seems that the "Update" button is throwing an error...
Did you do the fix from here? Or else it can't work as Frodo is more strict when sending commands to XBMC.[/quote]

yup I added the code before trying the 'Update' button.

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Mon Oct 08, 2012 11:40 pm
by jonib
Livin wrote:yup I added the code before trying the 'Update' button.
Hmm, maybe something else is new in Frodo, I'll look into it later, I need to update to the latest alpha. Hopefully it's something easy. :D

jonib

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Tue Oct 09, 2012 5:24 am
by Livin
cool, thx. i really want to finally get my home automation tied into XBMC and need JSON to do it.

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Sat Oct 20, 2012 11:12 pm
by jonib
Livin wrote:cool, thx. i really want to finally get my home automation tied into XBMC and need JSON to do it.
Finally had a chance to work on the plugin.(Why does time fly when I'm not getting anything done? :cry: ) I used the code from here to connect to Frodo alpha6, and it seems to work, at least the JSON update button gets all commands now.

If it still don't work post your EventGhost config.

Hopefully I get some real work done tomorrow.

jonib

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Sat Oct 20, 2012 11:28 pm
by Livin
I changed my code a while back and it was working too... you might want to update the fist post with the change log and link

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Thu Oct 25, 2012 12:46 pm
by nonob
Hi,

I don't know if you can help me: i'm searching a way to link the xbmc volume osd with the windows volume.Actually, it is linked to independant xbmc volume.

Thanks

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Thu Oct 25, 2012 1:38 pm
by jonib
nonob wrote:i'm searching a way to link the xbmc volume osd with the windows volume.Actually, it is linked to independant xbmc volume.
I haven't seen anything like that, so don't think it's possible. Ask in the XBMC forum, they should know if possible.
If you want to show the Windows volume in XBMC you could try XBMC2\Experimental\SendNotification.

jonib

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Sun Nov 04, 2012 4:26 pm
by lcmartin74
First, thank you for a great plugin. I have been using it for along time and has made my XBMC life that much more enjoyable.

Now, the problem :D.

I originally used the XBMCRepeat version of this addon and upgraded successfully many months ago to XBMC2 without having to change the folder name from XBMCRepeat.

I just recently upgraded to EventGhost r1582 from r1544 and upon loading, I get and error in the log stating the Error loading Plugin - Unknown Plugin XBMC2.

I have searched this forum and I haven;t come across this issue and if it does it exist, I sincerely apologize for missing it.

I am using Windows 7 64bit.

I have tried adding the plugin back and that works, but going that route, it would appear i would have to redo all my work as it wants to create another folder with all the commands.

Any help on this would be greatly appreciated.

Thank you.

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Mon Nov 05, 2012 12:55 am
by jonib
lcmartin74 wrote:First, thank you for a great plugin. I have been using it for along time and has made my XBMC life that much more enjoyable.
I'm glad to hear(read) it :D
Now, the problem :D.
Aww, why do problems have to ruin the moment. :cry: :)
I originally used the XBMCRepeat version of this addon and upgraded successfully many months ago to XBMC2 without having to change the folder name from XBMCRepeat.

I just recently upgraded to EventGhost r1582 from r1544 and upon loading, I get and error in the log stating the Error loading Plugin - Unknown Plugin XBMC2.

I have searched this forum and I haven;t come across this issue and if it does it exist, I sincerely apologize for missing it.

I am using Windows 7 64bit.

I have tried adding the plugin back and that works, but going that route, it would appear i would have to redo all my work as it wants to create another folder with all the commands.

Any help on this would be greatly appreciated.
OK, this should be an easy fix, read this and if you don't get it working post again.

jonib

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Sat Nov 10, 2012 1:55 pm
by lcmartin74
That seems to have fixed it!! You rock jonib! Thank you very much.

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Wed Nov 14, 2012 10:44 pm
by derelict
First of all ... thank you very much for this usefull plugin and for still supporting it !

here comes my problem with the JSONRPCEvent "Handler" (Latest Frodo Nightly build):

when i play a video (or any other "play" action basically) i get the following error:

Code: Select all

23:31:45   Raw event: {u'params': {u'data': {u'playlistid': 1}, u'sender': u'xbmc'}, u'jsonrpc': u'2.0', u'method': u'Playlist.OnClear'}
23:31:45   Error: JSON-RPC event (<type 'exceptions.KeyError'>, KeyError('item',), <traceback object at 0x049696E8>)
23:31:45   Not listening for XBMC JSON-RPC events
other events from xbmc seem to be fine. But i'm interested in knowing if something is playing in XBMC... and the above error disconnects EG from XBMC everytime this error happens.

if i comment the following part:

Code: Select all

				#except:
				#	import sys
				#	eg.PrintError('Error: JSON-RPC event ' + str(sys.exc_info()))
				#	#eg.PrintError('Error: JSON-RPC event')
				#	break
i get the following error:

Code: Select all

23:37:26   Raw event: {u'params': {u'data': {u'playlistid': 1}, u'sender': u'xbmc'}, u'jsonrpc': u'2.0', u'method': u'Playlist.OnClear'}
23:37:26   message :Playlist.OnClear
23:37:26   Exception in thread Thread-7:
23:37:26   Traceback (most recent call last):
23:37:26     File "threading.pyc", line 532, in __bootstrap_inner
23:37:26     File "threading.pyc", line 484, in run
23:37:26     File "C:\_Applications\EventGhost\plugins\XBMCRepeat\__init__.py", line 1293, in JSONRPCEvents
23:37:26       event += '.' + payload['item']['type']
23:37:26   KeyError: 'item'

if i uncomment the payload handling like:

Code: Select all

					#payload = message['params']['data']
								
					#if payload:
					#	event += '.' + payload['item']['type']
					#	del payload['item']['type']
					#	if not payload['item']:
					#		del payload['item']
i DO NOT get any errors anymore for movies (but obviously loosing the payload stuff in events :-) )

But i DO GET the following error by opening a playlist file:

Code: Select all

23:42:07   Exception in thread Thread-7:
23:42:07   Traceback (most recent call last):
23:42:07     File "threading.pyc", line 532, in __bootstrap_inner
23:42:07     File "threading.pyc", line 484, in run
23:42:07     File "C:\_Applications\EventGhost\plugins\XBMCRepeat\__init__.py", line 1281, in JSONRPCEvents
23:42:07       message = json.loads(message)
23:42:07     File "json\__init__.pyc", line 307, in loads
23:42:07     File "json\decoder.pyc", line 322, in decode
23:42:07   ValueError: Extra data: line 15 column 1 - line 29 column 1 (char 182 - 364)
Any help would be very much appreciated.

I'm using the latest Version of the Plugin: 0.6.3e

Eventghost Version: 0.4.1.r1540

Cheers

dere

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Thu Nov 15, 2012 2:26 am
by jonib
derelict wrote:First of all ... thank you very much for this usefull plugin and for still supporting it !
Thanks.
here comes my problem with the JSONRPCEvent "Handler" (Latest Frodo Nightly build):

when i play a video (or any other "play" action basically) i get the following error:
There was posted a similar problem here. Unfortunately I haven't gotten to fix it yet, but now I have attached a new Test version that hopefully fixes this problem or at least gives a better error message and won't stop other events from XBMC. You shouldn't need the "Show Raw events" option anymore as it's included in the errors now.
and the above error disconnects EG from XBMC everytime this error happens
I make it stop the events when there was an unsupported event so people testing would be forced to report it :twisted: I assumed I would have a finished version without that problem by now :cry: so bad idea.
if i comment the following part: Buncha commented code
Sorry you had to try and fix it yourself. :mrgreen:

jonib

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Thu Nov 15, 2012 8:18 pm
by derelict
Thank you very much.... that solved it for me.

I however still get an error... but this is just for your reference... in case it might help.

Code: Select all

21:03:29   Raw event: {u'params': {u'data': {u'playlistid': 0}, u'sender': u'xbmc'}, u'jsonrpc': u'2.0', u'method': u'Playlist.OnClear'}
21:03:29   JSON unrecogniced event type: 
21:03:29   Raw event: {u'params': {u'data': {u'playlistid': 0}, u'sender': u'xbmc'}, u'jsonrpc': u'2.0', u'method': u'Playlist.OnClear'}
21:03:29   XBMC2.Playlist.OnClear {u'playlistid': 0}
21:03:29   Raw event: '{\n\t"jsonrpc": "2.0",\n\t"method": "Playlist.OnAdd",\n\t"params": {\n\t\t"data": {\n\t\t\t"item": {\n\t\t\t\t"type": "unknown"\n\t\t\t},\n\t\t\t"playlistid": 0,\n\t\t\t"position": 0\n\t\t},\n\t\t"sender": "xbmc"\n\t}\n}\n{\n\t"jsonrpc": "2.0",\n\t"method": "Playlist.OnAdd",\n\t"params": {\n\t\t"data": {\n\t\t\t"item": {\n\t\t\t\t"type": "unknown"\n\t\t\t},\n\t\t\t"playlistid": 0,\n\t\t\t"position": 1\n\t\t},\n\t\t"sender": "xbmc"\n\t}\n}\n{\n\t"jsonrpc": "2.0",\n\t"method": "Playlist.OnAdd",\n\t"params": {\n\t\t"data": {\n\t\t\t"item": {\n\t\t\t\t"type": "unknown"\n\t\t\t},\n\t\t\t"playlistid": 0,\n\t\t\t"position": 2\n\t\t},\n\t\t"sender": "xbmc"\n\t}\n}\n'
21:03:29   Error: JSON-RPC event (<type 'exceptions.ValueError'>, ValueError('Extra data: line 15 column 1 - line 43 column 1 (char 182 - 546)',), <traceback object at 0x047A4828>)
21:03:29   XBMC2.Playlist.OnClear {u'playlistid': 0}
Greets and Thanks

Dere

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Fri Nov 16, 2012 6:37 am
by jonib
derelict wrote:Thank you very much.... that solved it for me.
Cool.
I however still get an error... but this is just for your reference... in case it might help.
The big "Raw event" looks like it combines several events in one and I have read that that was possible. That's something I haven't seen before and there is no support for it in the plugin. Hopefully I can look into it soon and it's not too hard to add support for it.

So thanks for reporting it, any problems reported has a much higher chance to get fixed even if it's been reported before, as it might not get fixed the first time unfortunately.

jonib

Re: Support for XBMC2 plugin (formerly XBMCRepeat)

Posted: Fri Nov 16, 2012 7:08 am
by derelict
There's something else... and i'm not quite sure if it has to do with the recent Change/fix:

When i stop (and maybe start) XBMC... i get tons auf Messages about XBMC2.player.stop or XBMC2.onquit (or similar). Causing a very high CPU load for quite a few seconds.

I didn't had the Chance to investigate further... but will... as soon as time Permits.

Greets

dere