Local cloud update? / Spark.publish

Hi *,

I have two questions:

  1. any news out there if local cloud get´s an update, 2nd beta or a RC?

  2. 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.

Thank´s in advanced cheers clyde!

Spark publish works fine for me. At least in Spark-cli for watching the firehose. :wink:

1 Like

@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);

Mainly I used the code from @bko tutorial https://community.spark.io/t/tutorial-getting-started-with-spark-publish/3422. And once again it work fine with the spark-cloud but not with my local one. It seems that it can connect but did not get results.