mirror of
https://github.com/badaix/snapcast.git
synced 2025-04-29 02:07:55 +02:00
Add script to change latency
This commit is contained in:
parent
62bcb11a83
commit
d87abf3027
1 changed files with 6 additions and 0 deletions
|
@ -9,3 +9,9 @@ Requires `curl` and `jq`
|
|||
```bash
|
||||
curl --header "Content-Type: application/json" --request POST --data '{"id":1, "jsonrpc":"2.0", "method": "Server.GetStatus"}' http://127.0.0.1:1780/jsonrpc | jq .result.server.groups[].clients[].config.name
|
||||
```
|
||||
|
||||
### Set latency
|
||||
|
||||
```bash
|
||||
curl --header "Content-Type: application/json" --request POST --data '{"id":7,"jsonrpc":"2.0","method":"Client.SetLatency","params":{"id":"713aefd7-e6cb-4c3b-9f5e-91bbcf9bcbc2","latency":10}}' http://127.0.0.1:1780/jsonrpc
|
||||
```
|
||||
|
|
Loading…
Add table
Reference in a new issue