[WINDOWS] Send command (run script) after pressing play/pause/stop
#1
HI all, I've searched for this info, but I'm not having any luck finding it.

What I want to do is have XBMC send an HTTP command after pressing play/pause/stop.

It will send to the local machine's X10Commander to turn the lights on and off when playing/pausing/stopping a movie.

I thank you for your assistance, and my apologies if this has been broached elsewhere...
Reply
#2
You will need to create a script that does it using python's methods. This should get you started...

import os, os.path, string, urllib, traceback, time, datetime
... this will import the correct python libraries

params = urllib.urlencode(commands)
... this will encode your commands

urllib.urlopen(self.serverurl, params)
... this will send your commands. replace the self.serverurl with the address/hostname and port you want to send it to.
I'm not an expert but I play one at work.
Reply

Logout Mark Read Team Forum Stats Members Help
[WINDOWS] Send command (run script) after pressing play/pause/stop0