[Plugin Tiers] Plugin Huawei4G

Hello @dvb

pourrais-tu passer le plugin en mode debug et me donner le log stp ?
N’ayant qu’un seul routeur chez moi, je ne peux pas faire les tests sur tous les modèles possibles :smiley:
La librairie que j’utilise l’annonce compatible mais pas pu le tester. Les logs pourront déterminer ce qui est compatible ou non.

Merci !

A vos mises à jour, ça devrait améliorer plusieurs points.
@djo28 si tu peux réinstaller les dépendances, j’ai rajouté un module qui pourrait être la cause de ton erreur

Done via mp !

pareils pour moi :slight_smile:

j’ai la solution, l’api ne renvoie pas les mêmes clés selon les opérateurs, pas très simple pour automatiser mais je vais l’intégrer.

@tux1c0 désolé mais ça veut toujours pas.
J’ai bien vu les nouveautés dans l’install des dépendances mais ça reste toujours vide au niveau du dashboard et le sms ne sortent toujours pas.

[2020-03-21 20:35:27][DEBUG] : tableau from JSON: Array
[2020-03-21 20:35:27][DEBUG] : [(<class 'NameError'>, NameError("name 'time' is not defined",), <traceback object at 0x7f061b701748>)]
[2020-03-21 20:35:27][DEBUG] : PreOutput:
[2020-03-21 20:35:27][DEBUG] : PostOutput:
[2020-03-21 20:35:27][DEBUG] : 0: {<class 'NameError'>, NameError("name 'time' is not defined",), <traceback object at 0x7f061b701748>}
[2020-03-21 20:35:27][DEBUG] :  - Erreur de syntaxe ; JSON malformé
[2020-03-21 20:35:27][DEBUG] : State:
[2020-03-21 20:35:27][DEBUG] : Up
[2020-03-21 20:35:27][DEBUG] : function setInfo has a NULL parameter
[2020-03-21 20:35:27][DEBUG] : function setInfo has a NULL parameter
[2020-03-21 20:35:27][DEBUG] : function setInfo has a NULL parameter
[2020-03-21 20:35:27][DEBUG] : function setInfo has a NULL parameter
[2020-03-21 20:35:27][DEBUG] : function setInfo has a NULL parameter
[2020-03-21 20:35:27][DEBUG] : function setInfo has a NULL parameter
[2020-03-21 20:35:27][DEBUG] : freq band:
[2020-03-21 20:35:27][DEBUG] : liste: Array
[2020-03-21 20:35:27][DEBUG] : key:
[2020-03-21 20:35:27][DEBUG] : jsonKey:
[2020-03-21 20:35:27][DEBUG] : Freq Name: FDD 2100
[2020-03-21 20:35:27][DEBUG] : freq ndl:
[2020-03-21 20:35:27][DEBUG] : freq nul:
[2020-03-21 20:35:27][DEBUG] : NDL_Off: 0
[2020-03-21 20:35:27][DEBUG] : FDL_Low: 2110
[2020-03-21 20:35:27][DEBUG] : NUL_Off: 18000
[2020-03-21 20:35:27][DEBUG] : FUL_Low: 1920
[2020-03-21 20:35:27][DEBUG] : key FullName valeur
[2020-03-21 20:35:27][DEBUG] : key status valeur Up
[2020-03-21 20:35:27][DEBUG] : key CurrentConnectTime valeur
[2020-03-21 20:35:27][DEBUG] : key CurrentDownloadRate valeur
[2020-03-21 20:35:27][DEBUG] : key CurrentUploadRate valeur
[2020-03-21 20:35:27][DEBUG] : key CurrentDownload valeur
[2020-03-21 20:35:27][DEBUG] : key CurrentUpload valeur
[2020-03-21 20:35:27][DEBUG] : key TotalConnectTime valeur
[2020-03-21 20:35:27][DEBUG] : key TotalDownload valeur
[2020-03-21 20:35:27][DEBUG] : key TotalUpload valeur
[2020-03-21 20:35:27][DEBUG] : key devicename valeur
[2020-03-21 20:35:27][DEBUG] : key SoftwareVersion valeur
[2020-03-21 20:35:27][DEBUG] : key WebUIVersion valeur
[2020-03-21 20:35:27][DEBUG] : key Imei valeur
[2020-03-21 20:35:27][DEBUG] : key WanIPAddress valeur
[2020-03-21 20:35:27][DEBUG] : key workmode valeur
[2020-03-21 20:35:28][DEBUG] : key cell_id valeur
[2020-03-21 20:35:28][DEBUG] : key rsrp valeur
[2020-03-21 20:35:28][DEBUG] : key rssi valeur
[2020-03-21 20:35:28][DEBUG] : key sinr valeur
[2020-03-21 20:35:28][DEBUG] : key Msisdn valeur
[2020-03-21 20:35:28][DEBUG] : key frq valeur FDD 2100
[2020-03-21 20:35:28][DEBUG] : key fdl valeur 2110
[2020-03-21 20:35:28][DEBUG] : key ful valeur 120
[2020-03-21 20:35:28][DEBUG] : key Count valeur
[2020-03-21 20:35:28][DEBUG] : key Messages valeur
[2020-03-21 20:35:28][DEBUG] : refresh [Armoire info][Routeur 4G Huawei][Rafraîchir]

tu as essayer de réenregistrer ton équipement ?

Oui, j’ai même supprimé puis recréé l’équipement.

Hello

plusieurs problèmes viennent d’être corrigés

@MrJuJu0319 : le 2100 s’affiche quand le plugin n’arrive pas à avoir la bande de fréquence. Ca sera Unknown maintenant pour plus de clarté.

@dvb : le changement pour inclure le lte_bandinfo est fait, à tester

@djo28 : le problème de Time devrait être corrigé, un bug dans la librairie python existait

Réinstallez les dépendances, du fait du bug de djo28, j’ai dû revoir l’installation complète.

********************************************************
*             Installation des dépendances             *
********************************************************
--2020-03-22 12:40:11--  https://repository.salamek.cz/deb/salamek.gpg.key
Résolution de repository.salamek.cz (repository.salamek.cz)… 78.80.161.207
Connexion à repository.salamek.cz (repository.salamek.cz)|78.80.161.207|:443… Warning: apt-key output should not be parsed (stdout is not a terminal)
connecté.
requête HTTP transmise, en attente de la réponse… 200 OK
Taille : 1715 (1.7K) [application/octet-stream]
Sauvegarde en : « STDOUT »
0K .                                                     100% 43.4M=0s
2020-03-22 12:40:12 (43.4 MB/s) — envoi vers sortie standard [1715/1715]
OK
deb     https://repository.salamek.cz/deb/pub all main
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Atteint :1 http://httpredir.debian.org/debian buster InRelease
Réception de :3 http://security.debian.org buster/updates InRelease [65.4 kB]
Réception de :4 http://httpredir.debian.org/debian buster-updates InRelease [49.3 kB]
Atteint :5 https://deb.nodesource.com/node_12.x buster InRelease
Réception de :6 https://repository.salamek.cz/deb/pub all InRelease [2940 B]
Réception de :7 http://httpredir.debian.org/debian buster-backports InRelease [46.7 kB]
Réception de :2 https://apt.armbian.com buster InRelease [18.3 kB]
Réception de :8 https://repository.salamek.cz/deb/pub all/main armhf Packages [10.7 kB]
Réception de :9 http://httpredir.debian.org/debian buster-backports/main arm64 Packages.diff/Index [27.8 kB]
Réception de :10 http://httpredir.debian.org/debian buster-backports/main armhf Packages.diff/Index [27.8 kB]
Réception de :11 http://httpredir.debian.org/debian buster-backports/main arm64 Packages 2020-03-21-2021.59.pdiff [405 B]
Réception de :11 http://httpredir.debian.org/debian buster-backports/main arm64 Packages 2020-03-21-2021.59.pdiff [405 B]
Réception de :12 http://httpredir.debian.org/debian buster-backports/main armhf Packages 2020-03-21-2021.59.pdiff [414 B]
Réception de :13 https://apt.armbian.com buster/main armhf Packages [127 kB]
Réception de :12 http://httpredir.debian.org/debian buster-backports/main armhf Packages 2020-03-21-2021.59.pdiff [414 B]
Réception de :14 https://apt.armbian.com buster/main arm64 Packages [127 kB]
Réception de :15 https://apt.armbian.com buster/main arm64 Contents (deb) [5255 kB]
Réception de :16 https://apt.armbian.com buster/main armhf Contents (deb) [6009 kB]
11.8 Mo réceptionnés en 19s (631 ko/s)
Lecture des listes de paquets…
Construction de l'arbre des dépendances…
Lecture des informations d'état…
4 paquets peuvent être mis à jour. Exécutez « apt list --upgradable » pour les voir.
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Lecture des listes de paquets…
Construction de l'arbre des dépendances…
Lecture des informations d'état…
Les paquets supplémentaires suivants seront installés :
python3-dicttoxml python3-xmltodict
Les NOUVEAUX paquets suivants seront installés :
python3-dicttoxml python3-huawei-lte-api python3-xmltodict
0 mis à jour, 3 nouvellement installés, 0 à enlever et 4 non mis à jour.
Il est nécessaire de prendre 44.6 ko dans les archives.
Après cette opération, 258 ko d'espace disque supplémentaires seront utilisés.
Souhaitez-vous continuer ? [O/n] Annulation.
********************************************************
*             Installation terminée                    *
********************************************************

après avoir install les dépendance a la mano :

********************************************************
*             Installation des dépendances             *
********************************************************
--2020-03-22 13:08:33--  https://repository.salamek.cz/deb/salamek.gpg.key
Résolution de repository.salamek.cz (repository.salamek.cz)… 78.80.161.207
Connexion à repository.salamek.cz (repository.salamek.cz)|78.80.161.207|:443… connecté.
Warning: apt-key output should not be parsed (stdout is not a terminal)
requête HTTP transmise, en attente de la réponse… 200 OK
Taille : 1715 (1.7K) [application/octet-stream]
Sauvegarde en : « STDOUT »
0K .                                                     100% 44.7M=0s
2020-03-22 13:08:34 (44.7 MB/s) — envoi vers sortie standard [1715/1715]
OK
deb     https://repository.salamek.cz/deb/pub all main
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Atteint :1 http://httpredir.debian.org/debian buster InRelease
Atteint :2 http://security.debian.org buster/updates InRelease
Atteint :4 http://httpredir.debian.org/debian buster-updates InRelease
Atteint :5 http://httpredir.debian.org/debian buster-backports InRelease
Atteint :6 https://deb.nodesource.com/node_12.x buster InRelease
Atteint :7 https://repository.salamek.cz/deb/pub all InRelease
Atteint :3 https://apt.armbian.com buster InRelease
Lecture des listes de paquets…
Construction de l'arbre des dépendances…
Lecture des informations d'état…
4 paquets peuvent être mis à jour. Exécutez « apt list --upgradable » pour les voir.
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Lecture des listes de paquets…
Construction de l'arbre des dépendances…
Lecture des informations d'état…
python3-huawei-lte-api est déjà la version la plus récente (1.4.11-1).
0 mis à jour, 0 nouvellement installés, 0 à enlever et 4 non mis à jour.
********************************************************
*             Installation terminée                    *
********************************************************
[2020-03-22 13:10:28][DEBUG] : tableau from JSON: Array
[2020-03-22 13:10:29][DEBUG] : ['{"password_type": "4", "extern_password_type": "1", "history_login_flag": "0", "State": "0", "lockstatus": "0", "password_rule": "0", "accounts_number": "1", "rsapadingtype": "1", "remainwaittime": "0", "wifipwdsamewithwebpwd": "0", "Username": "admin", "firstlogin": "1", "userlevel": "2"}', '{"CurrentConnectTime": "71798", "CurrentUpload": "959792790", "CurrentDownload": "32744890632", "CurrentDownloadRate": "15764", "CurrentUploadRate": "14109", "TotalUpload": "11180109021", "TotalDownload": "408044801726", "TotalConnectTime": "848069", "showtraffic": "1"}', '{"State": "0", "FullName": "Bouygues Telecom", "ShortName": "Bouygues Telecom", "Numeric": "20820", "Rat": "7", "Spn": null}', '{"productfamily": "LTE", "classify": "cpe", "multimode": "0", "restore_default_status": "0", "sim_save_pin_enable": "2", "devicename": "B528s-23a", "SoftwareVersion": "81.195.03.00.309", "WebUIVersion": "81.100.33.00.309", "iniversion": "B528s-23aCUST-B00C309", "spreadname_en": null, "spreadname_zh": null}', '{"DeviceName": "B528s-23a", "SerialNumber": "DNLDW19220001530", "Imei": "863769036974927", "Imsi": "208201010368182", "Iccid": "8933201019103681822", "Msisdn": null, "HardwareVersion": "WL1B520FM02", "SoftwareVersion": "81.195.03.00.309", "WebUIVersion": "81.100.33.00.309", "MacAddress1": "DC:90:88:1E:19:7D", "MacAddress2": null, "WanIPAddress": "89.83.254.189", "wan_dns_address": "62.201.129.99,62.201.159.99", "WanIPv6Address": null, "wan_ipv6_dns_address": null, "ProductFamily": "LTE", "Classify": "cpe", "supportmode": "LTE|WCDMA|GSM", "workmode": "LTE", "submask": "255.255.255.255", "Mccmnc": "20820", "iniversion": "B528s-23aCUST-B00C309", "uptime": "158218", "ImeiSvn": "01", "WifiMacAddrWl0": "DC:90:88:1E:19:7E", "WifiMacAddrWl1": "DC:90:88:1E:19:80", "spreadname_en": null, "spreadname_zh": null}', '{"pci": "351", "sc": null, "cell_id": "157550860", "rsrq": "-13.0dB", "rsrp": "-103dBm", "rssi": "-69dBm", "sinr": "3dB", "rscp": null, "ecio": null, "mode": "7", "ulbandwidth": "20MHz", "dlbandwidth": "20MHz", "txpower": "PPusch:21dBm PPucch:3dBm PSrs:23dBm PPrach:17dBm", "tdd": null, "ul_mcs": "mcsUpCarrier1:17", "dl_mcs": "mcsDownCarrier1Code0:18 mcsDownCarrier1Code1:9", "earfcn": "DL:1850 UL:19850", "rrc_status": "1", "rac": null, "lac": null, "tac": "59205", "band": "3", "nei_cellid": "No1:352", "plmn": "20820", "ims": "0", "wdlfreq": null, "lteulfreq": "17750", "ltedlfreq": "18700", "transmode": "TM[4]", "enodeb_id": "0615433", "cqi0": "6", "cqi1": "7", "ulfrequency": "1775000kHz", "dlfrequency": "1870000kHz", "arfcn": null, "bsic": null, "rxlev": null}', {'get_sms_list()': 'Not supported'}]
[2020-03-22 13:10:29][DEBUG] : PreOutput:
[2020-03-22 13:10:29][DEBUG] : PostOutput:
[2020-03-22 13:10:29][DEBUG] : 0: {"password_type": "4", "extern_password_type": "1", "history_login_flag": "0", "State": "0", "lockstatus": "0", "password_rule": "0", "accounts_number": "1", "rsapadingtype": "1", "remainwaittime": "0", "wifipwdsamewithwebpwd": "0", "Username": "admin", "firstlogin": "1", "userlevel": "2"}
[2020-03-22 13:10:29][DEBUG] :  - Aucune erreur
[2020-03-22 13:10:29][DEBUG] : 1: {"CurrentConnectTime": "71798", "CurrentUpload": "959792790", "CurrentDownload": "32744890632", "CurrentDownloadRate": "15764", "CurrentUploadRate": "14109", "TotalUpload": "11180109021", "TotalDownload": "408044801726", "TotalConnectTime": "848069", "showtraffic": "1"}
[2020-03-22 13:10:29][DEBUG] :  - Aucune erreur
[2020-03-22 13:10:29][DEBUG] : 2: {"State": "0", "FullName": "Bouygues Telecom", "ShortName": "Bouygues Telecom", "Numeric": "20820", "Rat": "7", "Spn": null}
[2020-03-22 13:10:29][DEBUG] :  - Aucune erreur
[2020-03-22 13:10:29][DEBUG] : 3: {"productfamily": "LTE", "classify": "cpe", "multimode": "0", "restore_default_status": "0", "sim_save_pin_enable": "2", "devicename": "B528s-23a", "SoftwareVersion": "81.195.03.00.309", "WebUIVersion": "81.100.33.00.309", "iniversion": "B528s-23aCUST-B00C309", "spreadname_en": null, "spreadname_zh": null}
[2020-03-22 13:10:29][DEBUG] :  - Aucune erreur
[2020-03-22 13:10:29][DEBUG] : 4: {"DeviceName": "B528s-23a", "SerialNumber": "DNLDW19220001530", "Imei": "863769036974927", "Imsi": "208201010368182", "Iccid": "8933201019103681822", "Msisdn": null, "HardwareVersion": "WL1B520FM02", "SoftwareVersion": "81.195.03.00.309", "WebUIVersion": "81.100.33.00.309", "MacAddress1": "DC:90:88:1E:19:7D", "MacAddress2": null, "WanIPAddress": "89.83.254.189", "wan_dns_address": "62.201.129.99,62.201.159.99", "WanIPv6Address": null, "wan_ipv6_dns_address": null, "ProductFamily": "LTE", "Classify": "cpe", "supportmode": "LTE|WCDMA|GSM", "workmode": "LTE", "submask": "255.255.255.255", "Mccmnc": "20820", "iniversion": "B528s-23aCUST-B00C309", "uptime": "158218", "ImeiSvn": "01", "WifiMacAddrWl0": "DC:90:88:1E:19:7E", "WifiMacAddrWl1": "DC:90:88:1E:19:80", "spreadname_en": null, "spreadname_zh": null}
[2020-03-22 13:10:29][DEBUG] :  - Aucune erreur
[2020-03-22 13:10:29][DEBUG] : 5: {"pci": "351", "sc": null, "cell_id": "157550860", "rsrq": "-13.0dB", "rsrp": "-103dBm", "rssi": "-69dBm", "sinr": "3dB", "rscp": null, "ecio": null, "mode": "7", "ulbandwidth": "20MHz", "dlbandwidth": "20MHz", "txpower": "PPusch:21dBm PPucch:3dBm PSrs:23dBm PPrach:17dBm", "tdd": null, "ul_mcs": "mcsUpCarrier1:17", "dl_mcs": "mcsDownCarrier1Code0:18 mcsDownCarrier1Code1:9", "earfcn": "DL:1850 UL:19850", "rrc_status": "1", "rac": null, "lac": null, "tac": "59205", "band": "3", "nei_cellid": "No1:352", "plmn": "20820", "ims": "0", "wdlfreq": null, "lteulfreq": "17750", "ltedlfreq": "18700", "transmode": "TM[4]", "enodeb_id": "0615433", "cqi0": "6", "cqi1": "7", "ulfrequency": "1775000kHz", "dlfrequency": "1870000kHz", "arfcn": null, "bsic": null, "rxlev": null}', {'get_sms_list()': 'Not supported'}
[2020-03-22 13:10:29][DEBUG] :  - Erreur de syntaxe ; JSON malformé
[2020-03-22 13:10:29][DEBUG] : State: 0
[2020-03-22 13:10:29][DEBUG] : Up
[2020-03-22 13:10:29][DEBUG] : key:CurrentConnectTime value:71798
[2020-03-22 13:10:29][DEBUG] : key:CurrentUpload value:959792790
[2020-03-22 13:10:29][DEBUG] : key:CurrentDownload value:32744890632
[2020-03-22 13:10:29][DEBUG] : key:CurrentDownloadRate value:15764
[2020-03-22 13:10:29][DEBUG] : key:CurrentUploadRate value:14109
[2020-03-22 13:10:29][DEBUG] : key:TotalUpload value:11180109021
[2020-03-22 13:10:29][DEBUG] : key:TotalDownload value:408044801726
[2020-03-22 13:10:29][DEBUG] : key:TotalConnectTime value:848069
[2020-03-22 13:10:29][DEBUG] : key:showtraffic value:1
[2020-03-22 13:10:29][DEBUG] : key:State value:0
[2020-03-22 13:10:29][DEBUG] : key:FullName value:Bouygues Telecom
[2020-03-22 13:10:29][DEBUG] : key:ShortName value:Bouygues Telecom
[2020-03-22 13:10:29][DEBUG] : key:Numeric value:20820
[2020-03-22 13:10:29][DEBUG] : key:Rat value:7
[2020-03-22 13:10:29][DEBUG] : key:Spn value:
[2020-03-22 13:10:29][DEBUG] : key:productfamily value:LTE
[2020-03-22 13:10:29][DEBUG] : key:classify value:cpe
[2020-03-22 13:10:29][DEBUG] : key:multimode value:0
[2020-03-22 13:10:29][DEBUG] : key:restore_default_status value:0
[2020-03-22 13:10:29][DEBUG] : key:sim_save_pin_enable value:2
[2020-03-22 13:10:29][DEBUG] : key:devicename value:B528s-23a
[2020-03-22 13:10:29][DEBUG] : key:SoftwareVersion value:81.195.03.00.309
[2020-03-22 13:10:29][DEBUG] : key:WebUIVersion value:81.100.33.00.309
[2020-03-22 13:10:29][DEBUG] : key:iniversion value:B528s-23aCUST-B00C309
[2020-03-22 13:10:29][DEBUG] : key:spreadname_en value:
[2020-03-22 13:10:29][DEBUG] : key:spreadname_zh value:
[2020-03-22 13:10:29][DEBUG] : key:DeviceName value:B528s-23a
[2020-03-22 13:10:29][DEBUG] : key:SerialNumber value:DNLDW19220001530
[2020-03-22 13:10:29][DEBUG] : key:Imei value:863769036974927
[2020-03-22 13:10:29][DEBUG] : key:Imsi value:208201010368182
[2020-03-22 13:10:29][DEBUG] : key:Iccid value:8933201019103681822
[2020-03-22 13:10:29][DEBUG] : key:Msisdn value:
[2020-03-22 13:10:29][DEBUG] : key:HardwareVersion value:WL1B520FM02
[2020-03-22 13:10:29][DEBUG] : key:SoftwareVersion value:81.195.03.00.309
[2020-03-22 13:10:29][DEBUG] : key:WebUIVersion value:81.100.33.00.309
[2020-03-22 13:10:29][DEBUG] : key:MacAddress1 value:DC:90:88:1E:19:7D
[2020-03-22 13:10:29][DEBUG] : key:MacAddress2 value:
[2020-03-22 13:10:29][DEBUG] : key:WanIPAddress value:89.83.254.189
[2020-03-22 13:10:29][DEBUG] : key:wan_dns_address value:62.201.129.99,62.201.159.99
[2020-03-22 13:10:29][DEBUG] : key:WanIPv6Address value:
[2020-03-22 13:10:29][DEBUG] : key:wan_ipv6_dns_address value:
[2020-03-22 13:10:29][DEBUG] : key:ProductFamily value:LTE
[2020-03-22 13:10:29][DEBUG] : key:Classify value:cpe
[2020-03-22 13:10:29][DEBUG] : key:supportmode value:LTE|WCDMA|GSM
[2020-03-22 13:10:29][DEBUG] : key:workmode value:LTE
[2020-03-22 13:10:29][DEBUG] : key:submask value:255.255.255.255
[2020-03-22 13:10:29][DEBUG] : key:Mccmnc value:20820
[2020-03-22 13:10:29][DEBUG] : key:iniversion value:B528s-23aCUST-B00C309
[2020-03-22 13:10:29][DEBUG] : key:uptime value:158218
[2020-03-22 13:10:29][DEBUG] : key:ImeiSvn value:01
[2020-03-22 13:10:29][DEBUG] : key:WifiMacAddrWl0 value:DC:90:88:1E:19:7E
[2020-03-22 13:10:29][DEBUG] : key:WifiMacAddrWl1 value:DC:90:88:1E:19:80
[2020-03-22 13:10:29][DEBUG] : key:spreadname_en value:
[2020-03-22 13:10:29][DEBUG] : key:spreadname_zh value:
[2020-03-22 13:10:29][DEBUG] : function setInfo has a NULL parameter
[2020-03-22 13:10:29][DEBUG] : function setInfo has a NULL parameter
[2020-03-22 13:10:29][DEBUG] : freq band:
[2020-03-22 13:10:29][DEBUG] : liste: Array
[2020-03-22 13:10:29][DEBUG] : key:
[2020-03-22 13:10:29][DEBUG] : jsonKey:
[2020-03-22 13:10:29][DEBUG] : Freq Name: FDD 2100
[2020-03-22 13:10:29][DEBUG] : freq ndl:
[2020-03-22 13:10:29][DEBUG] : freq nul:
[2020-03-22 13:10:29][DEBUG] : NDL_Off: 0
[2020-03-22 13:10:29][DEBUG] : FDL_Low: 2110
[2020-03-22 13:10:29][DEBUG] : NUL_Off: 18000
[2020-03-22 13:10:29][DEBUG] : FUL_Low: 1920
[2020-03-22 13:10:29][DEBUG] : key FullName valeur Bouygues Telecom
[2020-03-22 13:10:29][DEBUG] : key status valeur Up
[2020-03-22 13:10:29][DEBUG] : key CurrentConnectTime valeur 71798
[2020-03-22 13:10:29][DEBUG] : key CurrentDownloadRate valeur 15764
[2020-03-22 13:10:29][DEBUG] : key CurrentUploadRate valeur 14109
[2020-03-22 13:10:29][DEBUG] : key CurrentDownload valeur 32744890632
[2020-03-22 13:10:29][DEBUG] : key CurrentUpload valeur 959792790
[2020-03-22 13:10:29][DEBUG] : key TotalConnectTime valeur 848069
[2020-03-22 13:10:29][DEBUG] : key devicename valeur B528s-23a
[2020-03-22 13:10:29][DEBUG] : key TotalDownload valeur 408044801726
[2020-03-22 13:10:29][DEBUG] : key TotalUpload valeur 11180109021
[2020-03-22 13:10:29][DEBUG] : key SoftwareVersion valeur 81.195.03.00.309
[2020-03-22 13:10:29][DEBUG] : key WanIPAddress valeur 89.83.254.189
[2020-03-22 13:10:29][DEBUG] : key cell_id valeur
[2020-03-22 13:10:29][DEBUG] : key rsrp valeur
[2020-03-22 13:10:29][DEBUG] : key rssi valeur
[2020-03-22 13:10:29][DEBUG] : key WebUIVersion valeur 81.100.33.00.309
[2020-03-22 13:10:29][DEBUG] : key Imei valeur 863769036974927
[2020-03-22 13:10:29][DEBUG] : key sinr valeur
[2020-03-22 13:10:29][DEBUG] : key frq valeur FDD 2100
[2020-03-22 13:10:29][DEBUG] : key fdl valeur 2110
[2020-03-22 13:10:29][DEBUG] : key ful valeur 120
[2020-03-22 13:10:29][DEBUG] : key workmode valeur LTE
[2020-03-22 13:10:29][DEBUG] : key Msisdn valeur
[2020-03-22 13:10:29][DEBUG] : key Count valeur
[2020-03-22 13:10:29][DEBUG] : key Messages valeur
[2020-03-22 13:10:29][DEBUG] : refresh [Information][BBOX][Rafraîchir]

image

@tux1c0
Toujours pas mieux, je n’ai toujours pas d’infos qui remontent.
Logs plugin :

Log du plugin



[2020-03-22 13:40:51][DEBUG] : tableau from JSON: Array
[2020-03-22 13:40:55][DEBUG] : [(<class 'NameError'>, NameError("name 'time' is not defined",), <traceback object at 0x7f25d36f4808>)]
[2020-03-22 13:40:55][DEBUG] : PreOutput:
[2020-03-22 13:40:55][DEBUG] : PostOutput:
[2020-03-22 13:40:55][DEBUG] : 0: {<class 'NameError'>, NameError("name 'time' is not defined",), <traceback object at 0x7f25d36f4808>}
[2020-03-22 13:40:55][DEBUG] :  - Erreur de syntaxe ; JSON malformé
[2020-03-22 13:40:55][DEBUG] : State:
[2020-03-22 13:40:55][DEBUG] : Up
[2020-03-22 13:40:55][DEBUG] : function setInfo has a NULL parameter
[2020-03-22 13:40:55][DEBUG] : function setInfo has a NULL parameter
[2020-03-22 13:40:55][DEBUG] : function setInfo has a NULL parameter
[2020-03-22 13:40:55][DEBUG] : function setInfo has a NULL parameter
[2020-03-22 13:40:55][DEBUG] : function setInfo has a NULL parameter
[2020-03-22 13:40:55][DEBUG] : function setInfo has a NULL parameter
[2020-03-22 13:40:55][DEBUG] : freq band:
[2020-03-22 13:40:55][DEBUG] : liste: Array
[2020-03-22 13:40:55][DEBUG] : key:
[2020-03-22 13:40:55][DEBUG] : jsonKey:
[2020-03-22 13:40:55][DEBUG] : Freq Name: FDD 2100
[2020-03-22 13:40:55][DEBUG] : freq ndl:
[2020-03-22 13:40:55][DEBUG] : freq nul:
[2020-03-22 13:40:55][DEBUG] : NDL_Off: 0
[2020-03-22 13:40:55][DEBUG] : FDL_Low: 2110
[2020-03-22 13:40:55][DEBUG] : NUL_Off: 18000
[2020-03-22 13:40:55][DEBUG] : FUL_Low: 1920
[2020-03-22 13:40:55][DEBUG] : key FullName valeur
[2020-03-22 13:40:55][DEBUG] : key status valeur Up
[2020-03-22 13:40:55][DEBUG] : key CurrentConnectTime valeur
[2020-03-22 13:40:55][DEBUG] : key CurrentDownloadRate valeur
[2020-03-22 13:40:55][DEBUG] : key CurrentUploadRate valeur
[2020-03-22 13:40:55][DEBUG] : key CurrentDownload valeur
[2020-03-22 13:40:55][DEBUG] : key CurrentUpload valeur
[2020-03-22 13:40:55][DEBUG] : key TotalConnectTime valeur
[2020-03-22 13:40:55][DEBUG] : key TotalDownload valeur
[2020-03-22 13:40:55][DEBUG] : key TotalUpload valeur
[2020-03-22 13:40:55][DEBUG] : key devicename valeur
[2020-03-22 13:40:55][DEBUG] : key SoftwareVersion valeur
[2020-03-22 13:40:55][DEBUG] : key WebUIVersion valeur
[2020-03-22 13:40:55][DEBUG] : key Imei valeur
[2020-03-22 13:40:55][DEBUG] : key WanIPAddress valeur
[2020-03-22 13:40:55][DEBUG] : key workmode valeur
[2020-03-22 13:40:55][DEBUG] : key cell_id valeur
[2020-03-22 13:40:55][DEBUG] : key rsrp valeur
[2020-03-22 13:40:55][DEBUG] : key rssi valeur
[2020-03-22 13:40:55][DEBUG] : key sinr valeur
[2020-03-22 13:40:56][DEBUG] : key Msisdn valeur
[2020-03-22 13:40:56][DEBUG] : key frq valeur FDD 2100
[2020-03-22 13:40:56][DEBUG] : key fdl valeur 2110
[2020-03-22 13:40:56][DEBUG] : key ful valeur 120
[2020-03-22 13:40:56][DEBUG] : key Count valeur
[2020-03-22 13:40:56][DEBUG] : key Messages valeur
[2020-03-22 13:40:56][DEBUG] : refresh [Armoire info][Huawei 4G Router][Rafraîchir]
[2020-03-22 13:41:20][DEBUG] : [(<class 'NameError'>, NameError("name 'time' is not defined",), <traceback object at 0x7f0c58771848>)]
[2020-03-22 13:41:20][DEBUG] : PreOutput:
[2020-03-22 13:41:20][DEBUG] : PostOutput:
[2020-03-22 13:41:20][DEBUG] : 0: {<class 'NameError'>, NameError("name 'time' is not defined",), <traceback object at 0x7f0c58771848>}
[2020-03-22 13:41:20][DEBUG] :  - Erreur de syntaxe ; JSON malformé
[2020-03-22 13:41:20][DEBUG] : numerotel: 0600000000
[2020-03-22 13:41:20][DEBUG] : message: piout
[2020-03-22 13:41:21][DEBUG] : [(<class 'NameError'>, NameError("name 'time' is not defined",), <traceback object at 0x7fc7f1fea548>)]
[2020-03-22 13:41:21][DEBUG] : Sending:
[2020-03-22 13:41:21][DEBUG] : sendsms [Armoire info][Huawei 4G Router][Envoyer SMS]

Et les dépendances :

********************************************************
*             Installation des dépendances             *
********************************************************
--2020-03-22 13:39:55--  https://repository.salamek.cz/deb/salamek.gpg.key
Resolving repository.salamek.cz (repository.salamek.cz)... Warning: apt-key output should not be parsed (stdout is not a terminal)
78.80.161.207
Connecting to repository.salamek.cz (repository.salamek.cz)|78.80.161.207|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1715 (1.7K) [application/octet-stream]
Saving to: 'STDOUT'
0K .                                                     100% 61.3M=0s
2020-03-22 13:39:56 (61.3 MB/s) - written to stdout [1715/1715]
OK
deb     https://repository.salamek.cz/deb/pub all main
Get:1 https://repository.salamek.cz/deb/pub all InRelease [2940 B]
Ign:2 http://ftp.fr.debian.org/debian stretch InRelease
Hit:3 http://repo.zabbix.com/zabbix/3.4/debian stretch InRelease
Hit:4 http://ftp.fr.debian.org/debian stretch-updates InRelease
Hit:5 https://repo.mosquitto.org/debian stretch InRelease
Get:6 https://repository.salamek.cz/deb/pub all/main amd64 Packages [13.0 kB]
Hit:7 http://ftp.fr.debian.org/debian stretch Release
Get:8 http://security.debian.org/debian-security stretch/updates InRelease [94.3 kB]
Fetched 110 kB in 1s (101 kB/s)
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
python3-dicttoxml python3-xmltodict
The following NEW packages will be installed:
python3-dicttoxml python3-huawei-lte-api python3-xmltodict
0 upgraded, 3 newly installed, 0 to remove and 1 not upgraded.
Need to get 43.5 kB of archives.
After this operation, 256 kB of additional disk space will be used.
Get:1 http://ftp.fr.debian.org/debian stretch/main amd64 python3-dicttoxml all 1.7.4-1 [12.0 kB]
Get:2 http://ftp.fr.debian.org/debian stretch/main amd64 python3-xmltodict all 0.10.2-1 [11.9 kB]
Get:3 https://repository.salamek.cz/deb/pub all/main amd64 python3-huawei-lte-api all 1.4.11-1 [19.7 kB]
debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
dpkg-preconfigure: unable to re-open stdin:
Fetched 43.5 kB in 0s (116 kB/s)
Selecting previously unselected package python3-dicttoxml.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 64632 files and directories currently installed.)
Preparing to unpack .../python3-dicttoxml_1.7.4-1_all.deb ...
Unpacking python3-dicttoxml (1.7.4-1) ...
Selecting previously unselected package python3-xmltodict.
Preparing to unpack .../python3-xmltodict_0.10.2-1_all.deb ...
Unpacking python3-xmltodict (0.10.2-1) ...
Selecting previously unselected package python3-huawei-lte-api.
Preparing to unpack .../python3-huawei-lte-api_1.4.11-1_all.deb ...
Unpacking python3-huawei-lte-api (1.4.11-1) ...
Setting up python3-dicttoxml (1.7.4-1) ...
Setting up python3-xmltodict (0.10.2-1) ...
Setting up python3-huawei-lte-api (1.4.11-1) ...
********************************************************
*             Installation terminée                    *
********************************************************

Ma carte SD de mon raspberry de dev vient de cramer :frowning_face:

@djo28 peux-tu essayer ça en ligne de commande stp ? J’ai commencé à l’intégrer dans le plugin mais en attendant ma nouvelle carte (qui va arriver un jour en cette période).

Créer un fichier check.py contenant

#!/usr/bin/env python3
import huawei_lte_api

print(huawei_lte_api.__version__)

Exécuter

python3 check.py

Le retour doit être ressemblant à ça. La version doit être 1.4.11

pi@raspberrypi: $ python3 check.py
1.4.11

@MrJuJu0319 il y avait une coquille dans le JSON, ça devrait être bon (pas tout testé encore à cause du crash). RDV fin de semaine pro pour une nouvelle version.

1 « J'aime »

Bonjour,
Je vous confirme que le pluging fonctionne parfaitement sur un B535-232
Merci beaucoup pour votre travail

3 « J'aime »

Bonjour @regi54

merci pour ton feedback ! Je rajoute le modèle dans la doc dans la partie validée.

Merci.

Bonjour,
Je viens d’installer le plugin mais les dépendances ne veulent pas s’installer.

********************************************************
*             Installation des dépendances             *
********************************************************
--2020-03-22 18:59:14--  https://repository.salamek.cz/deb/salamek.gpg.key
Resolving repository.salamek.cz (repository.salamek.cz)... 78.80.161.207
Connecting to repository.salamek.cz (repository.salamek.cz)|78.80.161.207|:443... Warning: apt-key output should not be parsed (stdout is not a terminal)
connected.
HTTP request sent, awaiting response... 200 OK
Length: 1715 (1.7K) [application/octet-stream]
Saving to: 'STDOUT'
0K .                                                     100%  121M=0s
2020-03-22 18:59:15 (121 MB/s) - written to stdout [1715/1715]
OK
deb     https://repository.salamek.cz/deb/pub all main
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
Hit:1 http://ftp.fr.debian.org/debian buster InRelease
Hit:2 http://security.debian.org/debian-security buster/updates InRelease
Hit:3 http://ftp.fr.debian.org/debian buster-updates InRelease
Hit:4 https://deb.nodesource.com/node_12.x buster InRelease
Hit:5 https://repository.salamek.cz/deb/pub all InRelease
Reading package lists...
Building dependency tree...
Reading state information...
117 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 packages were automatically installed and are no longer required:
python-bcrypt python-blinker python-fasteners python-idna python-jwt
python-lockfile python-monotonic python-nacl python-oauthlib python-openssl
python-paramiko python-pexpect python-ptyprocess python-pyasn1
python-urllib3
Use 'sudo apt autoremove' to remove them.
The following additional packages will be installed:
python3-dicttoxml python3-xmltodict
The following NEW packages will be installed:
python3-dicttoxml python3-huawei-lte-api python3-xmltodict
0 upgraded, 3 newly installed, 0 to remove and 117 not upgraded.
Need to get 44.6 kB of archives.
After this operation, 258 kB of additional disk space will be used.
Do you want to continue? [Y/n] Abort.
********************************************************
*             Installation terminée                    *
********************************************************

Pour le moment, le temps que le dev finissent, il faut aller en ssh et fait
sudo apt install -y python3-dicttoxml python3-xmltodict python3-dicttoxml python3-huawei-lte-api python3-xmltodict

Ok merci, je ne sais pas si je vais réussir a faire ça mais je vais essayer

normalement rien de compliquer, une fois connecter, tu as juste a mettre la commande et ce vas ce faire seul, ensuite tu lance l’installation des dépendance et voila ça devrais marcher

Hello,
Pas de changement de mon côté. Je t’envoie un log via mp…

on n’est entrain de tester de mon coté, vue qu’il n’a plus de jeedom test on test de mon coté, envoie t’es logs ici aussi comme sa on pourra tous voir si on n’a les meme défaut
merci