Kodi Community Forum

Full Version: What script is the "Custom Shutdown Timer" running?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
I would like to add a button to the home screen of the skin I am using that when clicked it just sets the shutdown timer for 60 minutes and doesn't bring up a prompt asking you to enter a numeric value. I always set the timer for 1 hour and I would love to have a one click solution to this for when I'm going to bed. I know how to do this with SSH and I have a widget on my phone that will connect with SSH and run the shutdown timer script for Debian itself (I'm using OSMC) but I was hoping to do this through a CEC TV remote. Thanks.
You will need to assign this command to your button:
Code:
AlarmClock(name,command,time)
for example:
Code:
AlarmClock(myshutdown,ShutDown,3600)

Will shutdown pc after 60 minutes, to cancel:
Code:
CancelAlarm(myshutdown)
(you can assign them both to sub-menu or somthing)

for more info see here:
http://kodi.wiki/view/List_of_built-in_functions
(2015-08-06, 00:35)technovore Wrote: [ -> ]I would like to add a button to the home screen of the skin I am using that when clicked it just sets the shutdown timer for 60 minutes and doesn't bring up a prompt asking you to enter a numeric value. I always set the timer for 1 hour and I would love to have a one click solution to this for when I'm going to bed. I know how to do this with SSH and I have a widget on my phone that will connect with SSH and run the shutdown timer script for Debian itself (I'm using OSMC) but I was hoping to do this through a CEC TV remote. Thanks.

Would the following do what you are looking for:

http://forum.kodi.tv/showthread.php?tid=261959

Thanks

Rob