Jump to content

Welcome, Guest!

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

Become a RedCarpet Club Member Today!

Lorem ipsum dolor sit amet, sea eu causae aperiri periculis, iusto affert soleat an sea, soluta petentium inciderint nec no. Dolorum reprimique ullamcorper sed ad. Ei quo malorum singulis, tota mundi feugait ut pro. Choro utamur inimicus ex sea. Tota dicit te usu. Sea ad erant possim reformidans. An modus detraxit postulant vel. Per no habeo ludus qualisque. Vix legere singulis legendos et, an cum eius soluta accumsan. Facer discere no nec.
   Join Now

Download the Kodi Add-on Today!

Lorem ipsum dolor sit amet, sea eu causae aperiri periculis, iusto affert soleat an sea, soluta petentium inciderint nec no. Dolorum reprimique ullamcorper sed ad. Ei quo malorum singulis, tota mundi feugait ut pro. Choro utamur inimicus ex sea. Tota dicit te usu. Sea ad erant possim reformidans. An modus detraxit postulant vel. Per no habeo ludus qualisque. Vix legere singulis legendos et, an cum eius soluta accumsan. Facer discere no nec.
  • 0
MJB0205

Python Loxone Action Problems

Question

Hi Folks,

i am trying to remote my smarthome with the action content but it won't work. My Platform: Microsoft Vista with Kodi 17.1 RC - only for testing because my RPi3+ isn't there at the moment. NAS mybooklive with my movie collection.

I Installed python 2 and 3 and i  got a script from the www sending UDP Packets to my Loxone System. When i executed the .py scripts with the local python application everything works fine and my lights are getting out - YES.. :-)

But when i Try to run it via CV it won't work.

First of all i read the documentation with  this:

My CV Folder is on the NAS storage in the Folder "Trailer", so i put the .cvaction File in the action Folder but everything i got is this (screenshot down below).

My script contains the follwing input - but nothing works... what do i make wrong? Actual i am trying it to run it local on my machine - next step should be trying to set it up in the NAS.
 

Test1:
python://C:\Python\LichtAus.py
Test2:
'<python://>''C:\Python\LichtAus.py'
arg1
Test3:
"<python>://"C:\Python\LichtAus.py
Test4:
<python>://"C:\Python\LichtAus.py"
Test5:
'<python>'://"C:\Python\LichtAus.py"
Test6:
'<python>'://'C:\Python\LichtAus.py'

Actual it seems i am havin syntax problems... but what is the right syntax? I copied the same content from the guidline but it won't work... any ideas?

My LichtAus.py looks like this - this is working with Python 3

import socket

UDP_IP = "192.168.3.3"
UDP_PORT = 6080
MESSAGE = "3"

print("UDP target IP:", UDP_IP)
print("UDP target port:", UDP_PORT)
print("message:", MESSAGE)

sock = socket.socket(socket.AF_INET, socket.SOCK_DGRAM) # UDP
sock.sendto(bytes(MESSAGE, "utf-8"), (UDP_IP, UDP_PORT))

 

Regards

 

Magnuserror.jpg

 

 

Share this post


Link to post
Share on other sites

0 answers to this question

Recommended Posts

There have been no answers to this question yet

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

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!

×

Important Information

By using this site, you agree to our Guidelines and Terms of Use.