2009-05-21, 00:39
Hi,
I am trying to figure out a reliable way to tell from either from the command line or the HTTP API, whether XBMC is totally idle, so not playing anything (music or video).
Basically i want to write a script to shutdown/suspend the machine if XBMC has not played anything for 30 mins. I have other processes running on this machine and it will be easy to check if they are idle but I have not been able to find a way to check XBMC.
I did see System.IdleTime(time) and tried this using wget but regardless of what time i put in, it returns OK.
Any ideas how i could achieve this?
I am trying to figure out a reliable way to tell from either from the command line or the HTTP API, whether XBMC is totally idle, so not playing anything (music or video).
Basically i want to write a script to shutdown/suspend the machine if XBMC has not played anything for 30 mins. I have other processes running on this machine and it will be easy to check if they are idle but I have not been able to find a way to check XBMC.
I did see System.IdleTime(time) and tried this using wget but regardless of what time i put in, it returns OK.
Any ideas how i could achieve this?