OpenZWave JSON API

Creating a MicroService / API based off the OpenZWave Control Panel

Installation Instructions on Raspbian

cd
sudo apt-get install build-essential make git libudev-dev libgnutls28 libgnutlsxx28  libgnutls-dev gnutls-dev
git clone https://github.com/rbaindourov/open-zwave
cd open-zwave
make
make install
cd 
wget http://mirror.clarkson.edu/gnu/libmicrohttpd/libmicrohttpd-0.9.50.tar.gz
tar -xzf libmicrohttpd-0.9.50.tar.gz
mv libmicrohttpd-0.9.50 libmicrohttpd
cd libmicrohttpd
./configure
make
make install
cd 
git clone https://github.com/rbaindourov/open-zwave-control-panel
cd open-zwave-control-panel
make

You will need to determine which serial port the ZStick / razBerry is plugged into. This is usually done by tailing dmesg with a dmesg | tail after plugging the ZStick into an open USB slot. Use this value to start up the API.

./ozwcp -p 5555 -z /dev/ttyACM0