Last active
April 22, 2020 09:58
-
-
Save irfn/56a8161796fa3fedd9e07a4be6359b41 to your computer and use it in GitHub Desktop.
getting in tune
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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