ircodec
A Python package that simplifies sending and receiving IR signals for the Raspberry Pi using pigpiod.
Requirements
pip install pigpio
Install
For Raspbian 9 (stretch)
pip install ircodec
For others
git clone git@github.com:kentwait/ircodec.git
cd ircodec
python setup.py install
Quickstart
# Create a CommandSet for your remote control
# GPIO for the IR receiver: 23
# GPIO for the IR transmitter: 22
from ircodec.command import CommandSet
controller = CommandSet(emitter_gpio=22, receiver_gpio=23, description='TV remote')
# Add the volume up key
controller.add('volume_up')
# Connected to pigpio
# Detecting IR command...
# Received.
# Send the volume up command
controller.emit('volume_up')
# Remove the volume up command
controller.remove('volume_up')
# Examine the contents of the CommandSet
controller
# CommandSet(emitter=22, receiver=23, description="TV remote")
# {}
# Save to JSON
controller.save_as('tv.json')
# Load from JSON
new_controller = CommandSet.load('another_tv.json')
Acknowledgment
Contact
License: MIT License
Metadata
Release files for ircodec 0.3.0
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 |
|---|---|---|---|---|
| ircodec-0.3.0.tar.gz | 7.0 kB | Without provenance | Details for ircodec-0.3.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| ircodec-0.3.0-py3-none-any.whl | Python 3 | none | any | Details for ircodec-0.3.0-py3-none-any.whl |
Total release size: 15.9 kB
Release files / ircodec-0.3.0.tar.gz
| Download URL | ircodec-0.3.0.tar.gz |
|---|---|
| Size | 7.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
fdf4390e932a46a18ad2bc5810803b97818e2a73e4aeb7c0ffeebddfb31bacf6
|
|
BLAKE2b-256 checksum How to use checksums |
eb60058ce35f3c53a4626b5cd30c9c84a74c3fa361fae84ef3ee4d6b0b64455f
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.6
|
Release files / ircodec-0.3.0-py3-none-any.whl
| Download URL | ircodec-0.3.0-py3-none-any.whl |
|---|---|
| Size | 8.8 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ff5798d3262e8c65480b2bb5d8c37c76f26474eca8d4076a5a61c0b7c3ab4751
|
|
BLAKE2b-256 checksum How to use checksums |
168665e675fa0fd32e297caaf2f24c8e93d400bdd08c01130d849332334c9224
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/1.12.1 pkginfo/1.5.0.1 requests/2.19.1 setuptools/40.6.3 requests-toolbelt/0.8.0 tqdm/4.29.1 CPython/3.6.6
|
Security for ircodec 0.3.0
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.