How do I access my Spark Core from another or external network

Hi,

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?

Thanks,
Kevin

You can make use of Spark.variable () which posts the value to the :spark: cloud and you can retrieve it via Internet using Api :slight_smile:

Have you read this tutorial yet?

1 Like

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!

2 Likes

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!

1 Like