ThisIsQasim / WebGPIO

A simple web UI for controlling the GPIO pins on a Raspberry Pi
GNU General Public License v3.0
72 stars 30 forks source link

execute external python script from html button #22

Open zubairqureshi81 opened 2 years ago

zubairqureshi81 commented 2 years ago

Hello, I find your WebGPIO extremely useful for one of the project that I am currently working on Raspberry Pi. However, I would like to add an option to run/execute a python script from one of the html buttons (e.g. internet button) that is sitting in another folder. That script also controls GPIO pins but does it in a very specific order/pattern. I found a lot of other articles and documents to do this with django or flask but none of them were clear or worked correctly.

Any help will be greatly appreciated.

Regards.