How to use Broadcast?
#1
I am trying to write a script to send commands to my server that controlles my X10 lights. I have the broadcast eventghost plugin working with XBMC so when playback starts/ends the lights change.

But I want to write a script with a GUI to control the lights.

I am trying to use the xbmc.executehttpapi("Broadcast(A1 ON)") but I keep getting a script failed error.

I have a button with the code

def onControl(self, control):
if control == self.button0:
xbmc.executehttpapi("Broadcast(A1 ON)")
self.message('A1 On!')

But I can't get it to work.

So I am looking for a little help of what I am doing wrong.

Thanks
Reply
#2
Bump:confused2:
Reply

Logout Mark Read Team Forum Stats Members Help
How to use Broadcast?0