Support for XBMC2 plugin (formerly XBMCRepeat)
-
- Posts: 25
- Joined: Wed Sep 26, 2012 10:46 pm
Re: Support for XBMC2 plugin (formerly XBMCRepeat)
I am getting a lot of "JSON unrecogniced event type:"error messages like:
Raw event: {u'params': {u'data': {u'muted': False, u'volume': 74}, u'sender': u'xbmc'}, u'jsonrpc': u'2.0', u'method': u'Application.OnVolumeChanged'}
After that I get the correct event: XBMC2.Application.OnVolumeChanged {u'muted': False, u'volume': 74}
Why is this and how can I get rid of these error messages?
Raw event: {u'params': {u'data': {u'muted': False, u'volume': 74}, u'sender': u'xbmc'}, u'jsonrpc': u'2.0', u'method': u'Application.OnVolumeChanged'}
After that I get the correct event: XBMC2.Application.OnVolumeChanged {u'muted': False, u'volume': 74}
Why is this and how can I get rid of these error messages?
Re: Support for XBMC2 plugin (formerly XBMCRepeat)
First off what version are you using?
) have added support for the unrecognized events.
jonib
You will get the unrecognized warning for any events I have not put in specific support for.DarkCinema wrote:Raw event: {u'params': {u'data': {u'muted': False, u'volume': 74}, u'sender': u'xbmc'}, u'jsonrpc': u'2.0', u'method': u'Application.OnVolumeChanged'}
And you are getting the event, that's good just ugly in the log.After that I get the correct event: XBMC2.Application.OnVolumeChanged {u'muted': False, u'volume': 74}

Best way is to report it here, and when I release another test(or a proper) version I will (hopefullyWhy is this and how can I get rid of these error messages?

jonib
-
- Posts: 25
- Joined: Wed Sep 26, 2012 10:46 pm
Re: Support for XBMC2 plugin (formerly XBMCRepeat)
Thanks for the info. I am using version 0.6.11.
Re: Support for XBMC2 plugin (formerly XBMCRepeat)
Hi everyone!
I've updated to the latest version of EventGhost and it broke the XBMC plugin.
It says:
Any help appreciated!
I've updated to the latest version of EventGhost and it broke the XBMC plugin.
It says:
Ideas anyone? Worked like a charm before update!Error starting plugin: XBMC2
Application is not running!
Any help appreciated!
Re: Support for XBMC2 plugin (formerly XBMCRepeat)
Did you use a "Test" version of the XBMC2 plugin before updating? I got the same error but when I replaced it with the test version it works again.Samme wrote:I've updated to the latest version of EventGhost and it broke the XBMC plugin.
Ideas anyone? Worked like a charm before update!
Unfortunately the version in EventGhost install is an older version that saves the settings differently and I'm guessing that's the problem. Unfortunately I'm not done with the new version, so after install of EventGhost the test version needs to be put back.
Edit: Samme, I see you posted a problem to this thread before here, but you never posted back if you ware able to resolve the problem. Unfortunately there has been to many times people post about a problem and I try to help, then I don't get any response back so I don't know if it helped or not. This has a "BIG" effect on my motivation to help and to work on this plugin (and other stuff I do too). So anybody please post a reply if my reply helped or not (This probably applies to other threads too).
jonib
Re: Support for XBMC2 plugin (formerly XBMCRepeat)
Sorry for not replying last time! You've truly made an excellent plugin!
I had forgotten that I was using the "test" version, but now it works again! Thanks a lot!
Also, I understand your point, it's probably in other threads as well, and I feel a bit guilty, I now that I sometimes isn't that good at replying, I'll bear that in mind from now on!
Have a great weekend and thanks again for help and making this plugin!
I had forgotten that I was using the "test" version, but now it works again! Thanks a lot!
Also, I understand your point, it's probably in other threads as well, and I feel a bit guilty, I now that I sometimes isn't that good at replying, I'll bear that in mind from now on!
Have a great weekend and thanks again for help and making this plugin!
Re: Support for XBMC2 plugin (formerly XBMCRepeat)
Thanks.Samme wrote:You've truly made an excellent plugin!
Great.I had forgotten that I was using the "test" version, but now it works again! Thanks a lot!
Sorry for singling you out, you ware just a easy target.Also, I understand your point, it's probably in other threads as well, and I feel a bit guilty, I now that I sometimes isn't that good at replying, I'll bear that in mind from now on!


Thanks again.Have a great weekend and thanks again for help and making this plugin!
jonib
Re: Support for XBMC2 plugin (formerly XBMCRepeat)
I am a new user of eventghost and my main purpose for it it to control XBMC, I am running Frodo 12.2 and I keep getting errors when I attempt to update the JSONRPC interface. I found some posts about updating to the latest test version of _int_py but I still get the errors
Error while loading plugin-file C:\Program Files (x86)\EventGhost\plugins\XBCDRC.
Traceback (most recent call last) (1640):
File "C:\Program Files (x86)\EventGhost\eg\Classes\PluginModuleInfo.py", line 70, in __init__
__import__(moduleName, None, None, [''])
File "C:\Program Files (x86)\EventGhost\plugins\XBCDRC\__init__.py", line 19, in <module>
from xbmcclient import *
ImportError: No module named xbmcclient
Error while loading plugin-file C:\Program Files (x86)\EventGhost\plugins\XBCDRC.
Traceback (most recent call last) (1640):
File "C:\Program Files (x86)\EventGhost\eg\Classes\PluginModuleInfo.py", line 70, in __init__
__import__(moduleName, None, None, [''])
File "C:\Program Files (x86)\EventGhost\plugins\XBCDRC\__init__.py", line 19, in <module>
from xbmcclient import *
ImportError: No module named xbmcclient
Hoping some one can help
Thanks Ken
Error while loading plugin-file C:\Program Files (x86)\EventGhost\plugins\XBCDRC.
Traceback (most recent call last) (1640):
File "C:\Program Files (x86)\EventGhost\eg\Classes\PluginModuleInfo.py", line 70, in __init__
__import__(moduleName, None, None, [''])
File "C:\Program Files (x86)\EventGhost\plugins\XBCDRC\__init__.py", line 19, in <module>
from xbmcclient import *
ImportError: No module named xbmcclient
Error while loading plugin-file C:\Program Files (x86)\EventGhost\plugins\XBCDRC.
Traceback (most recent call last) (1640):
File "C:\Program Files (x86)\EventGhost\eg\Classes\PluginModuleInfo.py", line 70, in __init__
__import__(moduleName, None, None, [''])
File "C:\Program Files (x86)\EventGhost\plugins\XBCDRC\__init__.py", line 19, in <module>
from xbmcclient import *
ImportError: No module named xbmcclient
Hoping some one can help
Thanks Ken
Re: Support for XBMC2 plugin (formerly XBMCRepeat)
You need the "xbmcclient.py" in the same directory, it should be in the "Plugins\XBMCRepeat" dir.kenrad wrote:I am a new user of eventghost and my main purpose for it it to control XBMC, I am running Frodo 12.2 and I keep getting errors when I attempt to update the JSONRPC interface. I found some posts about updating to the latest test version of _int_py but I still get the errors
ImportError: No module named xbmcclient
jonib
Re: Support for XBMC2 plugin (formerly XBMCRepeat)
Ok Jonib,
that did it I have the JSON interface working, but I am having trouble figuring out the parameters.
I found a post of your on the XBMC forum that showed this {"item":{"movieid":4419} as the parameter to play a movie from ID but it is giving me the following error
Error in Action: "XBMC2: JSONRPC: Player.Open"
Traceback (most recent call last) (1640):
File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionBase.py", line 170, in CallWrapper
return self(*args)
File "C:\Program Files (x86)\EventGhost\plugins\XBMCRepeat\__init__.py", line 896, in __call__
responce = self.plugin.JSON_RPC.send(method, ast.literal_eval(ParseString2(param)))
File "ast.pyc", line 49, in literal_eval
File "ast.pyc", line 37, in parse
File "<unknown>", line 1
{"item":{"movieid":437}
^
SyntaxError: unexpected EOF while parsing
Im thinking that I am missing something in the parameter but not sure what it is
I am trying to setup eventghost so that my home automation system can trigger macros from the command line and play a movie based on voice recognition so I need to create a macro that will play that will play each movie from the id.
Please help
Thanks Ken
that did it I have the JSON interface working, but I am having trouble figuring out the parameters.
I found a post of your on the XBMC forum that showed this {"item":{"movieid":4419} as the parameter to play a movie from ID but it is giving me the following error
Error in Action: "XBMC2: JSONRPC: Player.Open"
Traceback (most recent call last) (1640):
File "C:\Program Files (x86)\EventGhost\eg\Classes\ActionBase.py", line 170, in CallWrapper
return self(*args)
File "C:\Program Files (x86)\EventGhost\plugins\XBMCRepeat\__init__.py", line 896, in __call__
responce = self.plugin.JSON_RPC.send(method, ast.literal_eval(ParseString2(param)))
File "ast.pyc", line 49, in literal_eval
File "ast.pyc", line 37, in parse
File "<unknown>", line 1
{"item":{"movieid":437}
^
SyntaxError: unexpected EOF while parsing
Im thinking that I am missing something in the parameter but not sure what it is
I am trying to setup eventghost so that my home automation system can trigger macros from the command line and play a movie based on voice recognition so I need to create a macro that will play that will play each movie from the id.
Please help
Thanks Ken
Re: Support for XBMC2 plugin (formerly XBMCRepeat)
Great.kenrad wrote: that did it I have the JSON interface working,
You just need to match the "curly brackets" ( {} ).I found a post of your on the XBMC forum that showed this {"item":{"movieid":4419} as the parameter to play a movie from ID but it is giving me the following error
Code: Select all
{"item":{"movieid":4419}}
jonib
Re: Support for XBMC2 plugin (formerly XBMCRepeat)
Ok that was it thanks.
Is there any where that the parameters are documented?
also now that I have created the macro in eventghost how can I trigger it from the command line the macroi is named "play2fast2"
I tried sending -e 2fast2 and nothing happens and nothing appears in the event log?
Thanks Ken
Is there any where that the parameters are documented?
also now that I have created the macro in eventghost how can I trigger it from the command line the macroi is named "play2fast2"
I tried sending -e 2fast2 and nothing happens and nothing appears in the event log?
Thanks Ken
Re: Support for XBMC2 plugin (formerly XBMCRepeat)
The XBMC JSON-RPC API is here, with parameters.kenrad wrote:Is there any where that the parameters are documented?
This should work to generate an event, you have set the option to show all events?also now that I have created the macro in eventghost how can I trigger it from the command line the macroi is named "play2fast2"
I tried sending -e 2fast2 and nothing happens and nothing appears in the event log?
jonib
Re: Support for XBMC2 plugin (formerly XBMCRepeat)
also now that I have created the macro in eventghost how can I trigger it from the command line the macroi is named "play2fast2"
This should work to generate an event, you have set the option to show all events?I tried sending -e play2fast2 and nothing happens and nothing appears in the event log?
jonib
I tried this and its not triggering the macro, I have the log box unchecked so it should be showing all events if I am correct?
Re: Support for XBMC2 plugin (formerly XBMCRepeat)
I just tried and I get an "Main.play2fast2" event, so don't know why you wouldn't get that, sorry.kenrad wrote:I tried this and its not triggering the macro, I have the log box unchecked so it should be showing all events if I am correct?
I ran this from the commandline:
Code: Select all
EventGhost.exe -e play2fast2
jonib