News:

The Latest electronic and computer Tips that work!

Main Menu

GPIO Turn On Off Switch or Switches over web

Started by branx86, June 14, 2018, 05:54:09 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

branx86

1. Installing and Using the Wiring Pi Library     
  At raspberry prompt type:        git clone git://git.drogon.net/wiringPi
if you need git type:   apt-get install git-core
Then cd ~/wiringPi   and ./build
To check if installed type: gpio -v then gpio readall
Install Apache and PHP on the Pi with    apt-get install apache2 php5 libapache2-mod-php5
You might have to chmod -R 777 /var/www/html  to copy over the files  copy all the file in the Raspberry_web_Switch_control.zip to the web server folder /var/www/html
navigate to using a webrowser to the pi ip address and see if working.

in the index.php  change the  $i= 0; $i<1  1 =One Button on the screen or whatever number you want up to 8

button 0= Gpio pin 11




Credit to https://www.instructables.com/id/Simple-and-intuitive-web-interface-for-your-Raspbe/