Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feedback #28

Open
Samtronic opened this issue Mar 18, 2013 · 3 comments
Open

Feedback #28

Samtronic opened this issue Mar 18, 2013 · 3 comments

Comments

@Samtronic
Copy link

Hi Terence !

Is it possible to receive feedback from XBMC in your script. I want when a receive this feedback from XBMC "method":"Input.OnInputRequested". parse the result.
What is the script function receives all feedback. I try this function in your script 'self.rpc = function (method, params, callback)'. I put this in the function

method = data.method;
if (method == "Input.OnInputRequested") {
CF.flipToPage ("Movie");
}

without success.
For now I create another system without any problem, but I would better integrate to your script.

Thanks
Steven

@CF-Terence
Copy link
Contributor

The script is receiving feedback using HTTP-JSON protocol via the webserver interface. However there's another way of receiving the feedback that is via TCP on port 9090. Not all methods are available on both connection methods and protocols.

In your case, I do believe that the Input.OnInputRequested is not supported in the JSON. Maybe you can tell me exactly what type of input/actions that you want to execute and we can try to see if there's a way to work around it.

@Samtronic
Copy link
Author

Hi Terence !

I already have a system configured TCP port 9090 for XBMC. I can receive feedback from XBMC and parse it whitout problem but I want delete this system and parse feedback from your script, but I dont know how but the feedback in your script
When XBMC open a keyboard popup in its GUI for search, XBMC send response {"jsonrpc":"2.0","method":"Input.OnInputRequested","params":{"data":{"title":"Entrer Mot de Recherche","type":"keyboard","value":""},"sender":"xbmc"}}.
When a receice this feedback a subpage open and I can send input with this command 'self.rpc("Input.Sendtext", {"text": ""+search_string+"", "done": false}, self.logReplyData); for search a movie, for example.

Thanks

@CF-Terence
Copy link
Contributor

Erm ... currently there is already a search function implemented in the module but it's not using the search protocol from XBMC itself but rather just searching the library database in the global arrays. Will need to study more into this.

You can actually test out the JSON commands and feedbacks to the XBMC system using Google Chrome's Simple REST client - can try sending some commands and see what feedbacks are given back. Then if you can get me the feedback strings, then we'll see how we can progress from there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants