Hey,
I want to parse in bash with curl the status if an audio is playing or stopped to play another audio afterwards.
Read already "mode":"play" and "mode":"stop" with
but cant parse the mode tag to read the state and run another code.
Adding jq to the end of URL does not help me out
Would be happy for advice and help.
I want to parse in bash with curl the status if an audio is playing or stopped to play another audio afterwards.
Read already "mode":"play" and "mode":"stop" with
Code:
curl -i -X POST -H "Content-Type: application/json" -d '{"id":1,"method":"slim.request","params":[ "aa:aa:bb:bb:cc:cc", ["'status'","-",1] ]}' http://localhost:9000/jsonrpc.js
Adding jq to the end of URL does not help me out
Code:
curl -i -X POST -H "Content-Type: application/json" -d '{"id":1,"method":"slim.request","params":[ "bb:bb:6c:cf:fc:b2", ["'status'","-",1,"tags"] ]}' http://localhost:9000/jsonrpc.js | jq '.'
Would be happy for advice and help.
Comment