curl -sL https://deb.nodesource.com/setup_0.12 | sudo bash -
sudo apt-get install -y nodejs build-essential libudev-dev
Get the unix source at http://old.openzwave.com/downloads/ (tested with openzwave-1.2.919.tar.gz)
wget http://old.openzwave.com/downloads/openzwave-<version>.tar.gz
tar zxvf openzwave-*.gz
cd openzwave-*
make && sudo make install
export LD_LIBRARY_PATH=/usr/local/lib64
make it permanent by adding it to /etc/environment
sudo sed -i '$a LD_LIBRARY_PATH=/usr/local/lib64' /etc/environment
At this step you can ensure Open-Zwave library is correctly installed with
MinOZW
cd /<project directory>
npm install openzwave-shared
cp /usr/local/etc/openzwave/options.xml options.xml
wget https://raw.githubusercontent.com/OpenZWave/node-openzwave-shared/master/test2.js
node test2.js