Hi – i have almost completed a thingSpeak program to scrape the Evapotranspiration from an Australia BOM weather website and are using it to adjust the percentage watering on open sprinkler. The very last step is to work out how to send the command from thingSpeak to OS. I just wanted to confirm that the OpenSprinkler API requires a GET call and cannot use POST ? I have been playing around with POSTMAN and that testing seems to support my conclusion. I can also send the command from my browser successfully. Is my understanding correct or are the other ways of making the request ?
PS: if anyone has done this and can show me how they did that would be awesome.
Hi – still looking for some help here. I have confirmed the correct command to use in ThingSpeak but opensprinkler responds with forbidden. Does anyone have experience using ThingSpeak or does anyone know of a reason this might be rejected ?
If I copy the command out of the error message and use it in my browser or in POSTMAN it works fine. Obviously some of the details below have been modified for security reasons.
Have you set up your network to allow incoming requests from the internet? It’s very possible that your router is blocking the request. You’d need to open the port and forward to your OS for this to be successful.