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

.method() #1

Open
gsus24 opened this issue Jan 27, 2021 · 2 comments
Open

.method() #1

gsus24 opened this issue Jan 27, 2021 · 2 comments

Comments

@gsus24
Copy link

gsus24 commented Jan 27, 2021

Hello
get an empty string error. Find out that it comes from empty or missing .method("cmd::execCmd")

This is how it should work on command line
curl -XPOST -d '{"command":"color","color":[0,0,255],"priority":50,"origin":"My Fancy App"}' 'http://192.168.1.110:8090/json-rpc'

What is need for the .method("cmd::execCmd") section?

Thanks

@loicortola
Copy link
Collaborator

Hello,
What you seem to use doesn't really look like a JSON-RPC command...
A JSON-RPC command looks like this: https://www.jsonrpc.org/specification
Your requests seems like a simple REST/JSON POST command, with a JSON payload :)

@gsus24
Copy link
Author

gsus24 commented Jan 28, 2021

Hi
this is what i expect to do
https://docs.hyperion-project.org/en/json/Control.html#set-color
The command above is maybe for the old server.
Please correct me if i am wrong, like i understood its a JSON RPC server
https://docs.hyperion-project.org/en/json/#server-info

Hope you know better. Thanks ;)

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