{"action":"created","issue":{"url":"https://api.github.com/repos/badaix/snapcast/issues/109","repository_url":"https://api.github.com/repos/badaix/snapcast","labels_url":"https://api.github.com/repos/badaix/snapcast/issues/109/labels{/name}","comments_url":"https://api.github.com/repos/badaix/snapcast/issues/109/comments","events_url":"https://api.github.com/repos/badaix/snapcast/issues/109/events","html_url":"https://github.com/badaix/snapcast/issues/109","id":178167434,"number":109,"title":"[Question] JSON RPC API","user":{"login":"jared-94","id":20269526,"avatar_url":"https://avatars.githubusercontent.com/u/20269526?v=3","gravatar_id":"","url":"https://api.github.com/users/jared-94","html_url":"https://github.com/jared-94","followers_url":"https://api.github.com/users/jared-94/followers","following_url":"https://api.github.com/users/jared-94/following{/other_user}","gists_url":"https://api.github.com/users/jared-94/gists{/gist_id}","starred_url":"https://api.github.com/users/jared-94/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jared-94/subscriptions","organizations_url":"https://api.github.com/users/jared-94/orgs","repos_url":"https://api.github.com/users/jared-94/repos","events_url":"https://api.github.com/users/jared-94/events{/privacy}","received_events_url":"https://api.github.com/users/jared-94/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2016-09-20T20:08:58Z","updated_at":"2016-09-28T10:20:51Z","closed_at":null,"body":"Hi,\r\n\r\nI don't really understand how to remotely get, or set the status or volume of a client thanks to JSON RPC API.\r\nThe port seems to be 1705.\r\n\r\nMay I achieve this with a HTTP request?\r\nMy aim is to integrate Snapcast to the Fibaro Home Center 2 (a smart box)\r\n\r\nSorry for my stupid question... \r\n"},"comment":{"url":"https://api.github.com/repos/badaix/snapcast/issues/comments/250128714","html_url":"https://github.com/badaix/snapcast/issues/109#issuecomment-250128714","issue_url":"https://api.github.com/repos/badaix/snapcast/issues/109","id":250128714,"user":{"login":"badaix","id":10322999,"avatar_url":"https://avatars.githubusercontent.com/u/10322999?v=3","gravatar_id":"","url":"https://api.github.com/users/badaix","html_url":"https://github.com/badaix","followers_url":"https://api.github.com/users/badaix/followers","following_url":"https://api.github.com/users/badaix/following{/other_user}","gists_url":"https://api.github.com/users/badaix/gists{/gist_id}","starred_url":"https://api.github.com/users/badaix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/badaix/subscriptions","organizations_url":"https://api.github.com/users/badaix/orgs","repos_url":"https://api.github.com/users/badaix/repos","events_url":"https://api.github.com/users/badaix/events{/privacy}","received_events_url":"https://api.github.com/users/badaix/received_events","type":"User","site_admin":false},"created_at":"2016-09-28T10:20:51Z","updated_at":"2016-09-28T10:20:51Z","body":"Yep, the snapserver expects \"Newline Delimited JSON\" ([ndjson](http://ndjson.org/)). Not wrapped into HTTP, but pure ascii json over TCP. The newline `\\n` is used to mark the end of a json message.\r\n\r\nThere is a \"spec\" (work in progress) here:\r\nhttps://github.com/badaix/snapcast/tree/master/doc/json_rpc_api\r\n\r\nYou can find a java implementation in the Android client's source code.\r\n\r\nThere is no method to connect or disconnect a client. You can mute/unmute a client, but you cannot disconnect a client.\r\nWhat is the idea behind connecting/disconnecting a client?\r\n\r\nBTW: thanks for the hint about POSTman 👍 "}}
{"actor":{"display_login":"badaix"}}