GithubHelp home page GithubHelp logo

ir2k's Introduction

ir2k

This script allows you to use an infrared remote without LIRC. Tested on Xiaomi Mi-router 3 (firmware Padavan) with Xenta SE340D PC Remote Control.

Install

Installation on Padavan

wget https://raw.githubusercontent.com/xhda/ir2k/master/ir2k.py && wget https://raw.githubusercontent.com/xhda/ir2k/master/keys.cfg
opkg update
opkg install alsa-utils madplay-alsa curl python

Enable modules

modprobe snd-usb-audio
modprobe usbhid
modprobe evdev
modprobe usbserial

Install Shairport-sync

opkg update
opkg install shairport-sync-mini netatalk
mkdir -p /etc/storage/airplay/
cp shair.conf /etc/storage/airplay/shairport-sync.conf

Add to autorun

route add -net 224.0.0.0 netmask 224.0.0.0 br0
/opt/bin/shairport-sync -d -a AirPi

Usage

Run

Record Keys

python ir2k.py -r --cfg /path/keys.cfg

Daemon

python ir2k.py -d > /dev/null 2>&1 &

#OR

python ir2k.py -d --cfg /path/keys.cfg > /dev/null 2>&1 &

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.