mrtnkhl / itachip2ir

A small Python module for interacting with the Global Caché iTach WF2IR or IP2IR

Home Page:https://pypi.org/project/itachip2ir/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

itachip2ir

https://travis-ci.org/thehappydinoa/itachip2ir.svg?branch=master

A small module for interacting with the Global Caché iTach WF2IR or IP2IR

How To Use

from itachip2ir import VirtualDevice, iTach

commands = {
  "toggle_power": "sendir,1:3,1,40192,1,1,97,23,49,23,25,23,49,23,25,23,49,23,25,23,25,23,25,23,49,23,25,23,49,23,49,23,25,23,49,23,25,23,25,23,25,23,49,23,49,23,49,529,96,23,49,23,25,23,49,23,25,23,49,23,25,23,25,23,25,23,49,23,25,23,49,23,49,23,25,23,49,23,25,23,25,23,25,23,49,23,49,23,49,528,96,23,49,23,25,23,49,23,25,23,49,23,25,23,25,23,25,23,49,23,25,23,49,23,49,23,25,23,49,23,25,23,25,23,25,23,49,23,49,23,49,553,97,23,49,23,25,23,49,23,25,23,49,23,25,23,25,23,25,23,49,23,25,23,49,23,49,23,25,23,49,23,25,23,25,23,25,23,49,23,49,23,49,554,97,23,49,23,25,23,49,23,25,23,49,23,25,23,25,23,25,23,49,23,25,23,49,23,49,23,25,23,49,23,25,23,25,23,25,23,49,23,49,23,49,554,97,23,49,23,25,23,49,23,25,23,49,23,25,23,25,23,25,23,49,23,25,23,49,23,49,23,25,23,49,23,25,23,25,23,25,23,49,23,49,23,49,554,97,23,49,23,25,23,49,23,25,23,49,23,25,23,25,23,25,23,49,23,25,23,49,23,49,23,25,23,49,23,25,23,25,23,25,23,49,23,49,23,49,4000"
}

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


if __name__ == "__main__":
  print(blueray.toggle_power())

Check the examples/ folder for more

The source for this project is available here.

About

A small Python module for interacting with the Global Caché iTach WF2IR or IP2IR

https://pypi.org/project/itachip2ir/

License:MIT License


Languages

Language:Python 98.5%Language:Shell 1.5%