Re: Plugin jMQTT
Publié : 25 juil. 2019, 10:31
Il te faut cocher "parsejson" sur ton ID 100 et le laisser cocher, cela va te créer des commandes info pour la température, voltage ,.... Tu pourras créer ton virtuel et le lier à la bonne commande info.
Code : Tout sélectionner
node --version
npm --version
Si tu as jeedom sur la machine tu n'as rien a installer de plus que zigbee2mqttriwelen a écrit :Node version v 10.16.0
Npm 6.9.0
J’ai fait le audit fix mais sans succès.
Je vais sans doute essayer sur une vm pour voir si ca vient du pi (j’y crois pas beaucoup mais bon...)
Envoyé de mon iPhone en utilisant Tapatalk
Code : Tout sélectionner
********************************************************
* Install dependancies *
********************************************************
> Progress file: /tmp/jeedom/jMQTT/progress_dep.txt
> Install Mosquitto: 1
*
* Update package source repository
*
Reading package lists...
Building dependency tree...
Reading state information...
lsb-release is already the newest version (10.2019051400+rpi1).
php-pear is already the newest version (1:1.10.6+submodules+notgz-1.1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
*
* Synchronize the package index
*
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
Reading package lists...
*
* Install Mosquitto
*
Reading package lists...
Building dependency tree...
Reading state information...
libmosquitto-dev is already the newest version (1.5.7-1).
mosquitto is already the newest version (1.5.7-1).
mosquitto-clients is already the newest version (1.5.7-1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
*
* Install php mosquitto wrapper
*
> Version 7 of PHP detected
> Install php7.0-dev
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package php7.0-dev
E: Couldn't find any package by glob 'php7.0-dev'
E: Couldn't find any package by regex 'php7.0-dev'
> Install pecl/Mosquitto
pecl/Mosquitto is already installed and is the same as the released version 0.4.0
install failed
> No need to reload the web server
********************************************************
* End dependancy installation *
********************************************************
Code : Tout sélectionner
$ sudo apt-get install php7.
Display all 109 possibilities? (y or n)
php7.1 php7.1-fpm php7.1-mysql php7.1-sqlite3 php7.2-cgi php7.2-imap php7.2-phpdbg php7.2-xmlrpc php7.3-dba php7.3-ldap php7.3-snmp
php7.1-bcmath php7.1-gd php7.1-odbc php7.1-sybase php7.2-cli php7.2-interbase php7.2-pspell php7.2-xsl php7.3-dev php7.3-mbstring php7.3-soap
php7.1-bz2 php7.1-gmp php7.1-opcache php7.1-tidy php7.2-common php7.2-intl php7.2-readline php7.2-zip php7.3-enchant php7.3-mysql php7.3-sqlite3
php7.1-cgi php7.1-imap php7.1-pgsql php7.1-xml php7.2-curl php7.2-json php7.2-recode php7.3 php7.3-fpm php7.3-odbc php7.3-sybase
php7.1-cli php7.1-interbase php7.1-phpdbg php7.1-xmlrpc php7.2-dba php7.2-ldap php7.2-snmp php7.3-bcmath php7.3-gd php7.3-opcache php7.3-tidy
php7.1-common php7.1-intl php7.1-pspell php7.1-xsl php7.2-dev php7.2-mbstring php7.2-soap php7.3-bz2 php7.3-gmp php7.3-pgsql php7.3-xml
php7.1-curl php7.1-json php7.1-readline php7.1-zip php7.2-enchant php7.2-mysql php7.2-sqlite3 php7.3-cgi php7.3-imap php7.3-phpdbg php7.3-xmlrpc
php7.1-dba php7.1-ldap php7.1-recode php7.2 php7.2-fpm php7.2-odbc php7.2-sybase php7.3-cli php7.3-interbase php7.3-pspell php7.3-xsl
php7.1-dev php7.1-mbstring php7.1-snmp php7.2-bcmath php7.2-gd php7.2-opcache php7.2-tidy php7.3-common php7.3-intl php7.3-readline php7.3-zip
php7.1-enchant php7.1-mcrypt php7.1-soap php7.2-bz2 php7.2-gmp php7.2-pgsql php7.2-xml php7.3-curl php7.3-json php7.3-recode
Code : Tout sélectionner
********************************************************
* Install dependancies *
********************************************************
> Progress file: /tmp/jeedom/jMQTT/progress_dep.txt
> Install Mosquitto: 1
*
* Update package source repository
*
Reading package lists...
Building dependency tree...
Reading state information...
lsb-release is already the newest version (10.2019051400+rpi1).
php-pear is already the newest version (1:1.10.6+submodules+notgz-1.1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
*
* Synchronize the package index
*
Hit:1 http://archive.raspberrypi.org/debian buster InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian buster InRelease
Reading package lists...
*
* Install Mosquitto
*
Reading package lists...
Building dependency tree...
Reading state information...
libmosquitto-dev is already the newest version (1.5.7-1).
mosquitto is already the newest version (1.5.7-1).
mosquitto-clients is already the newest version (1.5.7-1).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
*
* Install php mosquitto wrapper
*
> Version 7 of PHP detected
> Install php7.3-dev
Reading package lists...
Building dependency tree...
Reading state information...
php7.3-dev is already the newest version (7.3.4-2).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
> Install pecl/Mosquitto
pecl/Mosquitto is already installed and is the same as the released version 0.4.0
install failed
> Adding mosquitto.so to /etc/php/7.3/cli/php.ini
extension=mosquitto.so
> Adding mosquitto.so to /etc/php/7.3/apache2/php.ini
extension=mosquitto.so
> Reload the web server apache2
********************************************************
* End dependancy installation *
*******************************************************
[Fri Aug 09 18:27:25.396061 2019] [:error] [pid 595] [client 192.168.0.70:60579] PHP Fatal error: Uncaught Error: Class 'Mosquitto\Client' not found in /var/www/html/plugins/jMQTT/core/class/jMQTT.class.php:882
Stack trace:
#0 /var/www/html/plugins/jMQTT/core/class/jMQTT.class.php(1165): jMQTT->getMosquittoClient('eghir/1089/932d...')
#1 /var/www/html/plugins/jMQTT/core/class/jMQTTCmd.class.php(216): jMQTT->publishMosquitto('1089', 'rflinkjmqtt', 'rflink/Aster-0b...', '10;Aster;0b5c;2...', 1, '1')
#2 /var/www/html/core/class/cmd.class.php(980): jMQTTCmd->execute(NULL)
#3 /var/www/html/core/ajax/cmd.ajax.php(74): cmd->execCmd(NULL)
#4 {main}
thrown in /var/www/html/plugins/jMQTT/core/class/jMQTT.class.php on line 882, referer: http://IP_JEEDOM/index.php?v=d&m=jMQTT&p=jMQTT&id=396
xcorp a écrit : ↑09 août 2019, 18:29Bonjour domotruc,
en fait , quelque soit la syntaxe employée et les commandes rentrées, je reçois systématiquement une erreur 500 lors d'un test.
avec dans le log :
[Fri Aug 09 18:27:25.396061 2019] [:error] [pid 595] [client 192.168.0.70:60579] PHP Fatal error: Uncaught Error: Class 'Mosquitto\Client' not found in /var/www/html/plugins/jMQTT/core/class/jMQTT.class.php:882
Stack trace:
#0 /var/www/html/plugins/jMQTT/core/class/jMQTT.class.php(1165): jMQTT->getMosquittoClient('eghir/1089/932d...')
#1 /var/www/html/plugins/jMQTT/core/class/jMQTTCmd.class.php(216): jMQTT->publishMosquitto('1089', 'rflinkjmqtt', 'rflink/Aster-0b...', '10;Aster;0b5c;2...', 1, '1')
#2 /var/www/html/core/class/cmd.class.php(980): jMQTTCmd->execute(NULL)
#3 /var/www/html/core/ajax/cmd.ajax.php(74): cmd->execCmd(NULL)
#4 {main}
thrown in /var/www/html/plugins/jMQTT/core/class/jMQTT.class.php on line 882, referer: http://IP_JEEDOM/index.php?v=d&m=jMQTT&p=jMQTT&id=396