I have a Uno controlling our irrigation system. It works well but the only way to change the timing is to disconnect it, bring it to the computer, and reprogram it. So I’m building a web interface to adjust timing parameters. I want the website to send any changes to the Uno and I want the Uno to send changes in status (i.e. “strawberry sprinklers ON”) to the web for display. Sending from the Uno to the website using POST/GET is easy. But because my Uno is connected via a home router I’m not sure of the best way to send data from the website. Here are the options as I see them:
- Configure my router to allow the Uno to be seen from the web. This is where I’m leaning right now, though I’m not relishing the task.
- Have the Uno poll the website on tabletypes for changes. This could be as infrequently as every five minutes. For some reason this offends me as a waste of bandwidth even though I know it’s common.
- Explore the use of websockets. This is enticing but I don’t know enough about it. For instance, can I establish a connection and leave it open 24/7 without using it?
Any thoughts would be helpful. I’m sure there are issues I haven’t considered. And possibly other methods.
Thank you in advance