2014-04-05, 12:17
Hi Guys,
I'm trying to call a simple python script from this addon, but the xbmc log shows it doesn't work:
The script sends a udp packet to my wifi-enabled light bulbs:
Currently, I can run the script without problem from the command line. Also python is installed correctly.
My settings.xml is as follows:
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.
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.