Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/alanfischer/itachip2ir
A C++ library with python bindings for sending IR commands to an ITach IP2IR gateway.
https://github.com/alanfischer/itachip2ir
ip2ir itach
Last synced: 2 months ago
JSON representation
A C++ library with python bindings for sending IR commands to an ITach IP2IR gateway.
- Host: GitHub
- URL: https://github.com/alanfischer/itachip2ir
- Owner: alanfischer
- License: mit
- Created: 2017-06-06T22:06:23.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2023-08-15T19:18:34.000Z (over 1 year ago)
- Last Synced: 2024-11-06T11:04:30.773Z (3 months ago)
- Topics: ip2ir, itach
- Language: C++
- Homepage:
- Size: 57.6 KB
- Stars: 2
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.rst
- License: LICENSE.txt
Awesome Lists containing this project
README
ITachIP2IR library
------------------A C++ library with python bindings for sending IR commands to an ITach IP2IR gateway.
It can be given an ip address and port to connect to, or it can be given a mac address and will listen for broadcasts from any ITach gateway that matches the mac address.
It gets the IR commands from a command library file that follows the format of:
.. code-block::
CH1
0000 006D 0000 0022 00AC 00AB 0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0016 0015 0041 0015 0041 0015 0041 0015 0041 0015 0041 0015 0689CH2
0000 006D 0000 0022 00AC 00AB 0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0041 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0016 0015 0041 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0016 0015 0041 0015 0016 0015 0041 0015 0041 0015 0041 0015 0041 0015 0041 0015 0689Dependencies
------------
- CMake 2.8 or Python 2 or 3How to use
----------
- Executable command line interface for sending one shot ir commands
.. code-block::./itachip2ir [ip-of-itach] [itach-listening-port] [ir-commands.txt] [name-of-ir-command] [itach-mod] [itach-conn] [message-count]
- Python object
.. code-block:: pythonimport pyitachip2ir
import logginglogging.basicConfig(level=logging.INFO) # Get log messages from pyitachip2ir
mac_address = None # If known use this, it will search for the itach
ip_address = "127.0.0.1"
port = 4998
itach = pyitachip2ir.ITachIP2IR(mac_address, ip_address, port)with open("tv_commands.txt",'r') as cmds:
itach.addDevice("tv", 1, 3, cmds.read())if not itach.ready(5000): # Search for 5 seconds for device
raise IOError("ITach not found")itach.send("tv", "ON", 1)
License
-------
- MIT LicenseAny questions please contact: [email protected]