Thanks Ric, I know I was a little bit vague with my explanation, but my approach is also very general.
Anyway, you still guide me to the right answer.
Look, seems like these two tutorials are exactly what I was looking for:
Here’s a tutorial to get you started using Spark.publish().
Let’s imagine you want to monitor your core’s uptime, that is, how many hours, minutes, and seconds since the last time the core was reset or powered-up and view it on a web page that you can leave open all the time.
You can use the millis() function to measure time and for this example, you can ignore the fact that it can wrap-around back to zero after many days. So you need two things, code for your Spark core and code for a web page…
Let’s say you have looked at the Getting Started with Spark.publish() tutorial, but you need to send data that needs more processing once it gets to its destination on the web. You have a lot of choices for the data format, but one simple choice is to use JSON, the JavaScript Object Notation which let you send property names and values in an easy to read and easy parse to format.
You may have noticed in fact that the data returned by listening to the event stream from a published event is alr…