2010-04-26, 10:29
Could someone please point me in the right direction:
The rational being that my family is terrible at remembering to turn of the TV, and I can programmaticaly turn of the TV (think IR-blaster)
I found a patch earlier, but that requires a recompilation, and I would prefer not to do that, python would be much more generic+ it might turn into a generic "green-earth-plugin" one day
Is it possible to write a python script that get's executed in the XBMC environment (think autostart.py) that can hook arbitrary events like play/screen saver start or similar events?
- Either a python(plugin?) way of hooking the start/stop of screen saver or dimming of the screen
Prefered way I guess
- Detect play/pause/stop for all modules
Can implement my own timer.., less clean, but might work
- Or, a way to "ask" via any API for the status (playing/paused/screensaver)
I'll write a cron, crude & latency on start, but would work
The rational being that my family is terrible at remembering to turn of the TV, and I can programmaticaly turn of the TV (think IR-blaster)
I found a patch earlier, but that requires a recompilation, and I would prefer not to do that, python would be much more generic+ it might turn into a generic "green-earth-plugin" one day
Is it possible to write a python script that get's executed in the XBMC environment (think autostart.py) that can hook arbitrary events like play/screen saver start or similar events?