scottyaguas
Posts: 2
Joined: Tue Feb 05, 2019 6:00 pm

Update variables in python script from web input

Tue Feb 05, 2019 7:07 pm

Hello,

I'd like to set up my pi as a web server and be able to input a value into a box on the web page that will update a variable in the code. For example, I'd like to have a stepper motor rotate a certain number of steps and I'd like to calculate that number of steps based on a value entered into the web page, say a linear distance.

What I need help with is setting up a web server from python and communicating the information to the python code. I know there are ways to control the GPIO from a web browser but that is not what I want to do.

Thank you

Return to “Networking and servers”