IRReceiver
A module to parse the NEC IR remote control protocol in Python
Description
This is a fully tested module that creates a parser for the NEC IR remote control protocol.
The NEC protocol is used by many remotes, you can read about it here.
NOTE: Although there is an example of this sketch that is made for the Raspberry PI, it is unlikely to work. The Raspberry Pi does not have a real time operating system and in my testing this did not work reliably.
Dependencies
- This project has no external dependencies but the example code does depend on being run on a Raspberry Pi.
- All code follows PEP 8 and there is a Github action to run code through YAPF before it is merged to the main branch.
Tested On
- A Raspberry Pi (first generation)
- A Yamaha MRX-90M remote
To Install
pip install irreceiver
To Use
- An example file can be found in the
examplesdirectory. - Here is a basic example of decoding an list of IR timing pulses:
from irreceiver import NecDecoder
decoder = NecDecoder()
# PULSES should be a list of IR pulse timings
message = decoder.decode(PULSES)
# Message will be a number such as 0x00AD where the first byte 00 is the address and the second byte AD is the command
Project Structure
Directory structure should be clear. All code is in the irreceiver directory.
License
©️ Willy Nolan 2020
Metadata
Release files for irreceiver 0.9.5
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 |
|---|---|---|---|---|
| irreceiver-0.9.5.tar.gz | 4.4 kB | Without provenance | Details for irreceiver-0.9.5.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| irreceiver-0.9.5-py3-none-any.whl | Python 3 | none | any | Details for irreceiver-0.9.5-py3-none-any.whl |
Total release size: 9.0 kB
Release files / irreceiver-0.9.5.tar.gz
| Download URL | irreceiver-0.9.5.tar.gz |
|---|---|
| Size | 4.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d0b52ff84feef9505bd66d3642e5a00b2bc2a14e358d1461cb59cfbf060ca1bc
|
|
BLAKE2b-256 checksum How to use checksums |
91303953f90a256e167d56974fabd3e0f1664a6fa3c84bd46660d44884579ade
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0
|
Release files / irreceiver-0.9.5-py3-none-any.whl
| Download URL | irreceiver-0.9.5-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
c2c1ad969f300f9f09910bebe3727682ad3b07c9d4c2c7a8ca2bbcfc856e4ca8
|
|
BLAKE2b-256 checksum How to use checksums |
27fffd2979f1148647c90fac2b0501284e4f86d4766d125fb0751398768934cd
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.6.1 requests/2.25.0 setuptools/49.2.1 requests-toolbelt/0.9.1 tqdm/4.54.1 CPython/3.9.0
|
Security for irreceiver 0.9.5
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.