A Raspberry Pi project to control 433MHz wireless relays.
This system is based on a tutorial from Tweaker WeeJeWel. You can find his tutorial here (Dutch).
How to use HomeCTRL
-
Follow the steps in the tutorial above
-
Install PHP, Apache and MySQL (you can use this tutorial)
-
Create a MySQL database (you can use this tutorial)
-
Make sure Apache/PHP has the sufficient rights to access the GPIO pins by editing the sudo'ers:
-
Open the terminal or login in via SSH
-
type "sudo visudo"
-
if you want to play it secure:
- add on the end of the file the following lines and replace /path/to/lights/folder with the path where you have compiled the scripts:
www-data raspberrypi=NOPASSWD: /path/to/lights/folder/./
www-data raspberrypi=NOPASSWD: /opt/vc/bin/./
www-data raspberrypi=NOPASSWD: /sbin/iwconfig -
if you don't want to play it secure:
- add on the end of the file this line:
www-data ALL=(ALL) NOPASSWD: ALL
-
save it with pressing CTRL + X and then pressing Y
-
-
Upload the HomeCTRL files to the www folder (/var/www/ unless set otherwise)
-
Make sure your files have the right permissions by chmod:
sudo chmod -R 755 /var/www
-
Edit the config file in /includes/config.php and fill in your settings
-
Go to your favorite browser and type in the ip address of your Pi. It should all work now!