About Us
CinemaVision began in 2014 as a collaboration to create content for use with your home theater, offering movie trivia slides and video bumpers. It has since grown to be THE PREMIER WAY to create and customize your preshow experience. Download the CinemaVision add-on for Kodi today from the official Kodi repository, and easily create a sequence of trivia, videos, trailers, home automation triggers and more that will bring the experience of a movie theater straight to your screen!
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