CT, z2mqtt: zwavejs2mqtt was renamed to Z-wave JS UI

This commit is contained in:
2022-10-06 14:49:34 +02:00
parent 7a0de87698
commit 27c4cc7393
5 changed files with 13 additions and 13 deletions

View File

@@ -305,7 +305,7 @@ files:
variants: variants:
- transfersh - transfersh
#FileForZigbee2mqtt&Zwavejs2mqtt #FileForZigbee2mqtt&ZWaveJsUi
- path: /opt/Setup - path: /opt/Setup
generator: copy generator: copy
source: CT-Files/z2mqtt source: CT-Files/z2mqtt

View File

@@ -11,21 +11,21 @@ npm --prefix /opt/node/zigbee2mqtt ci
sed -i -e '/port:/c\ port: \/dev\/ttyACM-Zigbee' /opt/node/zigbee2mqtt/data/configuration.yaml sed -i -e '/port:/c\ port: \/dev\/ttyACM-Zigbee' /opt/node/zigbee2mqtt/data/configuration.yaml
printf "frontend:\n port: 5002" >> /opt/node/zigbee2mqtt/data/configuration.yaml printf "frontend:\n port: 5002" >> /opt/node/zigbee2mqtt/data/configuration.yaml
#Install zwavejs2mqtt #Install Z-Wave JS UI
git clone https://github.com/zwave-js/zwavejs2mqtt /opt/node/zwavejs2mqtt git clone https://github.com/zwave-js/zwave-js-ui /opt/node/ZwaveJsUi
(cd /opt/node/zwavejs2mqtt; yarn install) (cd /opt/node/ZwaveJsUi; yarn install)
yarn --cwd /opt/node/zwavejs2mqtt run build yarn --cwd /opt/node/ZwaveJsUi run build
#Save PM2 statup config #Save PM2 statup config
pm2 start npm --name zigbee2mqtt --cwd /opt/node/zigbee2mqtt -- start pm2 start npm --name zigbee2mqtt --cwd /opt/node/zigbee2mqtt -- start
pm2 start yarn --name zwavejs2mqtt --cwd /opt/node/zwavejs2mqtt -- start pm2 start yarn --name ZwaveJsUi --cwd /opt/node/ZwaveJsUi -- start
pm2 save pm2 save
pm2 kill pm2 kill
EOF EOF
#Adding update scipts #Adding update scipts
mv /opt/Setup/Scripts/Update-Zigbee2Mqtt.sh /opt/Update-Zigbee2Mqtt.sh mv /opt/Setup/Scripts/Update-Zigbee2Mqtt.sh /opt/Update-Zigbee2Mqtt.sh
mv /opt/Setup/Scripts/Update-Zwave2mqtt.sh /opt/Update-Zwave2Mqtt.sh mv /opt/Setup/Scripts/Update-ZwaveJsUi.sh /opt/Update-ZwaveJsUi.sh
#Cleanup #Cleanup
rm -rf /home/node/.npm/_cacache rm -rf /home/node/.npm/_cacache

View File

@@ -1,4 +1,4 @@
#!/bin/sh #!/bin/sh
# Update script for updating apps with ProxmoxHelper/ProxMoxToolKit # Update script for updating apps with ProxmoxHelper/ProxMoxToolKit
ash /opt/Update-Zigbee2Mqtt.sh ash /opt/Update-Zigbee2Mqtt.sh
ash /opt/Update-Zwave2Mqtt.sh ash /opt/Update-ZwaveJsUi.sh

View File

@@ -2,10 +2,10 @@
#Run folowing commands as 'node' user #Run folowing commands as 'node' user
sudo -u node ash << EOF sudo -u node ash << EOF
/usr/local/bin/pm2 stop zwavejs2mqtt /usr/local/bin/pm2 stop ZwaveJsUi
cd /opt/node/zwavejs2mqtt cd /opt/node/ZwaveJsUi
git pull git pull
/usr/local/bin/yarn install /usr/local/bin/yarn install
/usr/local/bin/yarn run build /usr/local/bin/yarn run build
/usr/local/bin/pm2 start zwavejs2mqtt /usr/local/bin/pm2 start ZwaveJsUi
EOF EOF

View File

@@ -196,8 +196,8 @@ lxc.mount.entry: /dev/ttyACM-Zigbee dev/ttyACM-Zigbee none bind,optional,create=
lxc.mount.entry: /dev/ttyACM-Zwave dev/ttyACM-Zwave none bind,optional,create=file lxc.mount.entry: /dev/ttyACM-Zwave dev/ttyACM-Zwave none bind,optional,create=file
``` ```
* Zigbee2mqtt Available on http://`<ip>`:5002 * Zigbee2mqtt Available on http://`<ip>`:5002
* ZWave2mqtt Available on http://`<ip>`:8091 * Z-wave JS UI Available on http://`<ip>`:8091
* in the ZWave2mqtt web ui set the Zwave serial port to /dev/ttyACM-Zwave * in the Z-wave JS UI web ui set the Zwave serial port to /dev/ttyACM-Zwave
* If a `Cannot lock port` error shows, please reboot the CT, if that does not fix it try rebooting the Proxmox server * If a `Cannot lock port` error shows, please reboot the CT, if that does not fix it try rebooting the Proxmox server
## nodered ## nodered