Hello,
I would like to set my pi up as a server and be able to update the values of variables in my python script with values coming from an input on the web page. For example, I want a stepper motor to make a certain number of steps based on value inputted into a box on a web page. Is it possible to do this? I know there are ways to control the GPIO from a web page but that is not what I want to do. I want my python code to control the GPIO and just have the input from the web page update the value of a variable in the code.
I have followed a tutorial on how to set up a server with Flask, I think this might be a good start. If anyone has done something like this or knows how to do this, please let me know.
Thank you