Skip to content

A web interface created with Python and Flask micro-framework in order to control GPIO pins in Raspberry Pi

Notifications You must be signed in to change notification settings

photous/gpio_web_control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

gpio_web_control

A web interface created with Python and Flask micro-framework in order to control GPIO pins in Raspberry Pi You can install flask by running this command: pip install Flask Then you can specify the pin number inside the app.py file (just change the value of the functions parameter).

    gpio_on(pin)
    gpio_off(pin)

The default pin number is 11 (GPIO 17)

To start the app, you should type in the command:

    sudo python app.py

After running the Application you can access it via the Raspberry Pi IP address and the port 5000, So the url should be something like the following (assuming your Pi's IP address is 192.168.2.2):

192.168.2.2:5000

You Should see something Like the following image:

About

A web interface created with Python and Flask micro-framework in order to control GPIO pins in Raspberry Pi

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published