any news out there if local cloud get´s an update, 2nd beta or a RC?
Anyone get spark.publish() to work with the local cloud? My code works fine with the Spark Cloud but not with the local one. Afair I wasn´t the only one with that issue.
@spark.publish()
Nope did not work for me, but let me explain what I have done to switch from “spark-cloud” to “local-cloud”. First I prepare my core to connect to my local cloud, with this tutorial https://github.com/spark/spark-server. Everything seem to works fine. Next step was to change my code from my website to get the results from my local cloud instead of the spark cloud:
<script type="text/javascript">
function start() {
var deviceID = "1234";
var accessToken = "5678";
var eventSource = new EventSource("http://my.url:8080/v1/devices/" + deviceID + "/events/?access_token=" + accessToken);
instead of
var eventSource = new EventSource("https://api.spark.io/v1/devices/" + deviceID + "/events/?access_token=" + accessToken);