b-jesch / script.service.hypercon

WIP
1 stars 0 forks source link

Feature request: Hyperion NG compatibility #2

Open V10lator opened 4 years ago

V10lator commented 4 years ago

As the title says it would be nice to get NG compatibility.

Original Post: Whatever I try, all I get is "Keine Verbindung zum Hyperion Server" which means "no connection to the hyperion server". Hyperion is up and running, can connect through the exact same IP and port just fine:

CoreELEC:~ # telnet 127.0.0.1 19444
Connected to 127.0.0.1
help
{"command":"","error":"Errors during message parsing, please consult the Hyperion Log.","success":false,"tan":0}
b-jesch commented 4 years ago

Are You running Hyperion NG?

V10lator commented 4 years ago

Yes. Is this tool not compatible with it?

b-jesch commented 4 years ago

Unfortunately I have to tell you that this addon is not compatible with Hyperion NG. The addon was designed and written for the "normal" Hyperion. Hyperion NG uses a modified, proprietary protocol, which is not backward compatible to Hyperion (and this addon).

b-jesch commented 4 years ago

For comparsion: This is the response of the command "help" on Hyperion:

telnet 192.168.10.42 19444
Trying 192.168.10.42...
Connected to 192.168.10.42.
Escape character is '^]'.
help
{"error":"Error while parsing json: * Line 1, Column 1\n  Syntax error: value, object or array expected.\n","success":false}
V10lator commented 4 years ago

I see. Anyway, found another tool (hyperion.control) made by the hyperion team which works for me. I guess your tool has more features but have a look at this, it might use a backward compatible API: https://github.com/hyperion-project/hyperion.control/blob/master/resources/lib/connection.py (it also has a connection_ws.py file but that seems unused).