Goal is to start a bash script which contains the curl command to perform specific volumio tasks. Example is:
#!/bin/sh
eval "curl localhost:3000/api/v1/commands/?cmd=stop"
So the syntax curl localhost:3000/api/v1/commands/mycommand
seems to be working fine.
Then I see that there is a way to POST a PAYLOAD using json formatted code.
curl localhost:3000/api/v1/replaceAndPlay
but how do I format for curl the PAYLOAD part In order to tell Volumio to stop whatever it’s doing and play a radio uri?
Btw… is there a executable path inside the os that will get preserved after an upgrade?
Thanks!