Skip to main content

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 examples directory.
  • 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

:copyright: Willy Nolan 2020

MIT License

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)

Source distribution for irreceiver 0.9.5
File Size Uploaded
irreceiver-0.9.5.tar.gz 4.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for irreceiver 0.9.5
File Interpreter ABI Platform
irreceiver-0.9.5-py3-none-any.whl Python 3 none any Details

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

Release history Release notifications | RSS feed

This release

0.9.5 This release

2 release files

0.9.4

2 release files

0.9.3

2 release files

0.9.2

2 release files

0.9.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page