Be a part of CinemaVision today! Once registered and logged in, you will have access to public chat and your own private messenger, you can view and contribute guides, collaborate on the forums, review downloads, give reputation to your fellow members, contribute content and so much more. Registering is quick and completely free, so what are you waiting for? Sign In Sign Up
I've wrote a python script to control my lights in hometheater.
import socket
UDP_IP = "192.168.0.240"
UDP_PORT = 9010
MESSAGE = "spots_ht_v 25"
print("UDP target IP:", UDP_IP)
print("UDP target port:", UDP_PORT)
print("message:", MESSAGE)
sock = socket.socket(socket.AF_INET, # Internet
socket.SOCK_DGRAM) # UDP
sock.sendto(bytes(MESSAGE, "utf-8"), (UDP_IP, UDP_PORT))
UDP_IP = "192.168.0.240"
UDP_PORT = 9010
MESSAGE = "spots_ht_a 25"
print("UDP target IP:", UDP_IP)
print("UDP target port:", UDP_PORT)
print("message:", MESSAGE)
sock = socket.socket(socket.AF_INET, # Internet
socket.SOCK_DGRAM) # UDP
sock.sendto(bytes(MESSAGE, "utf-8"), (UDP_IP, UDP_PORT))
when i do a testrun of the action file nothing happens, no error nothing. (kodi is running on nvidia shield tv)
the script is called with python://myscript.py
Then i installed python on my pc to test the script and there it is working fine.
What can be the problem?
Thx!
Share this post
Link to post
Share on other sites