Software preparation - cugfeng/Home_Automation GitHub Wiki
Install Apache:
sudo apt-get install apache2
Install PHP:
sudo apt-get install php5
Install lirc:
sudo apt-get install lirc
Add below lines into /boot/config.txt to load kernel module during system start up:
# For temperature sensor
dtoverlay=w1-gpio,gpiopin=4
# For IR
dtoverlay=lirc-rpi,gpio_out_pin=23,gpio_in_pin=18
Change /etc/lirc/hardware.conf as below:
lirc $ diff -u hardware.conf.old hardware.conf
--- hardware.conf.old 2014-07-17 21:04:28.240651989 +0800
+++ hardware.conf 2014-07-17 21:05:01.249714231 +0800
@@ -1,7 +1,7 @@
# /etc/lirc/hardware.conf
#
# Arguments which will be used when launching lircd
-LIRCD_ARGS=""
+LIRCD_ARGS="--uinput"
#Don't start lircmd even if there seems to be a good config file
#START_LIRCMD=false
@@ -13,10 +13,10 @@
LOAD_MODULES=true
# Run "lircd --driver=help" for a list of supported drivers.
-DRIVER="UNCONFIGURED"
+DRIVER="default"
# usually /dev/lirc0 is the correct setting for systems using udev
-DEVICE=""
-MODULES=""
+DEVICE="/dev/lirc0"
+MODULES="lirc_rpi"
# Default configuration files for your hardware if any
LIRCD_CONF=""