Skip to content

Instantly share code, notes, and snippets.

@cgoldberg cgoldberg/next.sh
Last active Dec 20, 2018

Embed
What would you like to do?
bash - skip to next track on Squeezebox player via SlimServer/LogitechMediaServer
#!/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
You can’t perform that action at this time.