Z-Wave/en: различия между версиями

Новая страница: «# Download the server Z-way for device Z-wave command <pre>wget http://razberry.z-wave.me/z-way-server/z-way-server-RaspberryPiXTools-v2.3.7-rc1.tgz</pre> # Unpac…»
(Новая страница: «=== Software installation on Wiren Board 6 (deprecated) ===»)
(Новая страница: «# Download the server Z-way for device Z-wave command <pre>wget http://razberry.z-wave.me/z-way-server/z-way-server-RaspberryPiXTools-v2.3.7-rc1.tgz</pre> # Unpac…»)
Строка 20: Строка 20:
=== Software installation on Wiren Board 6 (deprecated) ===
=== Software installation on Wiren Board 6 (deprecated) ===


# Скачиваем сервер Z-way для работы с устройствами Z-wave командой <pre>wget http://razberry.z-wave.me/z-way-server/z-way-server-RaspberryPiXTools-v2.3.7-rc1.tgz</pre>
# Download the server Z-way for device Z-wave command <pre>wget http://razberry.z-wave.me/z-way-server/z-way-server-RaspberryPiXTools-v2.3.7-rc1.tgz</pre>
# Распаковываем скачанный архив в папку /opt: <pre>tar -xvzf z-way-server-RaspberryPiXTools-v2.3.7-rc1.tgz --directory /opt/</pre>
# Unpack the downloaded archive to /opt: <pre>tar -xvzf z-way-server-RaspberryPiXTools-v2.3.7-rc1.tgz --directory /opt/</pre>
# Устанавливаем нужные для работы библиотеки:<pre>apt-get update</pre><pre>apt-get install libssl1.0.0 libarchive13 libavahi-compat-libdnssd1</pre>
# Install the necessary libraries:<pre>apt-get update</pre><pre>apt-get install libsl1.0.0 libarchive13 libavahi-compat-libdnssd1</pre>
# Трёх необходимых пакетов нет в репозитории для версии Debian, используемой в Wiren Board, - Debian 9 "Stretch". Поэтому скачиваем эти пакеты из репозиториев для предыдущих версий Debian, выбирая архитектуру armhf, и устанавливаем вручную:<pre>wget http://ftp.us.debian.org/debian/pool/main/libj/libjsoncpp/libjsoncpp0_0.6.0~rc2-3.1_armhf.deb; dpkg -i libjsoncpp0_0.6.0~rc2-3.1_armhf.deb</pre><pre>wget http://ftp.us.debian.org/debian/pool/main/n/nettle/libnettle4_2.7.1-5+deb8u2_armhf.deb; dpkg -i libnettle4_2.7.1-5+deb8u2_armhf.deb</pre><pre>wget http://archive.debian.org/debian-security/pool/updates/main/liba/libarchive/libarchive12_3.0.4-3+wheezy6+deb7u1_armhf.deb; dpkg -i libarchive12_3.0.4-3+wheezy6+deb7u1_armhf.deb</pre>
# Three required packages are not in the repository for the Debian version used in the Wiren Board - Debian 9 "Stretch". Therefore, download these packages from repositories for previous versions of Debian, choosing the armhf architecture, and install manually:<pre>wget http://ftp.us.debian.org/debian/pool/main/libj/libjsoncpp/libjsoncpp0_0.6.0~rc2-3.1_armhf.deb; dpkg -i libjsoncpp0_0.6.0~rc2-3.1_armhf.deb</pre><pre>wget http://ftp.us.debian.org/debian/pool/main/n/nettle/libnettle4_2.7.1-5+deb8u2_armhf.deb; dpkg -i libnettle4_2.7.1-5+deb8u2_armhf.deb</pre><pre>wget http://archive.debian.org/debian-security/pool/updates/main/liba/libarchive/libarchive12_3.0.4-3+wheezy6+deb7u1_armhf.deb; dpkg -i libarchive12_3.0.4-3+wheezy6+deb7u1_armhf.deb</pre>
# Устанавливаем пакеты для отображения в веб-интерфейсе Wiren Board (имеют в зависимостях z-way-server, но мы установим его потом вручную, поэтому скачиваем пакеты и принудительно их устанавливаем): <pre>apt-get download wb-mqtt-zway</pre><pre>dpkg -i --force-all wb-mqtt-zway_1.0.3+wb2_armhf.deb</pre>
# Install packages for display in the Wiren Board web interface (have z-way-server dependencies, but we will install it manually later, so download packages and force them to install): <pre>apt-get download wb-mqtt-zway</pre><pre>dpkg -i --force-all wb-mqtt-zway_1.0.3+wb2_armhf.deb</pre>
# Выполняем тестовый запуск сервера, указав ему путь до библиотек: <pre>cd /opt/z-way-server/</pre><pre>LD_LIBRARY_PATH=/opt/z-way-server/libs:/usr/lib/arm-linux-gnueabihf:$LD_LIBRARY_PATH /opt/z-way-server/z-way-server</pre>
# Perform a test run of the server, specifying the path to the libraries: <pre>cd /opt/z-way-server/</pre><pre>LD_LIBRARY_PATH=/opt/z-way-server/libs:/usr/lib/arm-linux-gnueabihf:$LD_LIBRARY_PATH /opt/z-way-server/z-way-server</pre>
# После установки wb-mqtt-zway в веб-интерфейсе Wiren Board в разделе Configs появляются настройки интеграции с Z-Way. При этом настройка Z-Wave устройств выполняется через отдельный собственный интерфейс Z-Way. Чтобы туда попасть, нужно зайти на IP-адрес контроллера, но в конце добавить порт 8083, например, <pre>192.168.0.103:8083</pre>
# After installing wb-mqtt-zway in the web interface Wiren Board in the section Configs appear configure the integration with Z-Way. Configuring Z-Wave devices through a separate private interface Z-Way. To get there, you need to go to the IP-address of the controller, but at the end add port 8083, for example, <pre>192.168.0.103:8083</pre>
# В интерфейсе Z-Way изменяем порт для работы со стиком Z-Wave с /dev/ttyAMA0 на (в версии без 3G модема) /dev/ttyACM0 или (в версии с 3G модемом) /dev/ttyACM7: ''кнопка меню справа вверху'' - ''Apps'' - ''Z-Wave Network Access'' - ''Serial port to Z-Wave dongle''.
# In the Z-Way interface, change the port to work with the Z-Wave stick from /dev/ttyAMA0 to (in the version without 3G modem) /dev/ttyACM0 or (in the version with 3G modem) /dev/ttyACM7: "menu button at the top right" - "Apps" - "Z-Wave Network Access" - "Serial port to Z-Wave dongle".
# Настроим автоматический запуск сервера Z-Way. Скачиваем https://github.com/contactless/z-way-server-debian/blob/master/debian/z-way-server.init и сохраняем как /etc/init.d/z-way-server: <pre>wget -O /etc/init.d/z-way-server https://raw.githubusercontent.com/contactless/z-way-server-debian/master/debian/z-way-server.init</pre>
# Set the Z-Way server to start automatically. Download https://github.com/contactless/z-way-server-debian/blob/master/debian/z-way-server.init and save as /etc/init.d/z-way-server: <pre>wget -O /etc/init.d/z-way-server https://raw.githubusercontent.com/contactless/z-way-server-debian/master/debian/z-way-server.init</pre>
# Выставляем права на исполнение: <pre>chmod +x /etc/init.d/z-way-server</pre>
# Set execution rights: <pre>chmod +x /etc/init.d/z-way-server</pre>
# Проверяем, что появился сервис z-way-server: <pre>systemctl daemon-reload</pre><pre>service z-way-server start</pre>
# Verify that the z-way-server service is available: <pre>systemctl daemon-reload</pre><pre>service z-way-server start</pre>
# Добавляем сервис в автозагрузку <pre>update-rc.d z-way-server defaults</pre>
# Add service to startup <pre>update-rc.d z-way-server defaults</pre>
# В файле /opt/z-way-server/config.xml укажите порт для отладки или удалите строку  <pre><debug-port></debug-port></pre>
# In the /opt/z-way-server/config file.xml specify a port to debug, or delete <pre><debug-port></debug-port></pre>


=== Установка ПО на Wiren Board 5 ===
=== Установка ПО на Wiren Board 5 ===
12 063

правки