I have created a simple service addon to execute user scripts on specific XBMC actions, right now the actions supported are:
- XBMC starts
- Player starts / stops
- Player pauses / resumes
- Screensaver starts / stops
- Database updates
I did a quick search and could not find anything similar. Also, this is my first attempt to write an addon so things might just not work. I use it to notify another computer when I am using XBMC so it stops its network activity (I am using a raspberry pi as server and it really cannot cope with a lot of things).
Add-on name: service.xbmc.callbacks
Current version: v0.5
Compatibility: checked only in Frodo
- It is only tested on linux but it shoud also work on windows.
- I am planning to add an XBMC stop event but right now I don't seem to find a reliable way to do it.
As said, it is quite simple but maybe it can help others...