Moors7
August 17, 2015, 10:16pm
2
Have a look at this:
Letās say you have a Spark core with both a Spark variable and a Spark function. In my case, I have the worldās simplest servo control sketch, using the nice miniature servo in the Spark Maker Kit. Using these parts, we will build a servo that you can control from a web page anywhere and monitor the position of the servo too!
Hereās a preview of the finished tutorial:
[image]
There is a coarse adjust slider, two fine adjust buttons, and the current position of the servo is displayed. Thatā¦
This:
This is a mini-tutorial!
Letās say your have sensor farm of Spark cores all publishing their data to the Spark Cloud. You need a way to see all that data in near real-time, all on one dashboard. So, how can you do it? There are lots of ways but hereās a simple one that you can edit and change to meet your needs.
First a couple of in action screen shots, first for the event named āUptimeā:
[image]
And hereās another shot for the event named āTempā:
[image]
As you can see, you enter yourā¦
And their corresponding documentation over here:
https://docs.particle.io/reference/firmware/photon/#spark-variable-
and here:
https://docs.particle.io/reference/firmware/photon/#spark-publish-
A forum search should also point you toward several topics in which the same has been done. Do check those out, give it a try, and let us know if you can't figure it out