irgen

A python tool for generating and converting ir formats


License
MIT
Install
pip install irgen==0.2.0

Documentation

Generation/Conversion of IR commands

This module support conversion and generation of IR formats

Status

https://travis-ci.org/elupus/irgen.svg?branch=master https://coveralls.io/repos/github/elupus/irgen/badge.svg?branch=master

Input Formats

Nec

Several NEC variants are supported: nec1,nec1-y1,nec1-y2,nec1-y3,nec1-f16,nec2,nec2-y1, nec2-y2,nec2-y3,nec2-f16,necx1,necx1-y1,necx1-y2, necx1-y3,necx1-f16,necx2,necx2-y1,necx2-y2,necx2-y3,necx2-f16

irgen -i nec1 -d 16 0 0 -o raw

Philips RC-5 Protocol

irgen -i rc5 -d 16 -1 0 -o raw

Philips RC-6 Protocol

irgen -i rc6 -d 16 -1 0 -o raw

RCA RCA-38 Protocol

irgen -i rca38 -d 15 -1 0 -o raw

Raw

Raw times, positive meaning on negative meaning off.

irgen -i raw -d +889.0 -889.0 +1778.0 -1778.0 +1778.0 -889.0 +889.0 -889.0 +889.0 -889.0 +889.0 -889.0 +889.0 -889.0 +889.0 -889.0 +889.0 -889.0 +889.0 -889.0 +889.0 -1778.0 +889.0 -88900.0 -o pronto

Broadlink

irgen -i broadlink_base64 -d JgAcAB0dOjo6HR0dHR0dHR0dHR0dHR0dHTodAAtnDQUAAAAAAAAAAAAAAAA= -o pronto

Output Formats

Raw

Raw times, positive meaning on negative meaning off.

Pronto

Pronto IR format

Broadlink

Broadlink binary format for their IR transmitters. Two variants broadlink and broadlink_base64 with the latter being base64 encoded.

irgen -i rc5 -d 16 -1 0 -o broadlink
irgen -i rc5 -d 16 -1 0 -o broadlink_base64

Console

The module contains a commandline utility to test and request data from called irgen.

Library

The module contains a library with functions for generation of ir codes