I have a web server and 5 Raspberry Pi's connected to it via LAN. Each Pi will be wired to control two servo motors. Here are the conditions:
- The web server hosts a web page where the user will be able to control these servos.
- The user will select which pi to control using UI on the web page.
- I'm considering having the web server to generate a program (perhaps in Python) to be uploaded to the Pi to execute and control the servos.
Would it be possible or practical to have the web server generate this Python code, or is there a better way to accomplish this?