I have a project in mind where I don’t want to send or receive a discrete event from the cloudBit; I simply want to read the state of its input.
As far as I can tell, the way to do this is via the cloudBit API with an HTTP query. It can be done using, say, cURL, or a web page if you want to craft one. Am I understanding correctly so far?
Here’s the rub: I want to connect this to If This Then That, so that when an event on a IFTTT channel triggers (say, my Android device disconnects from my work WiFi), it runs a script that queries the state of the cloudBit input and then performs an action based on that state (e.g. sends me a text if the cloudBit is receiving input).
Right now I don’t see a way to do this. The cloudBit channel in IFTTT only receives or sends a discrete event; there is no query. I also don’t see a way in IFTTT to run an arbitrary script somewhere (cURL, python, etc.) that would could query the state with the cloudBit API and then do what I want–maybe I’m missing that.
Any thoughts on how to make something like this work?