I was browsing the cloud API this weekend and this morning and decided that what I needed was a sort of control panel for keeping track of my Sparks and their functionality. I built a quick-and-dirty “control panel” that allows you to see a list of all of your Cores, their connection status, and when the cloud last heard from them. If you select a Spark, it drills down into a detail screen that lists the variables and function calls available from that core. It will even allow you to query the variables and post data to make function calls. The one thing that it does not have (that I didn’t think about until just now) are the
Spark.publish() event source streams. I’ll add those in sometime soon!
The code is posted in my spark-control-panel GitHub repository.
It’s not for everyone, but I hope some people find it useful. It doesn’t allow you to toggle or read digital pins or anything of that nature, but it does allow you to get the variables or make function calls directly. This is pretty hastily written, so it needs some commenting and clean-up, and probably a way to specify using direct communications with the cloud API or set your own proxy URL (right now, it relies on the mod_rewrite version of my Simple Spark PHP Proxy).
List of claimed cores with their connection status
_ General core information, variables, and functions _
JSON response of a variable query
JSON response of a function call