javascript - Sensor Data on Vis.js -


i working wireless sensor networks , have been obtaining sensor's addresses , sensing parameter temperature in json format. format follows:

{"eui":"c10c00000000007b","count":0"tmp102":" 0.0000 c"} 

as far connection of network, parent node , next destination got through json format (on ubuntu gnome terminal) using coap (constrained application protocol) sensor networks has synonymous implementation http light weight.

{"dest":"aaaa::c30c:0:0:7b","next":"fe80::c30c:0:0:7b"} 

for further details please refer repository

i want create visualization of topology of sensors if possible attributes when 1 clicks on sensor, last sensed value observed.

i storing first in file .json extension. want try visualization in vis.js relatively new it. have seen example of gephijson somehow not understand implementation.

any sincere guidance appreciated.

if want load data vis.js, have convert format vis.js understands: array nodes [{id: 1, label: 'node 1'}, ...] , array edges [{from: 1, to: 2}, ...]. can use event listeners listen event select, , in case display additional information selected node in side panel or something.


Comments

Popular posts from this blog

Fail to load namespace Spring Security http://www.springframework.org/security/tags -

sql - MySQL query optimization using coalesce -

unity3d - Unity local avoidance in user created world -