Kodi Community Forum
Set sleep timer on headless setup - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: OS independent / Other (https://forum.kodi.tv/forumdisplay.php?fid=228)
+---- Thread: Set sleep timer on headless setup (/showthread.php?tid=338603)



Set sleep timer on headless setup - stefane - 2018-12-23

Hi all!
I have one raspberry pi running libreelec that should run without a screen. It plays audiobooks until i fall asleep. I start playback using KoRe (android kodi remote) but have to turn on the screen only to set the sleep timer. I want to choose the time until stop at every occasion. So "Add-on:Sleep Timer" is not an option. (as far as i can tell)

I there any way to set the sleep timer from my android tablet? I found related questions on the internet but no solution so far.

My current plan is to write a simplified android app that communicates with a service-script on kodi.
* The App
shows my audio books and does "play from here" (this i can do)
Sets/display the time until stopĀ  (this i will have to figure out)

* The service script
receives the time-to-stop from the app. (this i need to figure out)
Can be queried by the app for the remaining time. (this I need to fifure out)
When time runs out, stop playback, send a command over IR (this i can do)

thanks for any input