[RELEASE] Execute user scripts on specific XBMC actions (play starts/stops...)
(2015-05-09, 12:11)tomrey Wrote: Hi Ken,
how could I execute a script at Kodi shutdown?
I would need it to shutdown an amplifyer.
I can start it through a startup script outside kodi but the turn off-feature is still missing
Regards

(2015-05-10, 17:44)tekno Wrote: I agree with tomrey. SHutdown script is needed. I want to use the shutdown script so a user can select a different remote.

These might be possible if whatever code you are running is not going to be python running on the Kodi python interpreter.
Kodi terminates all scripts if they don't shutdown in 5 seconds, so unless you are launching an independent process, whatever you are doing has to complete fast.
And no, there is no way to change that or abort the shutdown. So waiting for a user prompt to select something would have to programmed with it's own independent GUI.
Of note, Kodi does NOT play nice with the multiprocessing module, so don't go down that path.
Reply


Messages In This Thread
Great! - by gnorf - 2013-02-27, 22:50
[RELEASE] Pilulli Revisited - by KenV99 - 2014-06-28, 18:18
RE: [RELEASE] Execute user scripts on specific XBMC actions (play starts/stops...) - by KenV99 - 2015-05-15, 21:40
Logout Mark Read Team Forum Stats Members Help
[RELEASE] Execute user scripts on specific XBMC actions (play starts/stops...)4