Last active
December 20, 2018 17:17
-
-
Save cgoldberg/cc1bc554b953b4248be3c13deee1f16c to your computer and use it in GitHub Desktop.
bash - skip to next track on Squeezebox player via SlimServer/LogitechMediaServer
This file contains 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
#!/usr/bin/env bash | |
# skip to next track on Squeezebox player via SlimServer/LogitechMediaServer | |
SQUEEZEBOX_SERVER='localhost:9000' # server host:port | |
SQUEEZEBOX_PLAYER='00:05:11:23:82:6e' # player MAC address | |
next () { | |
curl -sS -o /dev/null -X POST \ | |
-d '{"id":1,"method":"slim.request","params":["'${SQUEEZEBOX_PLAYER}'",["button","jump_fwd"]]}' \ | |
"http://${SQUEEZEBOX_SERVER}/jsonrpc.js" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment