Skip to main content

A module to parse the NEC IR remote control protocol in Python

Project description

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

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

irreceiver-0.9.5.tar.gz (4.4 kB view details)

Uploaded Source

Built Distribution

irreceiver-0.9.5-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

File details

Details for the file irreceiver-0.9.5.tar.gz.

File metadata

  • Download URL: irreceiver-0.9.5.tar.gz
  • Upload date:
  • Size: 4.4 kB
  • Tags: Source
  • Uploaded using 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

File hashes

Hashes for irreceiver-0.9.5.tar.gz
Algorithm Hash digest
SHA256 d0b52ff84feef9505bd66d3642e5a00b2bc2a14e358d1461cb59cfbf060ca1bc
MD5 97478fb0ba30c6d246ce1bb76dd114d9
BLAKE2b-256 91303953f90a256e167d56974fabd3e0f1664a6fa3c84bd46660d44884579ade

See more details on using hashes here.

File details

Details for the file irreceiver-0.9.5-py3-none-any.whl.

File metadata

  • Download URL: irreceiver-0.9.5-py3-none-any.whl
  • Upload date:
  • Size: 4.6 kB
  • Tags: Python 3
  • Uploaded using 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

File hashes

Hashes for irreceiver-0.9.5-py3-none-any.whl
Algorithm Hash digest
SHA256 c2c1ad969f300f9f09910bebe3727682ad3b07c9d4c2c7a8ca2bbcfc856e4ca8
MD5 cb94378a1bf9b1fe616b53702f599aaa
BLAKE2b-256 27fffd2979f1148647c90fac2b0501284e4f86d4766d125fb0751398768934cd

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page