Run commands on events
#1
Hiya,

If at all possible, i'd like to see an advanced feature, maybe just from the config files that allows local system commands to be run on events happening, e.g. run on: startup, idle(screensaver init), not idle(screensaver end), exit etc.

As an example it would be good to send spindown commands to hard drives when the screensaver starts and spin them back up when it stops or to disable gnome-screensaver when running and re-enable when you exit xbmc, or just whilst movies are playing. I think it would open up a million other functions too though, maybe integrate with other home solutions and initiate "cinema lighting" when starting a movie...

I'm not a developer but I "think" it would be relatively easy to implement, just adding a lookup and reference to each event then run the related command if it exists, should be very multi-platform friendly too?

Thanks
Reply
#2
Json rpc announces on most of those. If anything is missing feature suggest each event on trac.

Fwiw telling disks to spindown isn't really xbmc job and most os will do so by magic. Screensaver should be mqgic so please feature suggest that seperatly on trac.
If you have problems please read this before posting

Always read the XBMC online-manual, FAQ and search the forum before posting.
Do not e-mail XBMC-Team members directly asking for support. Read/follow the forum rules.
For troubleshooting and bug reporting please make sure you read this first.

Image

"Well Im gonna download the code and look at it a bit but I'm certainly not a really good C/C++ programer but I'd help as much as I can, I mostly write in C#."
Reply
#3
I second the response regarding spindown. Spindown is much better handled by the NAS. I use unraid and I will give it credit for handling spinup and down excellently for my 6-drive setup (4 data, 1 parity, 1 cache).
Reply

Logout Mark Read Team Forum Stats Members Help
Run commands on events0