-
Notifications
You must be signed in to change notification settings - Fork 0
Installation instructions
This is a simple set of instructions to install the irreplay utility.
I assume that you are using a Raspberry Pi and your username is "pi" but this should work with ubuntu aswell.
-
Update and install lirc:
sudo apt-get update sudo apt-get install lirc
-
Edit the /etc/modules:
sudo nano /etc/modules
- Add the following to end of file:
Here I use pin 18 and 17. Change these to where your IR receiver and transmitter are plugged in.
lirc_dev lirc_rpi gpio_in_pin=18 gpio_out_pin=17
- Add the following to end of file:
-
Edit/Create your /etc/lirc/hardware.conf file:
sudo nano /etc/lirc/hardware.conf
- Change contents the to:
######################################################## # /etc/lirc/hardware.conf # # Arguments which will be used when launching lircd LIRCD_ARGS="--uinput" # Don't start lircmd even if there seems to be a good config file # START_LIRCMD=false # Don't start irexec, even if a good config file seems to exist. # START_IREXEC=false # Try to load appropriate kernel modules LOAD_MODULES=true # Run "lircd --driver=help" for a list of supported drivers. DRIVER="default" # usually /dev/lirc0 is the correct setting for systems using udev DEVICE="/dev/lirc0" MODULES="lirc_rpi" # Default configuration files for your hardware if any LIRCD_CONF="" LIRCMD_CONF="" ########################################################
- Change contents the to:
-
Restart the lirc daemon:
sudo /etc/init.d/lircd restart
-
Edit your /boot/config.txt file:
sudo nano /boot/config.txt
- Add the following to the end of file:
dtoverlay=lirc-rpi,gpio_in_pin=18,gpio_out_pin=17
Again here I used pin 17 and 18. Do the same here as you did before.
- Add the following to the end of file:
-
Reboot the pi:
sudo reboot
-
Download the pylirc-0.0.5.tar.gz
-
Unpack the tar file:
tar xvzf pylirc-0.0.5.tar.gz
-
Install the pylirc dependancies:
sudo apt-get install python-dev liblircclient-dev
-
Run the setup script for pylirc (You will need to be in the directory):
cd /home/pi/pylirc-0.0.5/ sudo python setup.py install
-
You already have everything setup for irreplay, you can either use it now with:
python /home/pi/irreplay/irreplay.py
-
Or you can make a symbolic link to your bin directory so you can easily run it (you can also do this after you have run it normally. It doesn't really matter):
ln -s /home/pi/irreplay/irreplay.py /home/pi/bin/irreplay
-
Then to run it:
irreplay