2010-07-07, 17:35
Hi,
Please forgive me if this isn't the best place for this question.
I've just finished writing a script which allows me to backup my system over FTP to a location on my server. However, one feature I'd hoped to implement into the script was the ability to initiate the XBMC Sleep Timer from the script (being run from my server).
I've done a bit of digging around, and found that the following command is initiated by the button in the shutdown menu of XBMC when a user locally sets the sleep timer:
Also, I am aware that the system can be shutdown remotely from the XBMC web UI, using the following URL:
http://192.168.*.*:8080/xbmcCmds/xbmcFor...d=shutdown
Using this command works, however, I would like to use the sleep timer if at all possible, to that I have still got the option to cancel the shutdown if XBMC is still in use after the command is called at the end of my backup script.
Does anyone know if this is possible? If so, would you be able to offer me some pointers on how to achieve this, please?
Many thanks for your time,
Joe
Please forgive me if this isn't the best place for this question.
I've just finished writing a script which allows me to backup my system over FTP to a location on my server. However, one feature I'd hoped to implement into the script was the ability to initiate the XBMC Sleep Timer from the script (being run from my server).
I've done a bit of digging around, and found that the following command is initiated by the button in the shutdown menu of XBMC when a user locally sets the sleep timer:
Code:
XBMC.AlarmClock(shutdowntimer,XBMC.ShutDown(),60)
http://192.168.*.*:8080/xbmcCmds/xbmcFor...d=shutdown
Using this command works, however, I would like to use the sleep timer if at all possible, to that I have still got the option to cancel the shutdown if XBMC is still in use after the command is called at the end of my backup script.
Does anyone know if this is possible? If so, would you be able to offer me some pointers on how to achieve this, please?
Many thanks for your time,
Joe