2005-12-28, 02:41
hi all!
i would like python-scripts to be started when certain events happen. e.g. i would like a python-script to run every time the user starts to play a movie. is this supported by xboxmediacenter?
the reason i need this is that i use x10 to control lighting in my appartment. what would be great was if i could make the xbox communite with the x10 system (through a server). this way i could have the lighing automatically turned off when i start watching a movie on the xbox. then, if i push pause the lighting is turned back on. when i push play the lighting is turned off, and when the movie is over, the lighting is turned on.
i would do this by having a python-script sending requests over the network to the server. but i need to know if it is possible to hook python-scripts up to these kind of events, so it would be nice if you experts could tell if this is possible in real life and not just in my mind. :-)
i would like python-scripts to be started when certain events happen. e.g. i would like a python-script to run every time the user starts to play a movie. is this supported by xboxmediacenter?
the reason i need this is that i use x10 to control lighting in my appartment. what would be great was if i could make the xbox communite with the x10 system (through a server). this way i could have the lighing automatically turned off when i start watching a movie on the xbox. then, if i push pause the lighting is turned back on. when i push play the lighting is turned off, and when the movie is over, the lighting is turned on.
i would do this by having a python-script sending requests over the network to the server. but i need to know if it is possible to hook python-scripts up to these kind of events, so it would be nice if you experts could tell if this is possible in real life and not just in my mind. :-)