Spark API helper

A handy-dandy API helper for playing with the Spark API. Thanks jflasher (on Github)!

http://jflasher.github.io/spark-helper/

2 Likes

Based on jflasher’s awexome helper, I hacked it up and trimmed it down to be just a function controller with 1 to 4 buttons in my initial example. It would be very easy to add more buttons though. It’s also just the right size for an iPhone web app. Up on github now: https://github.com/technobly/Simple-Spark-Core-Controller

2 Likes

Very cool. For me function calls work but reading variables seems to do nothing?

Right now variables in the helper app are broken because the Cloud API is being updated. If you want to make the variables work again, you need to change code in 4 places in /js/main.js from:

res.result

to:

res.TEMPORARY_allTypes.number

It will change again in the future so just be on the lookout for when that happens :wink:

Excellent program!
But there is a small error in Java script program.
And in case you do not be connected SparkCore when you send a command after some time a message appears Success!
Maybe you should make timeout feature in order to avoid this.
Because in this way is not known whether SpaprkCore really accept command.
This can also be done with variable feedback from Spark.