I would like to use my spark core to monitor a room at remote location for darkness (using a photo resistor) but I am not certain how I am to communicate with my Spark when it is not on the same network.
By monitoring, I would like to be able to query the spark core via the spark cloud api to check variables which would be assigned to it like how the LED is called here http://docs.spark.io/examples/#control-leds-over-the-net
Have others done this? Can you point me to documentation or an example?
It can be done easily as the other guys pointed out. By default, the Spark Core talks to the Spark Cloud as long as it has access to the internet. That way, you can monitor or control or do whatever you want anywhere you have internet access. As an example, I was demo’ing one of my projects at Maker Faire. The catch is my project was still at home in Tennessee (~2800 miles away), but I was still able to turn my deck lights on and off from my cell phone web browser!
Thanks everyone! This is exactly what I was looking for. I wasn’t clear from the docs that setting Spark.variable would actually push to the Spark API for me – seemed (and IS) too good to be true!