My z-wave is working fine,I am able to add a device and control it through the reference_client(libzwaveip) on the terminal.
But I want to do this from a program. I tried running the JavaScript examples(addnode.js, removenode.js, list.js) from this link -“https://github.com/matrix-io/matrix-malos-zwave/tree/master/src/js_test” which is giving error.
I found that i did not install “protobufjs” and installed it, and yes my node version is 6.5.0.
now i am getting this error:
pi@raspberrypi:~/matrix-malos-zwave/src/js_test $ node addnode.js
/home/pi/matrix-malos-zwave/src/js_test/addnode.js:17 var matrixMalosBuilder = protoBuilder.build(“matrix_malos”)
** ^**
TypeError: protoBuilder.build is not a function
at Object. (/home/pi/matrix-malos-zwave/src/js_test/addnode.js:17:39)
at Module._compile (module.js:556:32)
at Object.Module._extensions…js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
at Function.Module._load (module.js:424:3)
at Module.runMain (module.js:590:10)
at run (bootstrap_node.js:394:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:509:3
Well, I don’t know much about nodejs, but the examples for zwave look a bit outdated than those of malos. You’d better wait for someone who knows more about it, or try to read yourself in.
You can query specific driver info using port 50000.
FLAGS_psk : 123456789012345678901234567890aa
I/O warning : failed to load external entity “ZWave_custom_cmd_classes.xml”
Could not load Command Class definitions
terminate called after throwing an instance of ‘zmq::error_t’
what(): Address already in use
Aborted