[Résolu] plugins ZigBeeForDomoticZ avec docker-compose sur raspberry pi 32bit armv7
-
jackslayter
- Messages : 1040
- Inscription : 30 sept. 2014, 14:40
- Localisation : Isère (38)
[Résolu] plugins ZigBeeForDomoticZ avec docker-compose sur raspberry pi 32bit armv7
bonjour à tous,
je viens de me mettre sur le zigbee avec une installation standard.
je suis en train de migrer vers docker-compose et je me demande si quelqu'un c'est déjà penché dessus.
Si vous avez des infos je suis preneur, je pourrais faire un tuto derrière.
Bonne journée
édit:
problème avec architecture 32bit -> viewtopic.php?p=117355#p117355
-
je viens de me mettre sur le zigbee avec une installation standard.
je suis en train de migrer vers docker-compose et je me demande si quelqu'un c'est déjà penché dessus.
Si vous avez des infos je suis preneur, je pourrais faire un tuto derrière.
Bonne journée
édit:
problème avec architecture 32bit -> viewtopic.php?p=117355#p117355
-
Raspberry Pi + RFLink + Domoticz Beta
Oregon - 3x Thgr122Nx / Chacon - micromodule 200w, télécommande 3b et 16b, 2x module 1000w, détecteur de fumée, contact de porte, 2x prise 3500w / OWL - CM180 / TRC02 v2 RGB 3M / Cheap - PIR, contact de porte
Oregon - 3x Thgr122Nx / Chacon - micromodule 200w, télécommande 3b et 16b, 2x module 1000w, détecteur de fumée, contact de porte, 2x prise 3500w / OWL - CM180 / TRC02 v2 RGB 3M / Cheap - PIR, contact de porte
Re: plugins ZigBeeForDomoticZ avec docker-compose
Bonjour,
Ça fonctionne avec docker sur nas Synology.
Je dirais donc tu prends le docker compose de domoticz et tu prends le wiki à partir de 4.c.1 pour aller chercher le script ou en manuel en 4.c.2.
https://zigbeefordomoticz.github.io/wik ... ocker.html
L'idée c'est d'avoir un répertoire externe pour la DB, plugins et scripts. Normalement le conteneur est prévu pour lancer le script avant domoticz.
Ça fonctionne avec docker sur nas Synology.
Je dirais donc tu prends le docker compose de domoticz et tu prends le wiki à partir de 4.c.1 pour aller chercher le script ou en manuel en 4.c.2.
https://zigbeefordomoticz.github.io/wik ... ocker.html
L'idée c'est d'avoir un répertoire externe pour la DB, plugins et scripts. Normalement le conteneur est prévu pour lancer le script avant domoticz.
-
jackslayter
- Messages : 1040
- Inscription : 30 sept. 2014, 14:40
- Localisation : Isère (38)
Re: Plugin sous Docker
c'est pas /json.htm?type=command¶m=getdevices&rid=IDX_ton_objet qu'il faut mettre ?
@secator c'est quoi ton fichier docker-compose ?
merci
j'ai collé le https://github.com/zigbeefordomoticz/Do ... omstart.sh dans le userdata
il fait les màj et installation mais j'ai une erreur
et le log du docker
@secator c'est quoi ton fichier docker-compose ?
merci
j'ai collé le https://github.com/zigbeefordomoticz/Do ... omstart.sh dans le userdata
il fait les màj et installation mais j'ai une erreur
Code : Tout sélectionner
Error: dgvh: (Zigate) failed to load 'plugin.py', Python Path used was '/opt/domoticz/userdata/plugins/Domoticz-Zigbee/:/usr/lib/python39.zip:/usr/lib/python3.9:/usr/lib/python3.9/lib-dynload:/usr/local/lib/python3.9/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.9/dist-packages'.
Error: dgvh: Traceback (most recent call last):
Error: dgvh: File "/opt/domoticz/userdata/plugins/Domoticz-Zigbee/plugin.py", line 113, in <module>
Error: dgvh: from Classes.WebServer.WebServer import WebServer
Error: dgvh: File "/opt/domoticz/userdata/plugins/Domoticz-Zigbee/Classes/WebServer/WebServer.py", line 55, in <module>
Error: dgvh: class WebServer(object):
Error: dgvh: File "/opt/domoticz/userdata/plugins/Domoticz-Zigbee/Classes/WebServer/WebServer.py", line 86, in WebServer
Error: dgvh: from Classes.WebServer.rest_PluginUpgrade import (
Error: dgvh: File "/opt/domoticz/userdata/plugins/Domoticz-Zigbee/Classes/WebServer/rest_PluginUpgrade.py", line 6, in <module>
Error: dgvh: import z4d_certified_devices
Error: dgvh: ModuleNotFoundError: No module named 'z4d_certified_devices' et le log du docker
Code : Tout sélectionner
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Get:1 http://deb.debian.org/debian bullseye InRelease [116 kB]
Get:2 http://deb.debian.org/debian-security bullseye-security InRelease [48.4 kB]
Get:3 http://deb.debian.org/debian bullseye-updates InRelease [44.1 kB]
Get:4 http://deb.debian.org/debian bullseye/main armhf Packages [7838 kB]
Get:5 http://deb.debian.org/debian-security bullseye-security/main armhf Packages [256 kB]
Get:6 http://deb.debian.org/debian bullseye-updates/main armhf Packages [15.1 kB]
Fetched 8317 kB in 16s (533 kB/s)
Reading package lists...
Building dependency tree...
Reading state information...
25 packages can be upgraded. Run 'apt list --upgradable' to see them.
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
javascript-common libjs-jquery libjs-sphinxdoc libjs-underscore
libpython3-dev python3.9-dev zlib1g-dev
Suggested packages:
apache2 | lighttpd | httpd
The following NEW packages will be installed:
javascript-common libjs-jquery libjs-sphinxdoc libjs-underscore
libpython3-dev python3-dev python3.9-dev zlib1g-dev
0 upgraded, 8 newly installed, 0 to remove and 25 not upgraded.
Need to get 1295 kB of archives.
After this operation, 2487 kB of additional disk space will be used.
Get:1 http://deb.debian.org/debian bullseye/main armhf javascript-common all 11+nmu1 [6260 B]
Get:2 http://deb.debian.org/debian bullseye/main armhf libjs-jquery all 3.5.1+dfsg+~3.5.5-7 [315 kB]
Get:3 http://deb.debian.org/debian bullseye/main armhf libjs-underscore all 1.9.1~dfsg-3 [100 kB]
Get:4 http://deb.debian.org/debian bullseye/main armhf libjs-sphinxdoc all 3.4.3-2 [127 kB]
Get:5 http://deb.debian.org/debian bullseye/main armhf libpython3-dev armhf 3.9.2-3 [21.7 kB]
Get:6 http://deb.debian.org/debian bullseye/main armhf zlib1g-dev armhf 1:1.2.11.dfsg-2+deb11u2 [185 kB]
Get:7 http://deb.debian.org/debian bullseye/main armhf python3.9-dev armhf 3.9.2-1 [515 kB]
Get:8 http://deb.debian.org/debian bullseye/main armhf python3-dev armhf 3.9.2-3 [24.8 kB]
debconf: delaying package configuration, since apt-utils is not installed
Fetched 1295 kB in 1s (1098 kB/s)
Selecting previously unselected package javascript-common.
(Reading database ... 13316 files and directories currently installed.)
Preparing to unpack .../0-javascript-common_11+nmu1_all.deb ...
Unpacking javascript-common (11+nmu1) ...
Selecting previously unselected package libjs-jquery.
Preparing to unpack .../1-libjs-jquery_3.5.1+dfsg+~3.5.5-7_all.deb ...
Unpacking libjs-jquery (3.5.1+dfsg+~3.5.5-7) ...
Selecting previously unselected package libjs-underscore.
Preparing to unpack .../2-libjs-underscore_1.9.1~dfsg-3_all.deb ...
Unpacking libjs-underscore (1.9.1~dfsg-3) ...
Selecting previously unselected package libjs-sphinxdoc.
Preparing to unpack .../3-libjs-sphinxdoc_3.4.3-2_all.deb ...
Unpacking libjs-sphinxdoc (3.4.3-2) ...
Selecting previously unselected package libpython3-dev:armhf.
Preparing to unpack .../4-libpython3-dev_3.9.2-3_armhf.deb ...
Unpacking libpython3-dev:armhf (3.9.2-3) ...
Selecting previously unselected package zlib1g-dev:armhf.
Preparing to unpack .../5-zlib1g-dev_1%3a1.2.11.dfsg-2+deb11u2_armhf.deb ...
Unpacking zlib1g-dev:armhf (1:1.2.11.dfsg-2+deb11u2) ...
Selecting previously unselected package python3.9-dev.
Preparing to unpack .../6-python3.9-dev_3.9.2-1_armhf.deb ...
Unpacking python3.9-dev (3.9.2-1) ...
Selecting previously unselected package python3-dev.
Preparing to unpack .../7-python3-dev_3.9.2-3_armhf.deb ...
Unpacking python3-dev (3.9.2-3) ...
Setting up javascript-common (11+nmu1) ...
Setting up libpython3-dev:armhf (3.9.2-3) ...
Setting up zlib1g-dev:armhf (1:1.2.11.dfsg-2+deb11u2) ...
Setting up python3.9-dev (3.9.2-1) ...
Setting up libjs-jquery (3.5.1+dfsg+~3.5.5-7) ...
Setting up libjs-underscore (1.9.1~dfsg-3) ...
Setting up libjs-sphinxdoc (3.4.3-2) ...
Setting up python3-dev (3.9.2-3) ...
Requirement already satisfied: pip in /usr/local/lib/python3.9/dist-packages (23.3.1)
Requirement already satisfied: wheel in /usr/lib/python3/dist-packages (0.34.2)
Collecting zigpy==0.59.0 (from -r /opt/domoticz/userdata/plugins/Domoticz-Zigbee/requirements.txt (line 1))
Using cached zigpy-0.59.0-py3-none-any.whl.metadata (9.0 kB)
Collecting zigpy_znp==0.11.6 (from -r /opt/domoticz/userdata/plugins/Domoticz-Zigbee/requirements.txt (line 2))
Using cached zigpy_znp-0.11.6-py3-none-any.whl.metadata (10 kB)
Collecting zigpy_deconz==0.21.1 (from -r /opt/domoticz/userdata/plugins/Domoticz-Zigbee/requirements.txt (line 3))
Using cached zigpy_deconz-0.21.1-py3-none-any.whl.metadata (3.4 kB)
Collecting bellows==0.36.8 (from -r /opt/domoticz/userdata/plugins/Domoticz-Zigbee/requirements.txt (line 4))
Using cached bellows-0.36.8-py3-none-any.whl.metadata (14 kB)
Collecting zigpy-cli==1.0.4 (from -r /opt/domoticz/userdata/plugins/Domoticz-Zigbee/requirements.txt (line 5))
Using cached zigpy_cli-1.0.4-py3-none-any.whl (27 kB)
Collecting dnspython==2.3.0 (from -r /opt/domoticz/userdata/plugins/Domoticz-Zigbee/requirements.txt (line 6))
Using cached dnspython-2.3.0-py3-none-any.whl (283 kB)
Collecting pyserial>=3.5 (from -r /opt/domoticz/userdata/plugins/Domoticz-Zigbee/requirements.txt (line 7))
Using cached pyserial-3.5-py2.py3-none-any.whl (90 kB)
Collecting z4d-certified-devices (from -r /opt/domoticz/userdata/plugins/Domoticz-Zigbee/requirements.txt (line 8))
Using cached z4d_certified_devices-2.157-py3-none-any.whl.metadata (36 kB)
Collecting charset-normalizer==2.0.11 (from -r /opt/domoticz/userdata/plugins/Domoticz-Zigbee/requirements.txt (line 9))
Using cached charset_normalizer-2.0.11-py3-none-any.whl (39 kB)
Collecting distro (from -r /opt/domoticz/userdata/plugins/Domoticz-Zigbee/requirements.txt (line 10))
Using cached distro-1.8.0-py3-none-any.whl (20 kB)
Collecting attrs (from zigpy==0.59.0->-r /opt/domoticz/userdata/plugins/Domoticz-Zigbee/requirements.txt (line 1))
Using cached attrs-23.1.0-py3-none-any.whl (61 kB)
Collecting aiohttp (from zigpy==0.59.0->-r /opt/domoticz/userdata/plugins/Domoticz-Zigbee/requirements.txt (line 1))
Using cached aiohttp-3.9.1.tar.gz (7.5 MB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Collecting aiosqlite>=0.16.0 (from zigpy==0.59.0->-r /opt/domoticz/userdata/plugins/Domoticz-Zigbee/requirements.txt (line 1))
Using cached aiosqlite-0.19.0-py3-none-any.whl (15 kB)
Collecting async-timeout (from zigpy==0.59.0->-r /opt/domoticz/userdata/plugins/Domoticz-Zigbee/requirements.txt (line 1))
Using cached async_timeout-4.0.3-py3-none-any.whl.metadata (4.2 kB)
Collecting crccheck (from zigpy==0.59.0->-r /opt/domoticz/userdata/plugins/Domoticz-Zigbee/requirements.txt (line 1))
Using cached crccheck-1.3.0-py3-none-any.whl (21 kB)
Collecting cryptography (from zigpy==0.59.0->-r /opt/domoticz/userdata/plugins/Domoticz-Zigbee/requirements.txt (line 1))
Using cached cryptography-41.0.7.tar.gz (630 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'error'
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> [87 lines of output]
Collecting setuptools>=61.0.0
Using cached setuptools-69.0.2-py3-none-any.whl.metadata (6.3 kB)
Collecting wheel
Using cached wheel-0.42.0-py3-none-any.whl.metadata (2.2 kB)
Collecting cffi>=1.12
Using cached cffi-1.16.0.tar.gz (512 kB)
Installing build dependencies: started
Installing build dependencies: finished with status 'done'
Getting requirements to build wheel: started
Getting requirements to build wheel: finished with status 'done'
Installing backend dependencies: started
Installing backend dependencies: finished with status 'done'
Preparing metadata (pyproject.toml): started
Preparing metadata (pyproject.toml): finished with status 'done'
Collecting setuptools-rust>=0.11.4
Using cached setuptools_rust-1.8.1-py3-none-any.whl.metadata (9.4 kB)
Collecting pycparser (from cffi>=1.12)
Using cached pycparser-2.21-py2.py3-none-any.whl (118 kB)
Collecting semantic-version<3,>=2.8.2 (from setuptools-rust>=0.11.4)
Using cached semantic_version-2.10.0-py2.py3-none-any.whl (15 kB)
Collecting tomli>=1.2.1 (from setuptools-rust>=0.11.4)
Using cached tomli-2.0.1-py3-none-any.whl (12 kB)
Using cached setuptools-69.0.2-py3-none-any.whl (819 kB)
Using cached wheel-0.42.0-py3-none-any.whl (65 kB)
Using cached setuptools_rust-1.8.1-py3-none-any.whl (26 kB)
Building wheels for collected packages: cffi
Building wheel for cffi (pyproject.toml): started
Building wheel for cffi (pyproject.toml): finished with status 'error'
error: subprocess-exited-with-error
× Building wheel for cffi (pyproject.toml) did not run successfully.
│ exit code: 1
╰─> [48 lines of output]
No working compiler found, or bogus compiler options passed to
the compiler from Python's standard "distutils" module. See
the error messages above. Likely, the problem is not related
to CFFI but generic to the setup.py of any Python package that
tries to compile C code. (Hints: on OS/X 10.8, for errors about
-mno-fused-madd see http://stackoverflow.com/questions/22313407/
Otherwise, see https://wiki.python.org/moin/CompLangPython or
the IRC channel #python on irc.libera.chat.)
Trying to continue anyway. If you are trying to install CFFI from
a build done in a different context, you can ignore this warning.
running bdist_wheel
running build
running build_py
creating build
creating build/lib.linux-armv7l-cpython-39
creating build/lib.linux-armv7l-cpython-39/cffi
copying src/cffi/_shimmed_dist_utils.py -> build/lib.linux-armv7l-cpython-39/cffi
copying src/cffi/cffi_opcode.py -> build/lib.linux-armv7l-cpython-39/cffi
copying src/cffi/recompiler.py -> build/lib.linux-armv7l-cpython-39/cffi
copying src/cffi/error.py -> build/lib.linux-armv7l-cpython-39/cffi
copying src/cffi/backend_ctypes.py -> build/lib.linux-armv7l-cpython-39/cffi
copying src/cffi/pkgconfig.py -> build/lib.linux-armv7l-cpython-39/cffi
copying src/cffi/cparser.py -> build/lib.linux-armv7l-cpython-39/cffi
copying src/cffi/model.py -> build/lib.linux-armv7l-cpython-39/cffi
copying src/cffi/api.py -> build/lib.linux-armv7l-cpython-39/cffi
copying src/cffi/_imp_emulation.py -> build/lib.linux-armv7l-cpython-39/cffi
copying src/cffi/vengine_cpy.py -> build/lib.linux-armv7l-cpython-39/cffi
copying src/cffi/__init__.py -> build/lib.linux-armv7l-cpython-39/cffi
copying src/cffi/ffiplatform.py -> build/lib.linux-armv7l-cpython-39/cffi
copying src/cffi/setuptools_ext.py -> build/lib.linux-armv7l-cpython-39/cffi
copying src/cffi/commontypes.py -> build/lib.linux-armv7l-cpython-39/cffi
copying src/cffi/vengine_gen.py -> build/lib.linux-armv7l-cpython-39/cffi
copying src/cffi/lock.py -> build/lib.linux-armv7l-cpython-39/cffi
copying src/cffi/verifier.py -> build/lib.linux-armv7l-cpython-39/cffi
copying src/cffi/_cffi_include.h -> build/lib.linux-armv7l-cpython-39/cffi
copying src/cffi/parse_c_type.h -> build/lib.linux-armv7l-cpython-39/cffi
copying src/cffi/_embedding.h -> build/lib.linux-armv7l-cpython-39/cffi
copying src/cffi/_cffi_errors.h -> build/lib.linux-armv7l-cpython-39/cffi
running build_ext
building '_cffi_backend' extension
creating build/temp.linux-armv7l-cpython-39
creating build/temp.linux-armv7l-cpython-39/src
creating build/temp.linux-armv7l-cpython-39/src/c
arm-linux-gnueabihf-gcc -pthread -Wno-unused-result -Wsign-compare -DNDEBUG -g -fwrapv -O2 -Wall -g -ffile-prefix-map=/build/python3.9-jS0VHk/python3.9-3.9.2=. -fstack-protector-strong -Wformat -Werror=format-security -g -fwrapv -O2 -fPIC -DFFI_BUILDING=1 -I/usr/include/ffi -I/usr/include/libffi -I/usr/include/python3.9 -c src/c/_cffi_backend.c -o build/temp.linux-armv7l-cpython-39/src/c/_cffi_backend.o
error: command 'arm-linux-gnueabihf-gcc' failed: No such file or directory
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
ERROR: Failed building wheel for cffi
Failed to build cffi
ERROR: Could not build wheels for cffi, which is required to install pyproject.toml-based projects
[end of output]
note: This error originates from a subprocess, and is likely not a problem with pip.
error: subprocess-exited-with-error
× pip subprocess to install build dependencies did not run successfully.
│ exit code: 1
╰─> See above for output.
note: This error originates from a subprocess, and is likely not a problem with pip.
2023-11-29 10:12:18.452 Status: Domoticz V2023.2 (c)2012-2023 GizMoCuz
2023-11-29 10:12:18.453 Status: Build Hash: 19efd039c, Date: 2023-07-21 17:23:44
2023-11-29 10:12:18.453 Status: Startup Path: /opt/domoticz/
2023-11-29 10:12:18.507 Sunrise: 07:54:00 SunSet: 16:58:00
2023-11-29 10:12:18.507 Day length: 09:04:00 Sun at south: 12:26:00
2023-11-29 10:12:18.507 Civil twilight start: 07:21:00 Civil twilight end: 17:31:00
2023-11-29 10:12:18.507 Nautical twilight start: 06:44:00 Nautical twilight end: 18:07:00
2023-11-29 10:12:18.507 Astronomical twilight start: 06:09:00 Astronomical twilight end: 18:43:00
2023-11-29 10:12:18.649 Status: PluginSystem: Started, Python version '3.9.2', 1 plugin definitions loaded.
2023-11-29 10:12:18.653 Status: : Start HW witf ID: 23 Name: I2C_BMP085/180 Address: 0 Port: Invert:0
2023-11-29 10:12:18.671 Active notification Subsystems: email, pushbullet (2/13)
2023-11-29 10:12:18.680 Status: WebServer(HTTP) started on address: 0.0.0.0 with port 8080
2023-11-29 10:12:18.691 Status: Camera: settings (re)loaded
2023-11-29 10:12:18.695 Starting shared server on: 0.0.0.0:6144
2023-11-29 10:12:18.696 Status: TCPServer: shared server started...
2023-11-29 10:12:18.698 Status: RxQueue: queue worker started...
2023-11-29 10:12:20.699 Status: WOL: Started
2023-11-29 10:12:20.713 Status: Motherboard: System: Raspberry Pi
sh: 1: vcgencmd: not found
2023-11-29 10:12:20.722 Status: Motherboard: It seems vcgencmd is not installed. If you would like use the hardware monitor, consider installing this!
2023-11-29 10:12:20.722 Status: Motherboard: System: ODroid
2023-11-29 10:12:20.723 Status: Motherboard: Hardware Monitor: Started (OStype Raspberry Pi Linux)
2023-11-29 10:12:20.726 Status: dgvh: Entering work loop.
2023-11-29 10:12:20.726 dgvh: Worker thread started.
2023-11-29 10:12:20.726 Status: dgvh: Started.
2023-11-29 10:12:20.727 Status: NotificationSystem: thread started...
2023-11-29 10:12:20.728 Status: EventSystem: reset all events...
2023-11-29 10:12:20.734 Status: dzVents: Write file: /opt/domoticz/userdata/scripts/dzVents/generated_scripts/vigilance4.lua
2023-11-29 10:12:20.735 Status: EventSystem: reset all device statuses...
2023-11-29 10:12:21.010 Status: PluginSystem: 1 plugins started.
2023-11-29 10:12:21.503 Status: Python EventSystem: Initializing event module.
2023-11-29 10:12:21.505 Status: EventSystem: Started
2023-11-29 10:12:21.506 Status: EventSystem: Queue thread started...
2023-11-29 10:12:22.749 Motherboard: Temp (CPU Temp)
2023-11-29 10:12:22.783 Error: dgvh: (Zigate) failed to load 'plugin.py', Python Path used was '/opt/domoticz/userdata/plugins/Domoticz-Zigbee/:/usr/lib/python39.zip:/usr/lib/python3.9:/usr/lib/python3.9/lib-dynload:/usr/local/lib/python3.9/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.9/dist-packages'.
2023-11-29 10:12:22.795 Error: dgvh: Traceback (most recent call last):
2023-11-29 10:12:22.795 Error: dgvh: File "/opt/domoticz/userdata/plugins/Domoticz-Zigbee/plugin.py", line 113, in <module>
2023-11-29 10:12:22.795 Error: dgvh: from Classes.WebServer.WebServer import WebServer
2023-11-29 10:12:22.795 Error: dgvh: File "/opt/domoticz/userdata/plugins/Domoticz-Zigbee/Classes/WebServer/WebServer.py", line 55, in <module>
2023-11-29 10:12:22.795 Error: dgvh: class WebServer(object):
2023-11-29 10:12:22.796 Error: dgvh: File "/opt/domoticz/userdata/plugins/Domoticz-Zigbee/Classes/WebServer/WebServer.py", line 86, in WebServer
2023-11-29 10:12:22.796 Error: dgvh: from Classes.WebServer.rest_PluginUpgrade import (
2023-11-29 10:12:22.796 Error: dgvh: File "/opt/domoticz/userdata/plugins/Domoticz-Zigbee/Classes/WebServer/rest_PluginUpgrade.py", line 6, in <module>
2023-11-29 10:12:22.796 Error: dgvh: import z4d_certified_devices
2023-11-29 10:12:22.797 Error: dgvh: ModuleNotFoundError: No module named 'z4d_certified_devices'
2023-11-29 10:12:36.737 Status: [web:8080] Incoming connection from: 172.19.0.3
2023-11-29 10:12:42.746 Motherboard: General/Percentage (Memory Usage)
2023-11-29 10:12:42.760 Motherboard: General/Custom Sensor (Process Usage)Raspberry Pi + RFLink + Domoticz Beta
Oregon - 3x Thgr122Nx / Chacon - micromodule 200w, télécommande 3b et 16b, 2x module 1000w, détecteur de fumée, contact de porte, 2x prise 3500w / OWL - CM180 / TRC02 v2 RGB 3M / Cheap - PIR, contact de porte
Oregon - 3x Thgr122Nx / Chacon - micromodule 200w, télécommande 3b et 16b, 2x module 1000w, détecteur de fumée, contact de porte, 2x prise 3500w / OWL - CM180 / TRC02 v2 RGB 3M / Cheap - PIR, contact de porte
Modération
Je viens de déplacer ton message dans ton sujet initial afin que toutes les infos y soient regroupées..
Merci pour ta remarque sur le Json. C'est un ancien favori que j'ai copié et que je n'avais pas utilisé depuis les derniers changements. J'ai corrigé mon post initial. D'ailleurs, je n'ai pas eu d'erreur en l'utilisant...
Merci pour ta remarque sur le Json. C'est un ancien favori que j'ai copié et que je n'avais pas utilisé depuis les derniers changements. J'ai corrigé mon post initial. D'ailleurs, je n'ai pas eu d'erreur en l'utilisant...
Comment bien utiliser le forum : Poser une question, Mettre un script, un fichier, une image ou des logs
Mes petits guides : Débuter en programmation, Le débogage, Le choix de matériel, Les sauvegardes
Ma présentation - Mes Tutos
Mes petits guides : Débuter en programmation, Le débogage, Le choix de matériel, Les sauvegardes
Ma présentation - Mes Tutos
Re: plugins ZigBeeForDomoticZ avec docker-compose
voilà mon stack dans portainer.io, l'équivalent de docker-compose.yml
Code : Tout sélectionner
services:
domoticz:
image: domoticz/domoticz:2023-beta.15664
container_name: domoticz1
restart: unless-stopped
# Pass devices to container
devices:
- /dev/serial/by-id/usb-ITead_Sonoff_Zigbee_3.0_USB_Dongle_Plus_906fd681b945ed119a44ca8f0a86e0b4-if00-port0:/dev/ttyUSB0
ports:
- xxxx:xxxx
- yyyy:yyyy
- 9440:9440
volumes:
- /opt/domoticz/config:/opt/domoticz/userdata
environment:
- TZ=Europe/Amsterdam
- LOG_PATH=/opt/domoticz/userdata/domoticz.log
- WWW_PORT=xxxx
- SSL_PORT=yyyy
-
jackslayter
- Messages : 1040
- Inscription : 30 sept. 2014, 14:40
- Localisation : Isère (38)
Re: plugins ZigBeeForDomoticZ avec docker-compose
bon j'ai ressayé avec ce docker-compose et avec le https://github.com/zigbeefordomoticz/Do ... omstart.sh dans le user data et j'ai toujours l'erreur
mon fichier docker-compose
Code : Tout sélectionner
(Zigate) failed to load 'plugin.py', Python Path used was '/opt/domoticz/userdata/plugins/Domoticz-Zigbee/:/usr/lib/python39.zip:/usr/lib/python3.9:/usr/lib/python3.9/lib-dynload:/usr/local/lib/python3.9/dist-packages:/usr/lib/python3/dist-packages:/usr/lib/python3.9/dist-packages'.
Traceback (most recent call last):
File "/opt/domoticz/userdata/plugins/Domoticz-Zigbee/plugin.py", line 113, in <module>
from Classes.WebServer.WebServer import WebServer
File "/opt/domoticz/userdata/plugins/Domoticz-Zigbee/Classes/WebServer/WebServer.py", line 55, in <module>
class WebServer(object):
File "/opt/domoticz/userdata/plugins/Domoticz-Zigbee/Classes/WebServer/WebServer.py", line 86, in WebServer
from Classes.WebServer.rest_PluginUpgrade import (
File "/opt/domoticz/userdata/plugins/Domoticz-Zigbee/Classes/WebServer/rest_PluginUpgrade.py", line 6, in <module>
import z4d_certified_devices
ModuleNotFoundError: No module named 'z4d_certified_devices'Code : Tout sélectionner
services:
domoticz:
image: domoticz/domoticz:beta
container_name: domoticz
restart: on-failure
devices:
- "/dev/serial/by-id/usb-Silicon_Labs_Sonoff_Zigbee_3.0_USB_Dongle_Plus_0001-if00-port0:/dev/ttyUSB0"
ports:
- "8080:8080"
- "443:443"
- "9440:9440"
volumes:
- /home/pi/docker/userdata:/opt/domoticz/userdata
environment:
- TZ=Europe/Paris
- PUID=1000
- PGID=1000
- LOG_PATH=/opt/domoticz/userdata/domoticz.log
Raspberry Pi + RFLink + Domoticz Beta
Oregon - 3x Thgr122Nx / Chacon - micromodule 200w, télécommande 3b et 16b, 2x module 1000w, détecteur de fumée, contact de porte, 2x prise 3500w / OWL - CM180 / TRC02 v2 RGB 3M / Cheap - PIR, contact de porte
Oregon - 3x Thgr122Nx / Chacon - micromodule 200w, télécommande 3b et 16b, 2x module 1000w, détecteur de fumée, contact de porte, 2x prise 3500w / OWL - CM180 / TRC02 v2 RGB 3M / Cheap - PIR, contact de porte
Re: plugins ZigBeeForDomoticZ avec docker-compose
Je vais sans doute me faire hurler dessus mais moi, je tenterai un sudo chmod 777 -R /home pour voir si c'est un problème de droits, puis relancer.
-
jackslayter
- Messages : 1040
- Inscription : 30 sept. 2014, 14:40
- Localisation : Isère (38)
Re: plugins ZigBeeForDomoticZ avec docker-compose
bonne idée, par contre le 777 sur le /home moins 
édit : même erreur après changements de droits
édit : même erreur après changements de droits
Raspberry Pi + RFLink + Domoticz Beta
Oregon - 3x Thgr122Nx / Chacon - micromodule 200w, télécommande 3b et 16b, 2x module 1000w, détecteur de fumée, contact de porte, 2x prise 3500w / OWL - CM180 / TRC02 v2 RGB 3M / Cheap - PIR, contact de porte
Oregon - 3x Thgr122Nx / Chacon - micromodule 200w, télécommande 3b et 16b, 2x module 1000w, détecteur de fumée, contact de porte, 2x prise 3500w / OWL - CM180 / TRC02 v2 RGB 3M / Cheap - PIR, contact de porte
Re: plugins ZigBeeForDomoticZ avec docker-compose
tu as essayé d'installer le plugin à la main en executant les lignes du customstart.sh ?
si tu y arrives, ensuite tu ne laisses plus que la ligne "pip3 install -r /opt/domoticz/userdata/plugins/Domoticz-Zigbee/requirements.txt --ignore-requires-python --upgrade" dans le customstart.sh
Code : Tout sélectionner
apt update
apt install -y python3-dev
python3 -m pip install --upgrade pip
pip3 install wheel
cd /opt/domoticz/userdata/plugins
git clone https://github.com/zigbeefordomoticz/Domoticz-Zigbee.git
cd Domoticz-Zigbee
git config --add submodule.recurse true
git submodule update --init --recursive
pip3 install --ignore-requires-python -r /opt/domoticz/userdata/plugins/Domoticz-Zigbee/requirements.txt --upgrade Re: plugins ZigBeeForDomoticZ avec docker-compose
Vu les logs, c'est l'installation de cryptography-41.0.7 qui pose problème, c'est classique sur rpi, l'installation peut-être compliqué depuis qu'ils sont passé au compilateur rust.
Sur mon NAS, je viens de vérifier ça passe tout seul mais ce n'est pas le même noyau.
Une solution peut-être d'installer la version 35.0.0 avant :
Soit en manuel, soit en ajoutant la ligne dans le fichier avant le dernier pip3 install.
Sur mon NAS, je viens de vérifier ça passe tout seul mais ce n'est pas le même noyau.
Une solution peut-être d'installer la version 35.0.0 avant :
Code : Tout sélectionner
sudo python3 -m pip install cryptography==35.0.0