Skip to content

Instantly share code, notes, and snippets.

@Rabscuttler
Created March 30, 2016 21:34
Show Gist options
  • Save Rabscuttler/32b189b8fa58398a012b6652dba17fde to your computer and use it in GitHub Desktop.
Save Rabscuttler/32b189b8fa58398a012b6652dba17fde to your computer and use it in GitHub Desktop.
#!/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