These instructions assume that you know how to install and navigate your OS on your device.
Install Raspberry Raspbian for the raspberry pi ARM Platform depending on your hardware.
Initial setup of Raspberry Raspbian is easier with monitor keyboard and mouse hooked up local to your device.
Enable SSH in configuration, once you have enabled SSH then remote configuring is preferred for below instructions.
You can copy and paste below commands into the terminal, these instructions assume you have knowledge on the ability to SSH into your device.
Copy and paste is the easiest, and PuTTY allows right click paste.
These steps use the default user of pi, so if using different then what is default make changes as needed.
(Note some stuff will not work fully until all the steps have been done IE shared folders won’t connect until that directory is made.)
This instruction will do the following:
-
Will allow network shares of certain folders for editing and backing up your configuration of files and access to root directory.
((WARNING MESSING AROUND IN ROOT DIR CAN BREAK YOUR INSTALL)) -
Will install Z-Wave JS UI server onto your device.
-
Will allow Zwave-JS Server to restart after a reboot.
-
Will allow Access at your machines IP local address “http://xxx.xxx.xxx.xxx:8091/”
-
Upgrade Scripts towards the end of this Tutorial please read carefully.
“DO NOT COPY AND PASTE STUFF IN QUOTES”
“LOG INTO THE TERMINAL.”
sudo apt update
sudo apt upgrade -y
sudo apt autoremove -y
“STEPS BELOW ALLOWS SHARING OF FOLDERS OVER YOUR LOCAL NETWORK.”
sudo apt install samba -y
sudo nano /etc/samba/smb.conf
“CLEAR SCREEN BY HOLDING DOWN THE CTRL AND K KEYS.”
“COPY ALL BELOW THIS LINE DOWN TO NOT INCLUDING END.”
[global]
netbios name = Zwave Server
server string = The HA File Center
workgroup = WORKGROUP
hosts allow =
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=65536 SO_SNDBUF=65536
remote announce =
remote browse sync =
[HOME PI]
path = /home/pi
comment = No comment
browsable = yes
read only = no
valid users =
writable = yes
guest ok = yes
public = yes
create mask = 0777
directory mask = 0777
force user = root
force create mode = 0777
force directory mode = 0777
hosts allow =
[ROOT]
path = /
comment = No comment
browsable = yes
read only = no
valid users =
writable = yes
guest ok = yes
public = yes
create mask = 0777
directory mask = 0777
force user = root
force create mode = 0777
force directory mode = 0777
hosts allow =
[ZWAVE SERVER]
path = /home/pi/zwave-js-ui
comment = No comment
browsable = yes
read only = no
valid users =
writable = yes
guest ok = yes
public = yes
create mask = 0777
directory mask = 0777
force user = root
force create mode = 0777
force directory mode = 0777
hosts allow =
“END”
“PRESS CRTL+O (write out), ENTER, CTRL+X (exit).”
sudo smbpasswd -a pi
“ENTER THE PASSWORD IT WILL ASK TWICE.”
sudo service smbd restart
“STEPS BELOW MAKES Zwave-JS Server START ON REBOOT.”
sudo nano -w /etc/systemd/system/zwavejs.service
“COPY ALL BELOW THIS LINE DOWN TO NOT INCLUDING END.”
[Unit]
Description=ZWave-JS
Wants=network-online.target
After=network-online.target
[Service]
User=pi
Group=pi
WorkingDirectory=/home/pi/zwave-js-ui/
ExecStart=npm start
[Install]
WantedBy=multi-user.target
“END”
“PRESS CRTL+O (write out), ENTER, CTRL+X (exit).”
sudo systemctl --system daemon-reload
sudo systemctl enable zwavejs.service
sudo systemctl disable hciuart
“PREREQUISITES”
curl -sL https://deb.nodesource.com/setup_16.x | sudo bash -
sudo apt-get install -y nodejs
“BELOW DISABLES BLUETOOTH ON THE PI SEEMS TO SOLVE SOME ISSUES”
dtoverlay=disable-bt
sudo systemctl disable hciuart
“BELOW INSTALLS THE ZWAVE JS SERVER.”
“Reboots when done with install.”
cd
mkdir zwave-js-ui
git clone https://github.com/zwave-js/zwave-js-ui.git
cd zwave-js-ui
npm install
npm run build ; sudo reboot
“BELOW STARTS THE SERVER”
If you installed everything and rebooted and try to use below it will whine about the port in use because it is already started.
cd
cd zwave-js-ui
npm start
“WARNING BELOW DELETES THE DIR AND ALL THAT IS IN IT,”
“BACK UP YOUR FILES”
" Only use this if you want to do a clean reinstall of the Zwave Server"
sudo rm -r zwave-js-ui