I’m thinking I will modify this server script to accept 8 binary values to represent 8 outputs in one go in order to save traffic and hopefully keep response speed usable.
For inputs I’ll aim to generate key presses to represent gpio inputs while data is being regularly received? (Watchdog) and stop once output traffic stops. It’s pretty rough but should stop the key presses entering text in other programs once the page is closed. Accepting ideas on a better way but my python and web skills are still beginner.
Wait! Could the server just respond to every command with the values of inputs?
This is the first simulation I have done for an industrial roller door if you want
to have a look.
Roller Door Simulator