# Bluetooth : Xiaomi température/humidité

**URL:** <https://community.gladysassistant.com/t/bluetooth-xiaomi-temperature-humidite/5669>\
**Category:** Développement\
**Created:** [Novembre 8, 2020, 4:13 UTC](https://community.gladysassistant.com/t/bluetooth-xiaomi-temperature-humidite/5669 "2020-11-08T16:13:15Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hamtaro](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/hamtaro/32/2373_2.png) [@Hamtaro](https://community.gladysassistant.com/u/Hamtaro)\
**Post date:** [Novembre 8, 2020, 4:13 UTC](https://community.gladysassistant.com/t/bluetooth-xiaomi-temperature-humidite/5669/1 "2020-11-08T16:13:15Z")

</div>

Salut

Juste un topic pour travailler sur la reconnaissance Bluetooth de mon matériel Xiaomi.  
Je suis à disposition pour des logs (faut me rappeler les commandes…)

Il s’agit des moniteurs de température et humidité avec affichage.

[https://fr.aliexpress.com/item/4000373039226.html](https://fr.aliexpress.com/item/4000373039226.html)

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [Novembre 9, 2020, 8:51 UTC](https://community.gladysassistant.com/t/bluetooth-xiaomi-temperature-humidite/5669/2 "2020-11-09T08:51:56Z")

</div>

@AlexTrovato pour intégrer les périphériques Bluetooth comme ça on s’organise comment du coup à ton avis ?

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [Novembre 9, 2020, 9:34 UTC](https://community.gladysassistant.com/t/bluetooth-xiaomi-temperature-humidite/5669/3 "2020-11-09T09:34:32Z")

</div>

La difficulté du Bluetooth c’est que souvent chaque fabricant utilise ses propres “API”, rares sont ceux qui sont standards. Il faudrait pouvoir faire des tests sur ce device… mais je pense qu’il devrait y avoir un sous menu Bluetooth dans Xioami pour prendre en charge les spécificités de la marque.

---

<div class="post-metadata">

**Author:** ![Albenss](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/albenss/32/3916_2.png) [@Albenss](https://community.gladysassistant.com/u/Albenss)\
**Post date:** [Novembre 9, 2020, 10:14 UTC](https://community.gladysassistant.com/t/bluetooth-xiaomi-temperature-humidite/5669/4 "2020-11-09T10:14:56Z")

</div>

Bonjour à tous, je profite de ce post sur le Bluetooth pour demander qui a développé le service Bluetooth, je suis dans un cas ou le bluetooth de ma carte mère de mon NAS DIY n’est pas pris en charge par ce service (“Adress family not supported by protocol”), donc j’aimerai bien le contacter pour debug avec lui 😉

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [Novembre 9, 2020, 11:25 UTC](https://community.gladysassistant.com/t/bluetooth-xiaomi-temperature-humidite/5669/5 "2020-11-09T11:25:14Z")

</div>

Coucou, c’est moi le coupable. Nous utisons aujourd’hui une librairie nodejs qui ne supporte pas tous les connecteurs Bluetooth. Surtout si c’est du Windows. On peut continuer en privé afin de ne pas polluer cette discussion.

---

<div class="post-metadata">

**Author:** ![pierre-gilles](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/pierre-gilles/32/5886_2.png) [@pierre-gilles](https://community.gladysassistant.com/u/pierre-gilles)\
**Post date:** [Novembre 9, 2020, 12:29 UTC](https://community.gladysassistant.com/t/bluetooth-xiaomi-temperature-humidite/5669/6 "2020-11-09T12:29:04Z")

</div>

> [@AlexTrovato](#):
>
> On peut continuer en privé afin de ne pas polluer cette discussion.

Il n’y a pas de pollution, au contraire c’est toujours mieux quand c’est public ! ça permet à chacun de voir où en est l’avancée de chaque développement. Je vous encourage à rester public pour ces discussions 🙂

---

<div class="post-metadata">

**Author:** ![Hamtaro](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/hamtaro/32/2373_2.png) [@Hamtaro](https://community.gladysassistant.com/u/Hamtaro)\
**Post date:** [Novembre 9, 2020, 2:39 UTC](https://community.gladysassistant.com/t/bluetooth-xiaomi-temperature-humidite/5669/7 "2020-11-09T14:39:22Z")

</div>

Est-ce que tu continues en ce moment ?  
Tu as besoin de quelque chose ?

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [Novembre 9, 2020, 2:51 UTC](https://community.gladysassistant.com/t/bluetooth-xiaomi-temperature-humidite/5669/8 "2020-11-09T14:51:04Z")

</div>

@AlexTrovato il a besoin de journée qui dure 48H je penses 😃

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [Novembre 9, 2020, 6:05 UTC](https://community.gladysassistant.com/t/bluetooth-xiaomi-temperature-humidite/5669/9 "2020-11-09T18:05:52Z")

</div>

lol a qui le dis-tu ?!  
Désolé, mais j’étais en congés la semaine dernière, j’ai repris ce matin, donc ma dispo est limitée.

@Hamtaro

> Tu as besoin de quelque chose ?

Pour les appareils Xiaomi Bluetooth ? Tu en as ? Si oui, on peut se synchro pour que tu me donnes les info nécessaires pour l’intégration.  
Sinon je vais voir chez les concurrents s’ils intègrent déjà ces appareils.

---

<div class="post-metadata">

**Author:** ![Hamtaro](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/hamtaro/32/2373_2.png) [@Hamtaro](https://community.gladysassistant.com/u/Hamtaro)\
**Post date:** [Novembre 9, 2020, 7:24 UTC](https://community.gladysassistant.com/t/bluetooth-xiaomi-temperature-humidite/5669/10 "2020-11-09T19:24:29Z")

</div>

Comme je le disais plus haut, j’ai 4 moniteurs de température et humidité.  
Ils popent dans le matos bluetooth (avec deux identifiants chacuns, un sans carac et un avec juste la batterie) sauf 1 qui doit être hors de portée.

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [Novembre 9, 2020, 8:23 UTC](https://community.gladysassistant.com/t/bluetooth-xiaomi-temperature-humidite/5669/11 "2020-11-09T20:23:16Z")

</div>

Ok pardon, j’ai du lire de travers. Super on va organiser ça alors 🙂

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [Novembre 9, 2020, 9:58 UTC](https://community.gladysassistant.com/t/bluetooth-xiaomi-temperature-humidite/5669/12 "2020-11-09T21:58:14Z")

</div>

On a une super analyse ici.

> **[Xiaomi Mijia LYWSD03MMC : Récupérer les données du capteur sur un Raspberry...](https://www.fanjoe.be/?p=3911)**
>
> Introduction Depuis quelques temps, j’utilise différents types de capteurs Bluetooth pour effectuer des mesures de température, d’humidité, d’éclairement, de fertilité du sol, …

Je peux développer à l’aveugle, maintenant reste a voir comment tu peux tester ?

- soit je te fais un petit programme seul pour valider que ça fonctionne
- soit une version “beta” de cette nouvelle intégration

Mais on est pas dans du standard Bluetooth, plutôt dans du Xiaomi propriétaire.

---

<div class="post-metadata">

**Author:** ![Hamtaro](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/hamtaro/32/2373_2.png) [@Hamtaro](https://community.gladysassistant.com/u/Hamtaro)\
**Post date:** [Novembre 10, 2020, 6:44 UTC](https://community.gladysassistant.com/t/bluetooth-xiaomi-temperature-humidite/5669/13 "2020-11-10T06:44:45Z")

</div>

Comme tu le souhaites mais je t’avouerais qu’un petit prog à exécuter serait plus simple pour moi.  
J’ai rien d’installé sur mon Mac pour Gladys.

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [Novembre 15, 2020, 12:19 UTC](https://community.gladysassistant.com/t/bluetooth-xiaomi-temperature-humidite/5669/14 "2020-11-15T12:19:04Z")

</div>

Hey @Hamtaro,  
première version de ce petit outils.  
Pour info, il se utilise la base de code du service Bluetooth de Gladys (afin de conserver un maximum de compatibilité).

> **[GitHub - atrovato/gladys-bluetooth-analyzer](https://github.com/atrovato/gladys-bluetooth-analyzer)**
>
> Contribute to atrovato/gladys-bluetooth-analyzer development by creating an account on GitHub.

Il est bien sûr à compléter avec le temps.  
J’attends tes retours.

---

<div class="post-metadata">

**Author:** ![Reno](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/reno/32/5939_2.png) [@Reno](https://community.gladysassistant.com/u/Reno)\
**Post date:** [Novembre 15, 2020, 2:03 UTC](https://community.gladysassistant.com/t/bluetooth-xiaomi-temperature-humidite/5669/15 "2020-11-15T14:03:04Z")

</div>

Pour info, le service reconnaît les montres connectées Amazfit.

---

<div class="post-metadata">

**Author:** ![Hamtaro](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/hamtaro/32/2373_2.png) [@Hamtaro](https://community.gladysassistant.com/u/Hamtaro)\
**Post date:** [Novembre 16, 2020, 11:14 UTC](https://community.gladysassistant.com/t/bluetooth-xiaomi-temperature-humidite/5669/16 "2020-11-16T11:14:28Z")

</div>

Il fait quoi ce prog ?  
Parce que je l’ai lancé sur le pi avec l’utilisateur pi.  
J’ai installé toutes les dépendances et là le npm install mais avec ma connexion actuelle due au confinement et la saturation des antennes 4G Bouygues, ça rame dans la semoule…

Ca à l’air de faire une install complète de Gladys… Je pensais que ce serais un petit prog js pour récupérer les infos bluetooth.

PS : j’ai rien dit, le dl vient de finir et ça extrait ce qu’il veut.

---

<div class="post-metadata">

**Author:** ![Hamtaro](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/hamtaro/32/2373_2.png) [@Hamtaro](https://community.gladysassistant.com/u/Hamtaro)\
**Post date:** [Novembre 16, 2020, 11:23 UTC](https://community.gladysassistant.com/t/bluetooth-xiaomi-temperature-humidite/5669/17 "2020-11-16T11:23:30Z")

</div>

```bash
> usb@1.6.3 install /home/pi/gladys-bluetooth-analyzer/gladys/server/services/bluetooth/node_modules/usb
> prebuild-install --verbose || node-gyp rebuild

prebuild-install info begin Prebuild-install version 5.3.5
prebuild-install info looking for cached prebuild @ /home/pi/.npm/_prebuilds/e00ec3-usb-v1.6.3-node-v64-linux-arm.tar.gz
prebuild-install http request GET https://github.com/tessel/node-usb/releases/download/v1.6.3/usb-v1.6.3-node-v64-linux-arm.tar.gz
prebuild-install http 404 https://github.com/tessel/node-usb/releases/download/v1.6.3/usb-v1.6.3-node-v64-linux-arm.tar.gz
prebuild-install WARN install No prebuilt binaries found (target=10.21.0 runtime=node arch=arm libc= platform=linux)
make : on entre dans le répertoire « /home/pi/gladys-bluetooth-analyzer/gladys/server/services/bluetooth/node_modules/usb/build »
  CC(target) Release/obj.target/libusb/libusb/libusb/core.o
  CC(target) Release/obj.target/libusb/libusb/libusb/descriptor.o
  CC(target) Release/obj.target/libusb/libusb/libusb/hotplug.o
  CC(target) Release/obj.target/libusb/libusb/libusb/io.o
  CC(target) Release/obj.target/libusb/libusb/libusb/strerror.o
  CC(target) Release/obj.target/libusb/libusb/libusb/sync.o
  CC(target) Release/obj.target/libusb/libusb/libusb/os/poll_posix.o
  CC(target) Release/obj.target/libusb/libusb/libusb/os/threads_posix.o
  CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_usbfs.o
  CC(target) Release/obj.target/libusb/libusb/libusb/os/linux_udev.o
../libusb/libusb/os/linux_udev.c:40:10: fatal error: libudev.h: Aucun fichier ou dossier de ce type
 #include <libudev.h>
          ^ ~~~~~~~~~~
compilation terminée.
make: *** [libusb.target.mk:140: Release/obj.target/libusb/libusb/libusb/os/linux_udev.o] Erreur 1
make : on quitte le répertoire « /home/pi/gladys-bluetooth-analyzer/gladys/server/services/bluetooth/node_modules/usb/build »
gyp ERR! build error
gyp ERR! stack Error: `make` a échoué avec le code de sortie : 2
gyp ERR! stack at ChildProcess.onExit (/usr/share/node-gyp/lib/build.js:262:23)
gyp ERR! stack at ChildProcess.emit (events.js:198:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:12)
gyp ERR! System Linux 5.4.72-v7+
gyp ERR! command "/usr/bin/node" "/usr/bin/node-gyp" "rebuild"
gyp ERR! cwd /home/pi/gladys-bluetooth-analyzer/gladys/server/services/bluetooth/node_modules/usb
gyp ERR! node -v v10.21.0
gyp ERR! node-gyp -v v3.8.0
gyp ERR! not ok

> @abandonware/bluetooth-hci-socket@0.5.3-5 install /home/pi/gladys-bluetooth-analyzer/gladys/server/services/bluetooth/node_modules/@abandonware/bluetooth-hci-socket
> node-pre-gyp install --fallback-to-build

node-pre-gyp WARN Utilisation de request pour le téléchargement https de node-pre-gyp
node-pre-gyp WARN Tentative de téléchargement(404) : https://github.com/abandonware/node-bluetooth-hci-socket/releases/download/0.5.3-5/binding-0.5.3-5-node-v64-linux-arm.tar.gz
node-pre-gyp WARN Les binaires pré-compilés n'ont pas été trouvés pour @abandonware/bluetooth-hci-socket@0.5.3-5 et node@10.21.0 (ABI node-v64, glibc) (retombée en arrière sur la compilation de source avec node-gyp)
make : on entre dans le répertoire « /home/pi/gladys-bluetooth-analyzer/gladys/server/services/bluetooth/node_modules/@abandonware/bluetooth-hci-socket/build »
  CXX(target) Release/obj.target/binding/src/BluetoothHciSocket.o
In file included from ../src/BluetoothHciSocket.cpp:8:
../../../nan/nan.h: In function ‘void Nan::AsyncQueueWorker(Nan::AsyncWorker*)’:
../../../nan/nan.h:2294:62: warning: cast entre types de fonctions incompatibles de ‘void (*)(uv_work_t*)’ {aka ‘void (*)(uv_work_s*)’} vers ‘uv_after_work_cb’ {aka ‘void (*)(uv_work_s*, int)’} [-Wcast-function-type]
     , reinterpret_cast<uv_after_work_cb>(AsyncExecuteComplete)
                                                              ^
In file included from /usr/include/nodejs/src/node_buffer.h:25,
                 from ../src/BluetoothHciSocket.cpp:7:
../src/BluetoothHciSocket.cpp: At global scope:
/usr/include/nodejs/src/node.h:573:43: warning: cast entre types de fonctions incompatibles de ‘void (*)(Nan::ADDON_REGISTER_FUNCTION_ARGS_TYPE)’ {aka ‘void (*)(v8::Local<v8::Object>)’} vers ‘node::addon_register_func’ {aka ‘void (*)(v8::Local<v8::Object>, v8::Local<v8::Value>, void*)’} [-Wcast-function-type]
       (node::addon_register_func) (regfunc), \\
                                           ^
noble warning: état de l'adaptateur non autorisé, veuillez exécuter en tant que root ou avec sudo
               ou voir le README pour des informations sur l'exécution sans root/sudo :
               https://github.com/sandeepmistry/noble#running-on-linux
/home/pi/gladys-bluetooth-analyzer/index.js:23
    quit(colors.bold.red('Something went wrong'));
    ^
TypeError: quit n'est pas une fonction
    at EventEmitter.gladys.event.once (/home/pi/gladys-bluetooth-analyzer/index.js:23:5)
    at Object.onceWrapper (events.js:286:20)
    at EventEmitter.emit (events.js:198:13)
    at BluetoothManager.broadcastStatus (/home/pi/gladys-bluetooth-analyzer/gladys/server/services/bluetooth/lib/events/bluetooth.broadcastStatus.js:11:21)
    at BluetoothManager.stateChange (/home/pi/gladys-bluetooth-analyzer/gladys/server/services/bluetooth/lib/events/bluetooth.stateChange.js:21:8)
    at Noble.emit (events.js:198:13)
    at Noble.onStateChange (/home/pi/gladys-bluetooth-analyzer/gladys/server/services/bluetooth/node_modules/@abandonware/noble/lib/noble.js:87:8)
    at NobleBindings.emit (events.js:198:13)
    at NobleBindings.onStateChange (/home/pi/gladys-bluetooth-analyzer/gladys/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:121:8)
    at Hci.emit (events.js:203:15)
    at Hci.onSocketError (/home/pi/gladys-bluetooth-analyzer/gladys/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/hci.js:549:10)
    at BluetoothHciSocket.emit (events.js:198:13)
    at Hci.setEventMask (/home/pi/gladys-bluetooth-analyzer/gladys/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/hci.js:165:16)
    at Hci.pollIsDevUp (/home/pi/gladys-bluetooth-analyzer/gladys/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/hci.js:119:12)
    at Hci.init (/home/pi/gladys-bluetooth-analyzer/gladys/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/hci.js:103:10)
    at NobleBindings.init (/home/pi/gladys-bluetooth-analyzer/gladys/server/services/bluetooth/node_modules/@abandonware/noble/lib/hci-socket/bindings.js:78:13)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! gladys-bluetooth-analyzer@1.0.0 start: `node index.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the gladys-bluetooth-analyzer@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2020-11-16T11_21_34_668Z-debug.log
pi@gladys:~/gladys-bluetooth-analyzer $

logs :

```

0 info it worked if it ends with ok  
1 warn npm npm does not support Node.js v10.21.0  
2 warn npm You should probably upgrade to a newer version of node as we  
3 warn npm can’t make any promises that npm will work with this version.  
4 warn npm Supported releases of Node.js are the latest release of 4, 6, 7, 8, 9.  
5 warn npm You can find the latest version at [https://nodejs.org/](https://nodejs.org/)  
6 verbose cli [‹&nbsp;/usr/bin/node&nbsp;›, ‹&nbsp;/usr/bin/npm&nbsp;›, ‹&nbsp;start&nbsp;›]  
7 info using npm@5.8.0  
8 info using node@v10.21.0  
9 verbose run-script [‹&nbsp;prestart&nbsp;›, ‹&nbsp;start&nbsp;›, ‹&nbsp;poststart&nbsp;›]  
10 info lifecycle gladys-bluetooth-analyzer@1.0.0~prestart: gladys-bluetooth-analyzer@1.0.0  
11 info lifecycle gladys-bluetooth-analyzer@1.0.0~start: gladys-bluetooth-analyzer@1.0.0  
12 verbose lifecycle gladys-bluetooth-analyzer@1.0.0~start: unsafe-perm in lifecycle true  
13 verbose lifecycle gladys-bluetooth-analyzer@1.0.0~start: PATH: /usr/share/npm/node\_modules/npm-lifecycle/node-gyp-bin:/home/pi/gladys-bluetooth-analyzer/node\_modules/.bin:/usr/local/sbin:/usr/local/bi$  
14 verbose lifecycle gladys-bluetooth-analyzer@1.0.0~start: CWD: /home/pi/gladys-bluetooth-analyzer  
15 silly lifecycle gladys-bluetooth-analyzer@1.0.0~start: Args: [‹&nbsp;-c&nbsp;›, ‹&nbsp;node index.js&nbsp;›]  
16 silly lifecycle gladys-bluetooth-analyzer@1.0.0~start: Returned: code: 1 signal: null  
17 info lifecycle gladys-bluetooth-analyzer@1.0.0~start: Failed to exec start script  
18 verbose stack Error: gladys-bluetooth-analyzer@1.0.0 start: `node index.js`  
18 verbose stack Exit status 1  
18 verbose stack at EventEmitter. (/usr/share/npm/node\_modules/npm-lifecycle/index.js:283:16)  
18 verbose stack at EventEmitter.emit (events.js:198:13)  
18 verbose stack at ChildProcess. (/usr/share/npm/node\_modules/npm-lifecycle/lib/spawn.js:55:14)  
18 verbose stack at ChildProcess.emit (events.js:198:13)  
18 verbose stack at maybeClose (internal/child\_process.js:982:16)  
18 verbose stack at Process.ChildProcess.\_handle.onexit (internal/child\_process.js:259:5)  
19 verbose pkgid gladys-bluetooth-analyzer@1.0.0  
20 verbose cwd /home/pi/gladys-bluetooth-analyzer  
21 verbose Linux 5.4.72-v7+  
22 verbose argv «&nbsp;/usr/bin/node&nbsp;» «&nbsp;/usr/bin/npm&nbsp;» «&nbsp;start&nbsp;»  
23 verbose node v10.21.0  
24 verbose npm v5.8.0  
25 error code ELIFECYCLE  
26 error errno 1  
27 error gladys-bluetooth-analyzer@1.0.0 start: `node index.js`  
27 error Exit status 1  
28 error Failed at the gladys-bluetooth-analyzer@1.0.0 start script.  
28 error This is probably not a problem with npm. There is likely additional logging output above.  
29 verbose exit [1, true]

---

<div class="post-metadata">

**Author:** ![VonOx](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/vonox/32/10128_2.png) [@VonOx](https://community.gladysassistant.com/u/VonOx)\
**Post date:** [Novembre 16, 2020, 12:38 UTC](https://community.gladysassistant.com/t/bluetooth-xiaomi-temperature-humidite/5669/18 "2020-11-16T12:38:22Z")

</div>

> [@Hamtaro](#):
>
> J’ai installé toutes les dépendances et là le npm install mais avec ma connexion actuelle due au confinement et la saturation des antennes 4G Bouygues, ça rame dans la semoule…

 ![](https://gladys-assistant-community.b-cdn.net/uploads/default/original/2X/e/e3c1f74b58409947823a4d9855090aaf7f932107.jpeg)

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [Novembre 16, 2020, 5:15 UTC](https://community.gladysassistant.com/t/bluetooth-xiaomi-temperature-humidite/5669/19 "2020-11-16T17:15:37Z")

</div>

Lol ok bug première ligne… je retente ma chance…  
Mais sinon il faut donner les droits Bluetooth à NPM, chose que je vais ajouter dans le readme.

Le programme va servir à verifier que le code proposé va bien récupérer les données de ton appareil Bluetooth.  
Il copie une sous partie de Gladys car j’ai pas mal bossé sur le Bluetooth, et que maintenant que c’est fait, je recommence pas.

Je te dis quand c’est à jour.

---

<div class="post-metadata">

**Author:** ![AlexTrovato](https://gladys-assistant-community.b-cdn.net/user_avatar/community.gladysassistant.com/alextrovato/32/10705_2.png) [@AlexTrovato](https://community.gladysassistant.com/u/AlexTrovato)\
**Post date:** [Novembre 16, 2020, 6:11 UTC](https://community.gladysassistant.com/t/bluetooth-xiaomi-temperature-humidite/5669/21 "2020-11-16T18:11:47Z")

</div>

Super, tu peux retenter stp ? Il arrive que le Bluetooth “galère” a se connecter à l’appareil. Et il faut s’assurer que l’appareil ne soit pas déjà connecté à un autre…  
Tu peux voir qu’il a réussi à se connecter si dans les params du device tu as le manufacturer (ou le modèle).

[Page suivante](https://community.gladysassistant.com/t/bluetooth-xiaomi-temperature-humidite/5669.md?page=2)
