Welcome to our forums! Please take a few moments to read through our Community Guidelines (also conveniently linked in the header at the top of each page). There, you'll find guidelines on conduct, tips on getting the help you may be searching for, and more!

RasPlex alarm clock?

dnisbetdnisbet Posts: 9 Plex Pass

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....


  • videotecaCNSUvideotecaCNSU Posts: 203 Plex Pass

    you could create a script that uses xbmc-send to pass remote commands so it plays a video or audio

  • dnisbetdnisbet Posts: 9 Plex Pass

    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?

  • dnisbetdnisbet Posts: 9 Plex Pass

    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"}}}

    may do the trick (not actually tested it yet via cron, but works forming the request in a browser).

  • videotecaCNSUvideotecaCNSU Posts: 203 Plex Pass

    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

Sign In or Register to comment.