Initiating Sleep Timer over HTTP
#1
Question 
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:

Code:
XBMC.AlarmClock(shutdowntimer,XBMC.ShutDown(),60)
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
Reply
#2
Oh, and I've also come across the following URL from this page on the TrixBox forum.

%22]http://192.168.*.*:8080/xbmcCmds/xbmcHttp?command=ExecBuiltIn&parameter=XBMC.Notification(header,message[,time-ms,image-jpeg]

I've tried substituting bits of the sleep timer command in my previous post into this URL and the one supplied earlier, but I've not been able to get it to do anything... I'm not entirely sure what command I need to be honest.

Thanks,

Joe
Reply

Logout Mark Read Team Forum Stats Members Help
Initiating Sleep Timer over HTTP0