Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/bash
clear
curl -X POST -H Content-Type:application/json -d '
{"jsonrpc": "2.0", "id": 1, "method": "core.tracklist.clear"}
' http://192.168.0.13:6680/mopidy/rpc
curl -X POST -H Content-Type:application/json -d '
{"jsonrpc": "2.0", "id": 1, "method": "core.tracklist.add",
"params": {"uri": "spotify:user:half-baked:playlist:33oDg4iambUIRrG8gNoJSb"}}
' http://192.168.0.13:6680/mopidy/rpc
curl -X POST -H Content-Type:application/json -d '
{"jsonrpc": "2.0", "id": 1, "method": "core.tracklist.set_random",
"params": {"value": true } }
' http://192.168.0.13:6680/mopidy/rpc
curl -X POST -H Content-Type:application/json -d '
{"jsonrpc": "2.0", "id": 1, "method": "core.playback.play"}
' http://192.168.0.13:6680/mopidy/rpc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment