Kodi Community Forum
Run script when movie ends - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+--- Thread: Run script when movie ends (/showthread.php?tid=143623)



Run script when movie ends - pekka - 2012-10-26

Hi,
First I have to say thanks for an amazing application! Love it!

On to my question:
Is it possible to execute a script every time a movie ends (either when you press stop or the clip is done)?
I have a server controlling all the lamps in my apartment and I would like the light to come on when I'm done watching a movie Smile
The script would just be a curl to a IP with some php get variables.

Thanks in advanced
/ Pekka


RE: Run script when movie ends - Shaigan - 2012-10-27

Here is a how-to, just change the URLs to fit your needs Wink
http://www.jordanhackworth.com/home-automation-with-xbmc/


RE: Run script when movie ends - pekka - 2012-10-27

Thanks a lot Shaigan! Big Grin
Just what I was looking for!

Let the automation commence!