-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPKG-INFO
executable file
·76 lines (57 loc) · 3.44 KB
/
PKG-INFO
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
Metadata-Version: 1.1
Name: pyitachip2ir
Version: 0.0.7
Summary: A library for sending IR commands to an ITach IP2IR gateway
Home-page: https://github.com/alanfischer/itachip2ir
Author: Alan Fischer
Author-email: [email protected]
License: MIT
Description: 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 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
.. 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:: python
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: [email protected]
Keywords: itach ip2ir homeautomation
Platform: UNKNOWN
Classifier: Development Status :: 3 - Alpha
Classifier: Intended Audience :: Developers
Classifier: Topic :: Home Automation
Classifier: License :: OSI Approved :: MIT License
Classifier: Programming Language :: Python :: 2
Classifier: Programming Language :: Python :: 2.6
Classifier: Programming Language :: Python :: 2.7
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.3
Classifier: Programming Language :: Python :: 3.4
Classifier: Programming Language :: Python :: 3.5