2016-10-21, 22:14
(2016-10-21, 21:53)jingai Wrote: Ok.. let's just verify the JSON RPC interface is working at all.
If you have access to curl (or something like it), you can do:
Code:curl --data-binary '{"jsonrpc":"2.0", "method":"VideoLibrary.GetMovies", "params":{"filter":{"field":"playcount", "operator":"lessthan", "value":"1"}}, "id":1}' -H 'content-type: application/json;' -u user:pass http://local_kodiaddr:local_kodiport/jsonrpc
You should get an object back with all your movies.
You might need me to guide me a little. I can run this command from the raspbian command line but nothing is returned (no error messages either). Do I need to output to a file?
Many thanks!!