# Install Z Wave on Node-RED
# openZwave
For installing node-red-contrib-openzwave, it's necessary to install first OpenZWave library and headers.
See details on npmjs
Manually compiling OpenZwave from source
# Install libudev-dev
Nodejs already installed
$ apt-get update
$ apt-get install -y build-essential libudev-dev
# Download and compile Open-Zwave library
Get the unix source
$ wget https://github.com/OpenZWave/open-zwave/archive/<version>.tar.gz
Untar
$ tar zxvf openzwave-*.gz
Compile Open-Zwave
$ cd openzwave-*
$ make && make install
Update the environment variable
$ 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
# Install zwave from Node-RED
Now you can install node-red-contrib-openzwave which process openzwave-shared
$ npm install --save node-red-contrib-openzwave