Implémentation de la gestion de la QoS (pour la transmission des évènements Jeedom)

Non,n ce ne sont pas des equipements du plugin mqtt2 (je n’ai pas d’equipments sur ce plugin), mais les messages publiés par le plugin lorsque la case « transmettre tous les evenements » est cochée

Je fais la MAJ et je te dis

norbert

après install lorsque je vais sur le plugin

image

coté http.error

5272|[25-Aug-2023 10:58:09 Europe/Brussels] PHP Fatal error:  Uncaught Error: Class 'mqtt2' not found in /var/www/html/plugins/mqtt2/plugin_info/configuration.php:130
5273|Stack trace:
5274|#0 /var/www/html/core/php/utils.inc.php(84): require_once()
5275|#1 /var/www/html/index.php(75): include_file()
5276|#2 {main}
5277|thrown in /var/www/html/plugins/mqtt2/plugin_info/configuration.php on line 130
5278|[25-Aug-2023 10:58:10 Europe/Brussels] PHP Fatal error:  Uncaught Error: Class 'mqtt2' not found in /var/www/html/plugins/mqtt2/plugin_info/configuration.php:130
5279|Stack trace:
5280|#0 /var/www/html/core/php/utils.inc.php(84): require_once()
5281|#1 /var/www/html/index.php(75): include_file()
5282|#2 {main}
5283|thrown in /var/www/html/plugins/mqtt2/plugin_info/configuration.php on line 130
5284|[25-Aug-2023 10:58:10 Europe/Brussels] PHP Fatal error:  Uncaught Error: Class 'mqtt2' not found in /var/www/html/plugins/mqtt2/plugin_info/configuration.php:130
5285|Stack trace:
5286|#0 /var/www/html/core/php/utils.inc.php(84): require_once()
5287|#1 /var/www/html/index.php(75): include_file()
5288|#2 {main}
5289|thrown in /var/www/html/plugins/mqtt2/plugin_info/configuration.php on line 130

coté MAJ, pas de souci constaté :

0000|[2023-08-25 11:10:07]ALERT : [START UPDATE]
0001|[2023-08-25 11:10:35]ALERT : Début de la mise à jour de : mqtt2
0002|[2023-08-25 11:10:35]ALERT : Action de pré-update...
0003|[2023-08-25 11:10:36]ALERT : OK
0004|[2023-08-25 11:10:36]ALERT : Téléchargement du plugin (source : market)...
0005|[2023-08-25 11:10:37]ALERT : Téléchargement de mqtt2...
0006|[2023-08-25 11:10:37]ALERT : URL https://market.jeedom.com/core/php/downloadFile.php?id=4213&version=beta&jeedomversion=4.4.0&hwkey=d51cf0b442ad5b9f0415a659a810934dddbe5d9e7cc750ff7fe77d3cfc68b95&username=ngrataloup&password=0a99a73253423960431376ae4ffda7835e24fca0&password_type=sha1
0007|--2023-08-25 11:10:37--  https://market.jeedom.com/core/php/downloadFile.php?id=4213&version=beta&jeedomversion=4.4.0&hwkey=d51cf0b442ad5b9f0415a659a810934dddbe5d9e7cc750ff7fe77d3cfc68b95&username=ngrataloup&password=0a99a73253423960431376ae4ffda7835e24fca0&password_type=sha1
0008|Resolving market.jeedom.com (market.jeedom.com)... 57.128.120.126
0009|Connecting to market.jeedom.com (market.jeedom.com)|57.128.120.126|:443... connected.
0010|HTTP request sent, awaiting response... 200 OK
0011|Length: unspecified [application/octet-stream]
0012|Saving to: '/tmp/jeedom/market/mqtt2.zip'
0013|0K .......... .......... .......... .......... ..........  271K
0014|50K .......... .......... .......... .......... ..........  197K
0015|100K .......... .......... .......... .......... ..........  746K
0016|150K .......... .......... .......... .......... ..........  340K
0017|200K .......... .......... .......... .......... ..........  397K
0018|250K .......... .......... .......... .......... ..........  450K
0019|300K .......... .......... .......... .......... ..........  694K
0020|350K .......... ...                                          409K=1.0s
0021|2023-08-25 11:10:38 (365 KB/s) - '/tmp/jeedom/market/mqtt2.zip' saved [371882]
0022|[2023-08-25 11:10:38]ALERT : OK
0023|[2023-08-25 11:10:38]ALERT : Décompression du zip...
0024|[2023-08-25 11:10:38]ALERT : OK
0025|[2023-08-25 11:10:38]ALERT : Post-installation de mqtt2...
0026|[2023-08-25 11:10:38]ALERT : Vérification des droits sur les fichiers...
0027|[2023-08-25 11:10:39]ALERT : OK
0028|[2023-08-25 11:10:39]ALERT : Suppression des fichiers inutiles...
0029|[2023-08-25 11:10:48]ALERT : OK
0030|[2023-08-25 11:10:48]ALERT : END UPDATE SUCCESS
0031|[2023-08-25 11:10:49]ALERT : Launch cron dependancy plugins
0032|[2023-08-25 11:10:49]ALERT : [END UPDATE SUCCESS]

A mince manquait une ) dans mon code. Je viens de pousser une nouvelle version qui corrige. Désolé.

OK, ca refonctionne, mais pas mieux, QoS toujours à 0

1397|[2023-08-25 10:17:14]DEBUG : Publish message on topic : jeedom_stlattier/cmd/event/2142 => {"value":"11898981","humanName":"[Infra domo][Box 4G][Total Connect Time]","unite":"s","name":"Total Connect Time","type":"info","subtype":"numeric"} with options : {}
1398|[2023-08-25 10:17:14]DEBUG : Publish message on topic : jeedom_stlattier/cmd/event/2741 => {"value":"","humanName":"[Infra domo][Box 4G][WAN IPv6]","unite":"","name":"WAN IPv6","type":"info","subtype":"string"} with options : {}
1399|[2023-08-25 10:17:14]DEBUG : Publish message on topic : jeedom_stlattier/cmd/event/2158 => {"value":"","humanName":"[Infra domo][Box 4G][Numéro]","unite":"","name":"Numéro","type":"info","subtype":"string"} with options : {}
1400|[2023-08-25 10:17:15]DEBUG : Publish message on topic : jeedom_stlattier/cmd/event/2155 => {"value":"-59","humanName":"[Infra domo][Box 4G][RSSI]","unite":"dBm","name":"RSSI","type":"info","subtype":"numeric"} with options : {}
1401|[2023-08-25 10:17:15]DEBUG : Publish message on topic : jeedom_stlattier/cmd/event/2157 => {"value":"-3","humanName":"[Infra domo][Box 4G][SINR]","unite":"dB","name":"SINR","type":"info","subtype":"numeric"} with options : {}
1402|[2023-08-25 10:17:15]DEBUG : Publish message on topic : jeedom_stlattier/cmd/event/2154 => {"value":"-89","humanName":"[Infra domo][Box 4G][RSRP]","unite":"dBm","name":"RSRP","type":"info","subtype":"numeric"} with options : {}
1403|[2023-08-25 10:17:15]DEBUG : Publish message on topic : jeedom_stlattier/cmd/event/2156 => {"value":"30","humanName":"[Infra domo][Box 4G][Marge RF]","unite":"dBm","name":"Marge RF","type":"info","subtype":"numeric"} with options : {}
1418|[2023-08-25 10:17:15]DEBUG : Publish message on topic : jeedom_stlattier/cmd/event/2144 => {"value":"17438054606","humanName":"[Infra domo][Box 4G][Mois Download]","unite":"","name":"Mois Download","type":"info","subtype":"numeric"} with options : {}
1420|[2023-08-25 10:17:15]DEBUG : Publish message on topic : jeedom_stlattier/cmd/event/2143 => {"value":"149638388263","humanName":"[Infra domo][Box 4G][Mois Upload]","unite":"","name":"Mois Upload","type":"info","subtype":"numeric"} with options : {}
1473|[2023-08-25 10:17:17]DEBUG : Publish message on topic : jeedom_stlattier/cmd/event/7698 => {"value":"234.23","humanName":"[Cave][_VMC][voltage]","unite":"","name":"voltage","type":"info","subtype":"string"} with options : {}

Petite remarque, le champ QoS pourrait etre une liste de choix ou case à cocher puisque le schoix possibles sont 0,1 ou 2

J’avais oublié un _ (le vendredi c’est pas facile quand meme). Peux tu retester avec la prochaine beta ?

Pour le select c’est prévu mais une fois que ca marchera.

Fait, ca semble OK ! j’ai bien une QoS de 1 sur Mqtt explorer, ce qui signifie que le plugin envoie avec une QoS de 1 et que Mqtt explorer recupere avec une QoS de 1

:clap:

A suivre

1 « J'aime »

Cool merci pour le retour.

1 « J'aime »

Ce sujet a été automatiquement fermé après 24 heures suivant le dernier commentaire. Aucune réponse n’est permise dorénavant.