Recieving Publish Events from Boards that I should not have access to

Hi All,

I’m new to Spark and I may be making a total beginners error, but I’m seeing events from board IDs that I don’t control. My board id ends with 0687, but you can see below that I’m getting events from other people’s boards. Any idea what is happening? Does this have to do with public vs. private events? How do I get events from only my board? Also, how do I hide my events from other people? Thanks in advance!!

In the IDE, I have:

Spark.publish("temperature", "19 F");

In the terminal I typed:

curl -H "Authorization: Bearer <my_access_token>" https://api.spark.io/v1/events/temperature

Curl is returning:

event: temperatureInfo
data: {"data":"59.67","ttl":"60","published_at":"2015-03-07T23:07:12.805Z","coreid":"54ff6e066678574930210267"}

event: temperature
data: {"data":"1838","ttl":"60","published_at":"2015-03-07T23:07:12.835Z","coreid":"55ff72066678505526261367"}

event: temperature
data: {"data":"342810","ttl":"60","published_at":"2015-03-07T23:07:13.196Z","coreid":"55ff71066678505518151367"}

event: temperature
data: {"data":"{loc: 8,temp: 22.94}","ttl":"60","published_at":"2015-03-07T23:07:14.822Z","coreid":"51ff6a065067545741340187"}

Any idea what is happening?

Yep

Does this have to do with public vs. private events?

Sure does!

How do I get events from only my board?

Take a look at http://docs.spark.io/api/#reading-data-from-a-core-events
In short you want

curl -H "Authorization: Bearer <my_access_token>" https://api.spark.io/v1/devices/events/temperature

instead of

curl -H "Authorization: Bearer <my_access_token>" https://api.spark.io/v1/events/temperature

Also, how do I hide my events from other people?

Take a look at http://docs.spark.io/firmware/#spark-publish
in short you want

Spark.publish("temperature", "19 F", 60, PRIVATE);

instead of

Spark.publish("temperature", "19 F");

Thanks in advance!!

You are quite welcome!

Awesome, thank you so much Harrison! I got that to work, now I’m stuck at the next phase, which I’ve put in a new thread: “Publishing Events Only Works for 3 Events then Stops”