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!

   Join Now
  • 0

Cannot get Python script to send command to network device


Greetings all!

I am trying to help a friend get CinemaVision controlling a GlobalCache IP2IR device, using a Python script called from CinemaVision. I can execute the script directly (outside of CinemaVision), but I don't have any luck calling it from an action file. This appears to be a common problem, but I can't find any solutions. 

I have been able to call the Python script from the Kodi Callbacks add-on, so I think this rules out Kodi as the issue. 

This is the Action file:


This is the Python script:

from itachip2ir import VirtualDevice, iTach

commands = {
    "play_pause": "sendir,1:1,1,38109,1,1,341,85,22,4878",
    "play_pause_2": "sendir,1:2,1,38109,1,1,341,85,22,4878"

itach = iTach(ipaddress="", port=4998)
posters = itach.add(VirtualDevice(
    name="posters", commands=commands))

if __name__ == "__main__":

I have also tried calling the Python script from a basic shell script:

python /Users/me/Desktop/CVcontent/CinemaVision/Actions/irsend.py

As well as using the command:// function to call Python directly:

command:///usr/bin/python /Users/me/Desktop/CVcontent/CinemaVision/Actions/irsend.py

I'm running Kodi 17.6 and CinemaVision 1.1.0 on OSX 10.13 High Sierra.

Any tips or troubleshooting advice would be appreciated!


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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Create New...

Important Information

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