Skip to content

Instantly share code, notes, and snippets.

@irfn
Last active April 22, 2020 09:58
Show Gist options
  • Save irfn/56a8161796fa3fedd9e07a4be6359b41 to your computer and use it in GitHub Desktop.
Save irfn/56a8161796fa3fedd9e07a4be6359b41 to your computer and use it in GitHub Desktop.
getting in tune
#Random
curl http://$boseip:8090/info | xmllint --format -
curl http://$boseip:8090/presets | xmllint --format -
#Whats playing
curl "http://$boseip:8090/now_playing" | xmllint --format - | grep track | sed -e 's/<\/\{0,1\}track>//g'
#Volume
curl http://$boseip:8090/volume | xmllint --format - | grep actual | sed -e 's/<\/\{0,1\}actualvolume>//g'
#Update Volume
curl -H "Accept:application/json" -XPOST --data "<volume>40</volume>'" http://$boseip:8090/volume
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment