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:
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 0689
CH2
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 0689
Dependencies
CMake 2.8 or Python 2 or 3
How to use
- Executable command line interface for sending one shot ir commands
./itachip2ir [ip-of-itach] [itach-listening-port] [ir-commands.txt] [name-of-ir-command] [itach-mod] [itach-conn] [message-count]
- Python object
import pyitachip2ir import logging logging.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 License
Any questions please contact: alan@lightningtoads.com
Metadata
Release files for pyitachip2ir 0.0.7
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pyitachip2ir-0.0.7.tar.gz | 7.8 kB | Without provenance | Details for pyitachip2ir-0.0.7.tar.gz |
Release files / pyitachip2ir-0.0.7.tar.gz
| Download URL | pyitachip2ir-0.0.7.tar.gz |
|---|---|
| Size | 7.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
4ff437b594d3c2a95a1c34769769d12c8482e0b2eb38f659bf5e2c471632a834
|
|
BLAKE2b-256 checksum How to use checksums |
3ec5115f66951b1ecc81b37edd1067064255b5b96be5c60179fe972901c76c1b
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
Security for pyitachip2ir 0.0.7
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.