Hi all,
I am trying in vain to post commands (e.g. play/pause) to LMS via JSON (or status.html for that matter).
Configuration:
What I am doing:
What happens:
Nothing
Command line shows:
(blinking cursor)
server.log:
For the life of me I can't find the error in the JSON-statement.
If I use the hack via status.html, curl returns the content of the webpage, but the player status doesn't change.
Any help greatly appreciated.
I am trying in vain to post commands (e.g. play/pause) to LMS via JSON (or status.html for that matter).
Configuration:
- LMS 8.1.1 (previously tried with 7.9.3 as well) running on Win 10
- players: squeezelite (on the same machine as LMS), Squeezebox Classic, Squeezebox Radio, Squeezebox Boom
What I am doing:
Code:
curl -X POST -d '{"id":0,"params":["00:15:xx:xx:xx:xx",["button","play"]],"method":"slim.request"}' http://localhost:9000/jsonrpc.js
Nothing
Command line shows:
Code:
_
server.log:
Code:
Slim::Networking::IO::Select::__ANON__ (130) Error: Select task failed calling Slim::Web::HTTP::processHTTP: malformed JSON string, neither array, object, number, string or atom, at character offset 0 (before "'{id:0,params:[00:15...") at /<C:\PROGRA~2\SQUEEZ~1\server\SqueezeSvr.exe>Slim/Web/JSONRPC.pm line 145.
; fh=Slim::Web::HTTP::ClientConn=GLOB(0xebb306c)
If I use the hack via status.html, curl returns the content of the webpage, but the player status doesn't change.
Any help greatly appreciated.