Control GPIOs with a webinterface. Simple, powerful.
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
data
images
scripts
src
stylesheets
tmp
.gitattributes
.gitignore
LICENSE
README.md
index.php

README.md

Control GPIOs with a webinterface. Simple, powerful

A easy to use webinterface to control all GPIO in/outputs of your raspberry pi or other device. Enable and disable GPIO just with one button directly with your smartphone, tablet or desktop browser.

Support me

If you like to buy some coffee, i will appriciate it. You can do this on Patreon or via PayPal

Features

  • Define GPIOs and watch the status
  • Enable/Disable GPIOs with just one click
  • Responsive design - Great for desktop, smartphone or tablets
  • Multilanguage

How to contribute

Feel free to send pull requests. Create an issue for a new feature BEFORE you do some coding. We should talk about that before. Translations are pretty straight forward, you can just add them without an issue.

Third Party Requirements

This interface requires wiringPi to be installed. The command gpio must be available. It's super easy to install, goto http://wiringpi.com/download-and-install/

Requirements

It is strongly recommended to use it just with the php command line. Maybe it will not work when running with a webserver like apache or nginx. Just use it as described bellow. Only PHP is required. It is also PHP7 compatible. Try all, depending on your system some packages are not available but that is no problem.

sudo apt-get install php-cli
sudo apt-get install php-mbstring
sudo apt-get install php5-cli
sudo apt-get install php5-mbstring

Installation

Download/Clone/Unpack the whole script to a folder you like. Create a php webserver listening on port 4322, you can change the port to whatever you want. Start this with the same user that can execute the gpio executable. Please do not use apache or other server's to run the php script, it will probably not work.

php -S 0.0.0.0:4322 -t YOURPATHTSCRIPTFOLDER > /dev/null 2>&1 &

Open the webpage with http://IPTOYOURPI:4322

Autostart

To enable autostart on reboot just add the following line to your crontab. Do this with the same user that can execute the gpio executable. No sudo required.

Add the following line to crontab with crontab -e to start the simple php webserver on reboot

@reboot php -S 0.0.0.0:4322 -t YOURPATHTSCRIPTFOLDER > /dev/null 2>&1 &

Troubleshooting

  • If you have troubles with write permissions just give the data and tmp folder the 777 permission.