[RELEASE] Execute user scripts on specific XBMC actions (play starts/stops...)
Hi Guys,

I'm trying to call a simple python script from this addon, but the xbmc log shows it doesn't work:
Code:
Line 864: 10:04:13 T:2936144992   DEBUG: XBMC callbacks: Going to execute script = "/storage/downloads/playerstart.py"
Line 903: 10:04:14 T:2936144992   DEBUG: XBMC callbacks: ERROR executing script when player starts

The script sends a udp packet to my wifi-enabled light bulbs:
Code:
#!/usr/bin/python
import socket
sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM)
sock.sendto("\x42\x00\x55", ("192.168.0.197", 8899))

Currently, I can run the script without problem from the command line. Also python is installed correctly.
My settings.xml is as follows:
Code:
<setting id="player_starts" value="/storage/downloads/playerstart.py" />
<setting id="player_stops"  value="/storage/downloads/playerstop.py" />

Is there a way to get more debug info than the two lines shown in the XBMC debug window?
I'm going to try flarc's method today.
Reply


Messages In This Thread
Great! - by gnorf - 2013-02-27, 22:50
RE: [RELEASE] Execute user scripts on specific XBMC actions (play starts/stops...) - by Elessar88 - 2014-04-05, 12:17
[RELEASE] Pilulli Revisited - by KenV99 - 2014-06-28, 18:18
Logout Mark Read Team Forum Stats Members Help
[RELEASE] Execute user scripts on specific XBMC actions (play starts/stops...)4