Skip to content

Tutorial | Sample 2

bl4z edited this page Dec 6, 2014 · 5 revisions

Chart some lines

sample 2

open in jsfiddle

Be sure to set correct path to your socket server in External resources tab (see sample 1 for details)

http://192.168.1.178:7777/socket.io/socket.io.js

Be sure to set correct path to jquery floatcharts libs in External resources tab

http://cdnjs.cloudflare.com/ajax/libs/flot/0.8.2/jquery.flot.min.js

Next thing would be to start croosle server (npm start), Connect to sensortag unit, Subscribe to its sensors and Open io socket. (see sample 1 for details)

When all set, run code and data from sensortag should appear in jsfiddle result window.

Clone this wiki locally