[RELEASE] Execute user scripts on specific XBMC actions (play starts/stops...)
(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.
Hi tekno,
the following construction is now working for me. I found it through a similar solution for VLC.
It's a shell script completely outside Kodi:
Code:
#!/bin/sh
#kodi.sh
curl "http://192.168.1.90/cgi/control.cgi?login=p:**:****&p=1uuu"
kodi --standalone
curl "http://192.168.1.90/cgi/control.cgi?login=p:**:****&p=0uuu"
It's easy - as a newbee to linux I didn't know, that the script stops after starting Kodi and goes on working after Kodi is finished.
So instead of my curl statements you could call any other script and you have a "run before and run after" solution.
Should help with your remote selection challenge...
Regards
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 tomrey - 2015-05-16, 11:59
Logout Mark Read Team Forum Stats Members Help
[RELEASE] Execute user scripts on specific XBMC actions (play starts/stops...)4