I understand to control gpio of Pi using web browser in local server. There is need to make html page and python program and the python program will run on server. and I run Apache server on Raspberry Pi3
Code: Select all
import RPi.GPIO as GPIO ## Import GPIO library import time ## import Delay library GPIO.setmode(GPIO.BOARD) GPIO.setup(26,GPIO.OUT) while True: GPIO.output(26,True) ##Turn on LED time.sleep(1) ## wait for one second GPIO.output(26,False) ## Turn of LED time.sleep(1)
Now I am trying to write python program that can be turn on/off led and can be run on Apache server
I have searched on internet there are some program with different server and different model. I didn't understand how to make complete python program to run on server. Should I install wiring Pi library. How to modify my program to run on Apache server ?