interrupt the "idle shutdown" by addon or external application
#1
There should be a possibility to interrupt the "idle shutdown" by a external application. e.g. When there are still active downloads running (with JDownloader or uTorrent) the shutdown should not by executed.

It seems there is also a need to run a script just before the idle shutdown.

So CApplication::CheckShutdown() should be improved. Maybe it could execute a external script in a specific folder, which will return 1 or 0 if the computer is idle or not. Or there could be a service addon with a specific method (e.g. "isIdle()")

It should definitly be possible to have more than one external application that prevents the shutdown.
JDownloader Plugin - Handle JDownloader from within xbmc
RlsBB Plugin - Add links from rlsbb.com to JDownloader/pyLoad
Reply
#2
I'll second this.
With the new PVR options in Frodo I (and maybe someone else) will need this to use an equivalent of the shutdown scripts in VDR.
In my shutdown script I check for different use cases:
- Am I logged in via NX?
- Is MPD playing music?
- Am I watching videos with UPNP?
- Am I updating the EPG (with an external script)?

Only if the script returns 0 vdr will shutdown my system.

For now I'm starting to XBMC, exiting XBMC after 15 minutes of idle time, automatically starting vdr-sxfe and wait for the shutdown.

To define an (additional) script for the idle shutdown would be very helpful.
Reply

Logout Mark Read Team Forum Stats Members Help
interrupt the "idle shutdown" by addon or external application0