I’ve just got RasPlex set up on an rpi2 for use in a bedroom and I was wondering given the ssh access and cron being installed is there a way somehow to trigger the playback of media or a playlist? Perhaps a curl to a http web remote somehow? I’m imaging all the pieces are there I just can’t quite pipeline them all together…
you could create a script that uses xbmc-send to pass remote commands so it plays a video or audio
Thanks i’ll give it a try. Does the PlayMedia argument need to be media that’s local to the player though or can you specify server content?
Going a slightly tangential route:
curl -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"jsonrpc":"2.0","id":1,"method":"Player.Open","params":{"item":{"playlistid":0},"options":{"repeat":"all"}}} http://127.0.0.1:3005/jsonrpc
may do the trick (not actually tested it yet via cron, but works forming the request in a browser).
xbmc-send just passes remote commands through cli, so you can automate whatever you want rasplex to reproduce. But have in mind its a little bit content sensitive. The commands you can pass are the same you will find on keyboard.xml