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.
I’ve responded to this through support ticket. I suggested that you directly use IFTTT to send web request to OpenSprinkler, this way you can avoid having to use ThingSpeak to send web request. Not sure if this would meet your need, but the idea is that IFTTT can receive data from ThingSpeak as ‘trigger’, and send command to OpenSprinkler as ‘action’. The latter can be done using ‘webhook’ that IFTTT supports.