# RasPlex alarm clock?

**URL:** <https://forums.plex.tv/t/rasplex-alarm-clock/192421>\
**Category:** Apps & Creations\
**Created:** [May 18, 2017, 5:41pm UTC](https://forums.plex.tv/t/rasplex-alarm-clock/192421 "2017-05-18T17:41:11Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dnisbet](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dnisbet/32/97389_2.png) [@dnisbet](https://forums.plex.tv/u/dnisbet)\
**Post date:** [May 18, 2017, 5:41pm UTC](https://forums.plex.tv/t/rasplex-alarm-clock/192421/1 "2017-05-18T17:41:11Z")

</div>

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…

---

<div class="post-metadata">

**Author:** ![videotecaCNSU](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/videotecacnsu/32/17514_2.png) [@videotecaCNSU](https://forums.plex.tv/u/videotecaCNSU)\
**Post date:** [May 19, 2017, 12:44pm UTC](https://forums.plex.tv/t/rasplex-alarm-clock/192421/2 "2017-05-19T12:44:37Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dnisbet](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dnisbet/32/97389_2.png) [@dnisbet](https://forums.plex.tv/u/dnisbet)\
**Post date:** [May 22, 2017, 10:05am UTC](https://forums.plex.tv/t/rasplex-alarm-clock/192421/3 "2017-05-22T10:05:39Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![dnisbet](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dnisbet/32/97389_2.png) [@dnisbet](https://forums.plex.tv/u/dnisbet)\
**Post date:** [May 22, 2017, 1:44pm UTC](https://forums.plex.tv/t/rasplex-alarm-clock/192421/4 "2017-05-22T13:44:38Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![videotecaCNSU](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/videotecacnsu/32/17514_2.png) [@videotecaCNSU](https://forums.plex.tv/u/videotecaCNSU)\
**Post date:** [May 22, 2017, 2:35pm UTC](https://forums.plex.tv/t/rasplex-alarm-clock/192421/5 "2017-05-22T14:35:22Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [January 8, 2020, 7:34pm UTC](https://forums.plex.tv/t/rasplex-alarm-clock/192421/6 "2020-01-08T19:34:50Z")

</div>


