Zigbee plugin, pont deCONZ (passelle universelle Zigbee)

Forum dédié au ZigBee : objets, interfaces ...
Plugins DeConz et ZigBee2MQTT
Pour les questions concernant le plugin ZigBeeForDomoticZ, merci d'utiliser le forum spécifique en dessous.
Thorgal
Messages : 913
Inscription : 16 août 2018, 20:02
Contact :

Re: Zigbee plugin, pont deCONZ (passelle universelle Zigbee)

Message par Thorgal »

Alors a mon avis Domoticz ne doit pas utiliser le meme dossier d'installation.
Tu as quoi comme resultat quand tu tapes
Python3 --V
Et dans les logs au demarrage de Domoticz (la version qu'il va utiliser s'affiche aussi)
2020-03-03 22:16:07.104 Status: PluginSystem: Started, Python version '3.7.3'.
Je viens de trouver ca

Code : Tout sélectionner

(1)install python2.7 and python3.5 from DSM packages
(2)ssh login & sudo -i
(3)run python and run python3, if both work go next.
(4)run pip -V should return pip 10.0.1, it is for python2.7
(5)run pip3 -V return "command not found", ..because the path is not right.
(6)try /volume1/@appstore/py3k/usr/local/bin/pip3 -V,
         if sucess. go next. now you can install module for python3,
         it's different path depends on your system, command for example:
         /volume1/@appstore/py3k/usr/local/bin/pip3 install numpy should be work!
(7)for convenient, shorter command is good for use,so go next step:
         sudo vi .profile, (or .bashrc for specific user login)
(8)add alias at the end:
         alias pip3='/volume1/@appstore/py3k/usr/local/bin/pip3'
(9)source .profile or sudo reboot
(10)test pip3 -V, should work for python3.x
coolplay54
Messages : 103
Inscription : 19 juil. 2016, 21:47

Re: Zigbee plugin, pont deCONZ (passelle universelle Zigbee)

Message par coolplay54 »

voilà la ligne au démarrage:
PluginSystem: Started, Python version '3.5.1'.
et plus loin:
2020-03-06 18:22:49.895 (deCONZ) ### Request config
2020-03-06 18:22:49.895 Error: (deCONZ) Your pyton version miss requests library
Répertoire deCONZ:
/volume1/@appstore/domoticz/var/plugins/Domoticz-deCONZ

Répertoire Python:
/volume1/@appstore/py3k/usr/local/bin

La réponse avec : Python3 --V
-ash: Python3: command not found
Domoticz sur Syno + Rflink
Thorgal
Messages : 913
Inscription : 16 août 2018, 20:02
Contact :

Re: Zigbee plugin, pont deCONZ (passelle universelle Zigbee)

Message par Thorgal »

Et ca ca marche ?

Code : Tout sélectionner

/volume1/@appstore/py3k/usr/local/bin/pip3 install requests
coolplay54
Messages : 103
Inscription : 19 juil. 2016, 21:47

Re: Zigbee plugin, pont deCONZ (passelle universelle Zigbee)

Message par coolplay54 »

commande no found!!

Pourtant le dossier contient bien les fichiers.

Image
Pièces jointes
Capture.PNG
Capture.PNG (25 Kio) Consulté 9769 fois
Domoticz sur Syno + Rflink
Thorgal
Messages : 913
Inscription : 16 août 2018, 20:02
Contact :

Re: Zigbee plugin, pont deCONZ (passelle universelle Zigbee)

Message par Thorgal »

Et tu as testé

Code : Tout sélectionner

/volume1/@appstore/py3k/usr/local/bin/pip3
/volume1/@appstore/py3k/usr/local/bin/pip3.5
/volume1/@appstore/py3k/usr/local/bin/python3
si la troisieme marche, re essaye de l'installer a partir du fichier

Code : Tout sélectionner

curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
python3 get-pip.py --user
Tu as bien les droit dessus pour l'executer ?

Sinon les forum de syno, installer une lib python3 c'est quand meme une operation banale.
coolplay54
Messages : 103
Inscription : 19 juil. 2016, 21:47

Re: Zigbee plugin, pont deCONZ (passelle universelle Zigbee)

Message par coolplay54 »

Tout d'abord, merci pour ta patience.

voici le resultat en essayant d'installer:
Using username "root".
Authenticating with public key "rsa-key-20200304" from agent
root@XXXXXX:~# curl "https://bootstrap.pypa.io/get-pip.py" -o "get-pip.py"
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 1764k 100 1764k 0 0 844k 0 0:00:02 0:00:02 --:--:-- 844k
root@XXXXXX:~# python3 get-pip.py --user
-ash: python3: command not found
root@XXXXXX:~#
Domoticz sur Syno + Rflink
Thorgal
Messages : 913
Inscription : 16 août 2018, 20:02
Contact :

Re: Zigbee plugin, pont deCONZ (passelle universelle Zigbee)

Message par Thorgal »

Ca c'etait sous condition que cette commande marche

Code : Tout sélectionner

/volume1/@appstore/py3k/usr/local/bin/python3
Et tu m'as pas repondu pour les 2 autres ?
coolplay54
Messages : 103
Inscription : 19 juil. 2016, 21:47

Re: Zigbee plugin, pont deCONZ (passelle universelle Zigbee)

Message par coolplay54 »

nada pour le reste.

Pourtant j'ai bien installé Domoticz avec Python de Jadhal, installé les packages Python3 et Python Modules!
Là je sèche!!!
J'ai beau fouiné un peu partout (Forum pour Syno, Nas, Domoticz,...) tout ce que j'essaye ne fonctionne pas.

:cry: :cry:
Domoticz sur Syno + Rflink
Thorgal
Messages : 913
Inscription : 16 août 2018, 20:02
Contact :

Re: Zigbee plugin, pont deCONZ (passelle universelle Zigbee)

Message par Thorgal »

nada pour le reste mais celle la c'est bon ?
Si oui

Code : Tout sélectionner

/volume1/@appstore/py3k/usr/local/bin/python3 get-pip.py --user
Si non, y a un soucis de droit c'est pas possible, le fichier existe, pourquoi il ne se lancerait pas ?
coolplay54
Messages : 103
Inscription : 19 juil. 2016, 21:47

Re: Zigbee plugin, pont deCONZ (passelle universelle Zigbee)

Message par coolplay54 »

Salut,

Voilà ce que j'obtiens

Image
Pièces jointes
Capture.PNG
Capture.PNG (33.07 Kio) Consulté 9700 fois
Domoticz sur Syno + Rflink
Répondre