Comme annoncé, ce forum est passé en lecture seule au 1er janvier 2020. Désormais nous vous invitons à vous rendre sur notre nouvelle page communauté :
Image

A très bientôt !

[Plugin Tiers][Sujet Principal] Parrot Plants

Pour échanger sur les plugins classés en catégorie "Nature"
Avatar de l’utilisateur
lunarok
Actif
Messages : 6704
Inscription : 08 août 2014, 12:48
Localisation : Anjou

Re: [Sujet officiel] Plugin Flower Power Bluetooth

Message par lunarok » 03 nov. 2016, 21:36

Le marabout ou donner les logs utiles : celui des dependances

Envoyé de mon A0001 en utilisant Tapatalk
Mon Blog | Xiaomi Home
Pour contribuer au développement des plugins (don ou achat de matériel) : Paypal
Aides nous à t'aider : les logs, détails du soucis, la doc, recherche sur le forum ...
PS : pas de support par MP, je ne répondrais pas

losnono
Timide
Messages : 53
Inscription : 04 janv. 2015, 23:42

Re: [Sujet officiel] Plugin Flower Power Bluetooth

Message par losnono » 03 nov. 2016, 22:08

Voilà mes logs

Code : Tout sélectionner

Début de l'installation
Reading package lists...
Building dependency tree...
Reading state information...
bluetooth is already the newest version.
bluez is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
libbluetooth-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Version actuelle : v5.12.0
Ok, version suffisante
npm WARN deprecated minimatch@0.4.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
> bleno@0.1.14 install /var/www/html/plugins/flowerpowerbt/node/node-flower-power/node_modules/bleno
> node-gyp rebuild
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/5.12.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/var/www/html/plugins/flowerpowerbt/node/node-flower-power/node_modules/bleno/.node-gyp"
make: Entering directory '/var/www/html/plugins/flowerpowerbt/node/node-flower-power/node_modules/bleno/build'
CC(target) Release/obj.target/hci-ble/src/hci-ble.o
CC(target) Release/obj.target/hci-ble/src/utility.o
LINK(target) Release/hci-ble
CC(target) Release/obj.target/l2cap-ble/src/l2cap-ble.o
CC(target) Release/obj.target/l2cap-ble/src/utility.o
LINK(target) Release/l2cap-ble
make: Leaving directory '/var/www/html/plugins/flowerpowerbt/node/node-flower-power/node_modules/bleno/build'
> usb@1.2.0 install /var/www/html/plugins/flowerpowerbt/node/node-flower-power/node_modules/usb
> node-pre-gyp install --fallback-to-build
node-pre-gyp ERR! Tried to download: https://github.com/tessel/node-usb/releases/download/1.2.0/usb_bindings-v1.2.0-node-v47-linux-x64.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for usb@1.2.0 and node@5.12.0 (node-v47 ABI) (falling back to source compile with node-gyp)
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/5.12.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/var/www/html/plugins/flowerpowerbt/node/node-flower-power/node_modules/usb/.node-gyp"
make: Entering directory '/var/www/html/plugins/flowerpowerbt/node/node-flower-power/node_modules/usb/build'
make: *** No rule to make target '../.node-gyp/5.12.0/include/node/common.gypi', needed by 'Makefile'.  Stop.
make: Leaving directory '/var/www/html/plugins/flowerpowerbt/node/node-flower-power/node_modules/usb/build'
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack     at ChildProcess.onExit (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack     at emitTwo (events.js:100:13)
gyp ERR! stack     at ChildProcess.emit (events.js:185:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
gyp ERR! System Linux 3.16.0-4-amd64
gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/var/www/html/plugins/flowerpowerbt/node/node-flower-power/node_modules/usb/src/binding/usb_bindings.node" "--module_name=usb_bindings" "--module_path=/var/www/html/plugins/flowerpowerbt/node/node-flower-power/node_modules/usb/src/binding"
gyp ERR! cwd /var/www/html/plugins/flowerpowerbt/node/node-flower-power/node_modules/usb
gyp ERR! node -v v5.12.0
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/nodejs /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/var/www/html/plugins/flowerpowerbt/node/node-flower-power/node_modules/usb/src/binding/usb_bindings.node --module_name=usb_bindings --module_path=/var/www/html/plugins/flowerpowerbt/node/node-flower-power/node_modules/usb/src/binding' (1)
node-pre-gyp ERR! stack     at ChildProcess.<anonymous> (/var/www/html/plugins/flowerpowerbt/node/node-flower-power/node_modules/usb/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack     at emitTwo (events.js:100:13)
node-pre-gyp ERR! stack     at ChildProcess.emit (events.js:185:7)
node-pre-gyp ERR! stack     at maybeClose (internal/child_process.js:850:16)
node-pre-gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
node-pre-gyp ERR! System Linux 3.16.0-4-amd64
node-pre-gyp ERR! command "/usr/bin/nodejs" "/var/www/html/plugins/flowerpowerbt/node/node-flower-power/node_modules/usb/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /var/www/html/plugins/flowerpowerbt/node/node-flower-power/node_modules/usb
node-pre-gyp ERR! node -v v5.12.0
node-pre-gyp ERR! node-pre-gyp -v v0.6.30
node-pre-gyp ERR! not ok
Failed to execute '/usr/bin/nodejs /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/var/www/html/plugins/flowerpowerbt/node/node-flower-power/node_modules/usb/src/binding/usb_bindings.node --module_name=usb_bindings --module_path=/var/www/html/plugins/flowerpowerbt/node/node-flower-power/node_modules/usb/src/binding' (1)
npm WARN install:usb@1.2.0 usb@1.2.0 install: `node-pre-gyp install --fallback-to-build`
npm WARN install:usb@1.2.0 Exit status 1
> bluetooth-hci-socket@0.5.1 install /var/www/html/plugins/flowerpowerbt/node/node-flower-power/node_modules/bluetooth-hci-socket
> node-gyp rebuild
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/5.12.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/var/www/html/plugins/flowerpowerbt/node/node-flower-power/node_modules/bluetooth-hci-socket/.node-gyp"
make: Entering directory '/var/www/html/plugins/flowerpowerbt/node/node-flower-power/node_modules/bluetooth-hci-socket/build'
CXX(target) Release/obj.target/binding/src/BluetoothHciSocket.o
SOLINK_MODULE(target) Release/obj.target/binding.node
COPY Release/binding.node
make: Leaving directory '/var/www/html/plugins/flowerpowerbt/node/node-flower-power/node_modules/bluetooth-hci-socket/build'
flower-power@0.3.0 /var/www/html/plugins/flowerpowerbt/node/node-flower-power
+-- async@0.2.10
+-- bleno@0.1.14
| +-- bplist-parser@0.0.6
| `-- debug@0.7.4
+-- jshint@2.3.0
| +-- cli@0.4.5
| | `-- glob@7.1.1
| |   +-- fs.realpath@1.0.0
| |   +-- inflight@1.0.6
| |   | `-- wrappy@1.0.2
| |   +-- inherits@2.0.3
| |   +-- minimatch@3.0.3
| |   | `-- brace-expansion@1.1.6
| |   |   +-- balanced-match@0.4.2
| |   |   `-- concat-map@0.0.1
| |   +-- once@1.4.0
| |   `-- path-is-absolute@1.0.1
| +-- console-browserify@0.1.6
| +-- minimatch@0.4.0
| | +-- lru-cache@2.7.3
| | `-- sigmund@1.0.1
| +-- shelljs@0.1.4
| `-- underscore@1.4.4
`-- noble-device@1.4.1
`-- noble@1.7.0
+-- bluetooth-hci-socket@0.5.1
| `-- nan@2.4.0
`-- debug@2.2.0
`-- ms@0.7.1
npm WARN optional Skipping failed optional dependency /noble/xpc-connection:
npm WARN notsup Not compatible with your operating system or architecture: xpc-connection@0.1.4
npm WARN optional Skipping failed optional dependency /bleno/xpc-connection:
npm WARN notsup Not compatible with your operating system or architecture: xpc-connection@0.1.4
flower-power-cloud@1.2.0 /var/www/html/plugins/flowerpowerbt/node/node-flower-power-cloud
+-- async@1.5.2
+-- node-schedule@0.6.0
| +-- cron-parser@0.6.2
| `-- long-timeout@0.0.2
`-- request@2.78.0
+-- aws-sign2@0.6.0
+-- aws4@1.5.0
+-- caseless@0.11.0
+-- combined-stream@1.0.5
| `-- delayed-stream@1.0.0
+-- extend@3.0.0
+-- forever-agent@0.6.1
+-- form-data@2.1.1
| `-- asynckit@0.4.0
+-- har-validator@2.0.6
| +-- chalk@1.1.3
| | +-- ansi-styles@2.2.1
| | +-- escape-string-regexp@1.0.5
| | +-- has-ansi@2.0.0
| | | `-- ansi-regex@2.0.0
| | +-- strip-ansi@3.0.1
| | `-- supports-color@2.0.0
| +-- commander@2.9.0
| | `-- graceful-readlink@1.0.1
| +-- is-my-json-valid@2.15.0
| | +-- generate-function@2.0.0
| | +-- generate-object-property@1.2.0
| | | `-- is-property@1.0.2
| | +-- jsonpointer@4.0.0
| | `-- xtend@4.0.1
| `-- pinkie-promise@2.0.1
|   `-- pinkie@2.0.4
+-- hawk@3.1.3
| +-- boom@2.10.1
| +-- cryptiles@2.0.5
| +-- hoek@2.16.3
| `-- sntp@1.0.9
+-- http-signature@1.1.1
| +-- assert-plus@0.2.0
| +-- jsprim@1.3.1
| | +-- extsprintf@1.0.2
| | +-- json-schema@0.2.3
| | `-- verror@1.3.6
| `-- sshpk@1.10.1
|   +-- asn1@0.2.3
|   +-- assert-plus@1.0.0
|   +-- bcrypt-pbkdf@1.0.0
|   +-- dashdash@1.14.0
|   | `-- assert-plus@1.0.0
|   +-- ecc-jsbn@0.1.1
|   +-- getpass@0.1.6
|   | `-- assert-plus@1.0.0
|   +-- jodid25519@1.0.2
|   +-- jsbn@0.1.0
|   `-- tweetnacl@0.14.3
+-- is-typedarray@1.0.0
+-- isstream@0.1.2
+-- json-stringify-safe@5.0.1
+-- mime-types@2.1.12
| `-- mime-db@1.24.0
+-- node-uuid@1.4.7
+-- oauth-sign@0.8.2
+-- qs@6.3.0
+-- stringstream@0.0.5
+-- tough-cookie@2.3.2
| `-- punycode@1.4.1
`-- tunnel-agent@0.4.3
npm WARN flower-power-cloud@1.2.0 No license field.
> deasync@0.1.9 install /var/www/html/plugins/flowerpowerbt/node/node_modules/deasync
> node ./build.js
`linux-x64-node-5` exists; testing
Binary is fine; exiting
node-flower-bridge@1.5.2 /var/www/html/plugins/flowerpowerbt/node
+-- async@1.5.2
+-- buffer-equal@1.0.0
+-- chance@0.8.0
+-- cli-color@1.1.0
| +-- ansi-regex@2.0.0
| +-- d@0.1.1
| +-- es5-ext@0.10.12
| | `-- es6-symbol@3.1.0
| +-- es6-iterator@2.0.0
| +-- memoizee@0.3.10
| | +-- es6-weak-map@0.1.4
| | | +-- es6-iterator@0.1.3
| | | `-- es6-symbol@2.0.1
| | +-- event-emitter@0.3.4
| | +-- lru-queue@0.1.0
| | `-- next-tick@0.2.2
| `-- timers-ext@0.1.0
+-- deasync@0.1.9
| +-- bindings@1.2.1
| `-- nan@2.4.0
+-- nedb@1.8.0
| +-- async@0.2.10
| +-- binary-search-tree@0.2.5
| +-- localforage@1.4.3
| | `-- lie@3.0.2
| |   +-- es3ify@0.1.4
| |   | +-- esprima-fb@3001.1.0-dev-harmony-fb
| |   | +-- jstransform@3.0.0
| |   | | +-- base62@0.1.1
| |   | | `-- source-map@0.1.31
| |   | |   `-- amdefine@1.0.1
| |   | `-- through@2.3.8
| |   +-- immediate@3.0.6
| |   +-- inline-process-browser@1.0.0
| |   | +-- falafel@1.2.0
| |   | | +-- acorn@1.2.2
| |   | | +-- foreach@2.0.5
| |   | | +-- isarray@0.0.1
| |   | | `-- object-keys@1.0.11
| |   | `-- through2@0.6.5
| |   |   +-- readable-stream@1.0.34
| |   |   | +-- core-util-is@1.0.2
| |   |   | +-- inherits@2.0.3
| |   |   | `-- string_decoder@0.10.31
| |   |   `-- xtend@4.0.1
| |   `-- unreachable-branch-transform@0.3.0
| |     +-- esmangle-evaluator@1.0.1
| |     `-- recast@0.10.43
| |       +-- ast-types@0.8.15
| |       +-- esprima-fb@15001.1001.0-dev-harmony-fb
| |       +-- private@0.1.6
| |       `-- source-map@0.5.6
| +-- mkdirp@0.5.1
| | `-- minimist@0.0.8
| `-- underscore@1.4.4
`-- promise@7.1.1
`-- asap@2.0.5
Fin de l'installation

Avatar de l’utilisateur
lunarok
Actif
Messages : 6704
Inscription : 08 août 2014, 12:48
Localisation : Anjou

Re: [Sujet officiel] Plugin Flower Power Bluetooth

Message par lunarok » 03 nov. 2016, 22:22

il arrive pas à compiler une des dependances, c'est quoi comme plateforme ? tu as le plugin depuis quand ?
Mon Blog | Xiaomi Home
Pour contribuer au développement des plugins (don ou achat de matériel) : Paypal
Aides nous à t'aider : les logs, détails du soucis, la doc, recherche sur le forum ...
PS : pas de support par MP, je ne répondrais pas

losnono
Timide
Messages : 53
Inscription : 04 janv. 2015, 23:42

Re: [Sujet officiel] Plugin Flower Power Bluetooth

Message par losnono » 03 nov. 2016, 22:34

je suis avec une debian8 sur une VM ESXI j'ai le plugin depuis plusieurs mois sans pb.

stevenpwlk
Timide
Messages : 29
Inscription : 30 oct. 2016, 12:06

Re: [Sujet officiel] Plugin Flower Power Bluetooth

Message par stevenpwlk » 08 nov. 2016, 12:11

Bonjour,

J'ai un soucis avec mon plugin Flower Power bluetooth.
En effet, j'ai bien réussis à reconfigurer correctement mon plug in pour qu'il se connecte à la nouvelle API, mais maintenant je ne trouve pas le moyen d'activer le Bluetooth de mon RPI 3... Il n'y a rien dans la liste deroulante "Port clef bluetooth".

et voici les logs :

[ 'Flower power 2BFE', 'Flower power D659' ]
[38;5;0m[Nov 08 2016 12:02:05]: synchronize[39m
[Nov 08 2016 12:02:05]: Flower power 2BFE: Searching
[Nov 08 2016 12:02:35]: Flower power 2BFE: Not found
[Nov 08 2016 12:02:37]: Flower power 2BFE: Searching
[Nov 08 2016 12:03:07]: Flower power 2BFE: Not found
[Nov 08 2016 12:03:09]: Flower power 2BFE: Searching
[Nov 08 2016 12:03:39]: Flower power 2BFE: Not found
[38;5;0m[Nov 08 2016 12:03:39]: off[39m
[38;5;0m[Nov 08 2016 12:03:39]: synchronize[39m
[Nov 08 2016 12:03:39]: Flower power D659: Searching
[Nov 08 2016 12:04:09]: Flower power D659: Not found
[Nov 08 2016 12:04:11]: Flower power D659: Searching
[Nov 08 2016 12:04:41]: Flower power D659: Not found
[Nov 08 2016 12:04:43]: Flower power D659: Searching
[Nov 08 2016 12:05:13]: Flower power D659: Not found
[38;5;0m[Nov 08 2016 12:05:13]: off[39m

Quelqu'un saurait comment activer le blueooth sur RPI3 et qu'il soit reconnu par JEEDOM ?

Merci d'avance!!
Steven

Avatar de l’utilisateur
Zerat9w
Timide
Messages : 486
Inscription : 26 févr. 2015, 09:26
Localisation : Région Bordelaise

Re: [Sujet officiel] Plugin Flower Power Bluetooth

Message par Zerat9w » 08 nov. 2016, 14:20

Salut,

J'ai également le même pb que @losnono une dépendance qui semble merdé:

node-pre-gyp ERR! Tried to download: https://github.com/tessel/node-usb/rele ... arm.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for usb@1.2.0 and node@5.12.0 (node-v47 ABI) (falling back to source compile with node-gyp)

node-pre-gyp ERR! build error
node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/nodejs /usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/usr/share/nginx/www/jeedom/plugins/flowerpowerbt/node/node-flower-power/node_modules/usb/src/binding/usb_bindings.node --module_name=usb_bindings --module_path=/usr/share/nginx/www/jeedom/plugins/flowerpowerbt/node/node-flower-power/node_modules/usb/src/binding' (1)
node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/usr/share/nginx/www/jeedom/plugins/flowerpowerbt/node/node-flower-power/node_modules/usb/node_modules/node-pre-gyp/lib/util/compile.js:83:29)
node-pre-gyp ERR! stack at emitTwo (events.js:100:13)
node-pre-gyp ERR! stack at ChildProcess.emit (events.js:185:7)
node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:850:16)
node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:215:5)
node-pre-gyp ERR! System Linux 4.4.24-v7+
node-pre-gyp ERR! command "/usr/bin/nodejs" "/usr/share/nginx/www/jeedom/plugins/flowerpowerbt/node/node-flower-power/node_modules/usb/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build"
node-pre-gyp ERR! cwd /usr/share/nginx/www/jeedom/plugins/flowerpowerbt/node/node-flower-power/node_modules/usb
Jeedom

La rétention de l'information est une forme de constipation du savoir.

Documentation - Trucs & Astuces - Charte

mkkl
Timide
Messages : 11
Inscription : 08 mai 2015, 11:27

Re: [Sujet officiel] Plugin Flower Power Bluetooth

Message par mkkl » 08 nov. 2016, 15:35

stevenpwlk a écrit : Quelqu'un saurait comment activer le blueooth sur RPI3 et qu'il soit reconnu par JEEDOM ?

Salut

pour ma part j'ai utilisé cette page pour activer le bluetooth sur mon RPI3 en plus des GPIO du ZWave et du WIFI
http://www.fhemwiki.de/wiki/Raspberry_P ... _Bluetooth

Golgautier
Actif
Messages : 514
Inscription : 10 avr. 2015, 10:56

Re: [Sujet officiel] Plugin Flower Power Bluetooth

Message par Golgautier » 17 nov. 2016, 00:45

Bonjour à tous,

Devant l'abandon de l'API par Parrot (franchement inacceptable de leur part) je vais tester ce plugin en mode autonome. J'étais parti sur l'autre plugin car j'avais ma tablette qui mettait à jour les infos en BT via l'appli officielle quand j'étais en vacances, mais comme je peux plus rien récupérer sous Jeedom, on migre :)
Sinon, j'ai commandé un Mi Flora (le Flower Power de chez Xiaomi), a priori il n'y a pas de plugin, mais j'ai trouvé des dev de collecte d'info. Lunarok, t'as jamais pensé à l'intégrer dans ce plugin, ou en faire un autre dédié ? J'hésitais à me lancer dans le dev du plugin moi (si j'ai de bonnes notions de dev, j'ai pas du tout la connaissance du dev sous Jeedom par contre).

bonne soirée.
Jeedom en DIY
Plugins : Alarme, BBox TV, Energie, Google Agenda, Monitoring, Nabaztag, NetAtmo Station et Thermostat, Notify My Android, Pluie à 1h, PushBullet, Script, SMS, Surveillance Station, Vigilance Météo, Widget, Zwave
Liste du matériel

Golgautier
Actif
Messages : 514
Inscription : 10 avr. 2015, 10:56

Re: [Sujet officiel] Plugin Flower Power Bluetooth

Message par Golgautier » 17 nov. 2016, 01:19

Efficace ce plugin ! Bravo à Lunarok !

Par contre mes tuiles n'ont pas les infos collectées, j'ai la photo et les 2/3 symboles des données remontées. Je pense que ça va arriver lors de la prochaine remontée automatique. Je vérifierai demain :)

Question @Lunarok : il est écrit dans la doc que la clé Bluetooth doit être dédiée, tu penses qu'il est impossible de l'utiliser pour la collecte des infos du Mi Flora en // (avec une collecte par h également) ?
Jeedom en DIY
Plugins : Alarme, BBox TV, Energie, Google Agenda, Monitoring, Nabaztag, NetAtmo Station et Thermostat, Notify My Android, Pluie à 1h, PushBullet, Script, SMS, Surveillance Station, Vigilance Météo, Widget, Zwave
Liste du matériel

Regotz
Timide
Messages : 16
Inscription : 01 déc. 2015, 18:51

Re: [Sujet officiel] Plugin Flower Power Bluetooth

Message par Regotz » 17 nov. 2016, 12:30

Bonjour à tous

J'ai le probleme que le plugin ne recevoie les infos via bluetooth. Le clö est mis en oeuvre dans le plugin mais j' ai des errors dans le log node.js:

Error: Module version mismatch. Expected 47, got 46.
at Error (native)
at Object.Module._extensions..node (module.js:440:18)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/var/www/html/plugins/flowerpowerbt/node/node-flower-power/node_modules/bluetooth-hci-socket/lib/native.js:3:15)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
module.js:440
return process.dlopen(module, path._makeLong(filename));
^

Est-ce que quel'qun sait quoi faire? Merci beaucoup (et excuséz mon francais...)
Mathias

rene.jullien
Timide
Messages : 326
Inscription : 24 mai 2015, 17:31
Localisation : Alpes Maritimes

Re: [Sujet officiel] Plugin Flower Power Bluetooth

Message par rene.jullien » 18 nov. 2016, 21:46

Bonsoir,

J ai aussi un soucis de dependance NodeJS depuis une MAJ:

Error: Cannot find module 'cli-color'
at Function.Module._resolveFilename (module.js:337:15)
at Function.Module._load (module.js:287:25)
at Module.require (module.js:366:17)
at require (module.js:385:17)
at Object.<anonymous> (/usr/share/nginx/www/jeedom/plugins/flowerpowerbt/node/start.js:1:73)
at Module._compile (module.js:435:26)
at Object.Module._extensions..js (module.js:442:10)
at Module.load (module.js:356:32)
at Function.Module._load (module.js:311:12)
at Function.Module.runMain (module.js:467:10)

Log d install:
npm ERR! Linux 4.1.13-v7+
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
npm ERR! node v4.2.1
npm ERR! npm v2.14.7
npm ERR! path /usr/share/nginx/www/jeedom/plugins/flowerpowerbt/node/node_modules/promise/package.json
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open
npm ERR! enoent ENOENT: no such file or directory, open '/usr/share/nginx/www/jeedom/plugins/flowerpowerbt/node/node_modules/promise/package.json'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent
npm ERR! Please include the following file with any support request:
npm ERR! /usr/share/nginx/www/jeedom/plugins/flowerpowerbt/node/npm-debug.log
Fin de l'installation

Erreurs dans le fichier:
jeedom@Jeedom:/usr/share/nginx/www/jeedom/plugins/veolia_eau/core/class$ grep -i error /usr/share/nginx/www/jeedom/plugins/flowerpowerbt/node/npm-debug.log
123 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
124 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
125 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
126 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
127 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
128 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
129 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
151 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
152 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
153 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
154 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
155 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
156 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
157 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
249 silly install resolved readme: 'ERROR: No README data found!' },
249 silly install resolved readme: 'ERROR: No README data found!' },
249 silly install resolved readme: 'ERROR: No README data found!' },
249 silly install resolved readme: 'ERROR: No README data found!' },
249 silly install resolved readme: 'ERROR: No README data found!' },
249 silly install resolved readme: 'ERROR: No README data found!' },
249 silly install resolved readme: 'ERROR: No README data found!' } ]
979 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
980 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
981 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
982 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
983 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
984 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
985 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
986 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
987 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
988 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
989 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
990 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
991 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
1031 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
1032 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
1033 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
1034 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
1035 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
1036 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
1037 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
1038 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
1039 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
1040 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
1041 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
1042 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
1043 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
1093 silly install resolved readme: 'ERROR: No README data found!' } ]
1193 silly install resolved readme: 'ERROR: No README data found!' },
1193 silly install resolved readme: 'ERROR: No README data found!' },
1193 silly install resolved readme: 'ERROR: No README data found!' },
1193 silly install resolved readme: 'ERROR: No README data found!' },
1193 silly install resolved readme: 'ERROR: No README data found!' },
1193 silly install resolved readme: 'ERROR: No README data found!' } ]
1299 silly install resolved readme: 'ERROR: No README data found!' },
1299 silly install resolved readme: 'ERROR: No README data found!' } ]
1472 silly gunzTarPerm extractEntry doc/errors.md
1473 silly gunzTarPerm modified mode [ 'doc/errors.md', 436, 420 ]
1615 silly install resolved readme: 'ERROR: No README data found!',
1615 silly install resolved readme: 'ERROR: No README data found!' },
1615 silly install resolved readme: 'ERROR: No README data found!' },
1615 silly install resolved readme: 'ERROR: No README data found!' },
1615 silly install resolved readme: 'ERROR: No README data found!' } ]
2308 silly gunzTarPerm extractEntry error/custom.js
2309 silly gunzTarPerm modified mode [ 'error/custom.js', 438, 420 ]
2315 silly gunzTarPerm extractEntry error/index.js
2316 silly gunzTarPerm modified mode [ 'error/index.js', 438, 420 ]
2317 silly gunzTarPerm extractEntry error/is-error.js
2318 silly gunzTarPerm modified mode [ 'error/is-error.js', 438, 420 ]
2319 silly gunzTarPerm extractEntry error/valid-error.js
2320 silly gunzTarPerm modified mode [ 'error/valid-error.js', 438, 420 ]
2321 silly gunzTarPerm extractEntry error/#/index.js
2322 silly gunzTarPerm modified mode [ 'error/#/index.js', 438, 420 ]
2323 silly gunzTarPerm extractEntry error/#/throw.js
2324 silly gunzTarPerm modified mode [ 'error/#/throw.js', 438, 420 ]
2849 silly gunzTarPerm extractEntry test/error/custom.js
2850 silly gunzTarPerm modified mode [ 'test/error/custom.js', 438, 420 ]
2851 silly gunzTarPerm extractEntry test/error/is-error.js
2852 silly gunzTarPerm modified mode [ 'test/error/is-error.js', 438, 420 ]
2853 silly gunzTarPerm extractEntry test/error/valid-error.js
2854 silly gunzTarPerm modified mode [ 'test/error/valid-error.js', 438, 420 ]
2855 silly gunzTarPerm extractEntry test/error/#/throw.js
2856 silly gunzTarPerm modified mode [ 'test/error/#/throw.js', 438, 420 ]
.....
5514 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
5515 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
5546 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
5547 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
5548 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
5549 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
5550 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
5551 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
5552 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
5553 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
5554 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
5555 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
5659 silly install resolved readme: 'ERROR: No README data found!' },
5659 silly install resolved readme: 'ERROR: No README data found!',
5666 silly install resolved readme: 'ERROR: No README data found!' },
5666 silly install resolved readme: 'ERROR: No README data found!',
5685 silly install resolved readme: 'ERROR: No README data found!' },
5685 silly install resolved readme: 'ERROR: No README data found!' },
5685 silly install resolved readme: 'ERROR: No README data found!' },
5685 silly install resolved readme: 'ERROR: No README data found!' } ]
6154 silly install resolved readme: 'ERROR: No README data found!' },
6154 silly install resolved readme: 'ERROR: No README data found!' },
6154 silly install resolved readme: 'ERROR: No README data found!' },
6154 silly install resolved readme: 'ERROR: No README data found!' } ]
6168 silly install resolved readme: 'ERROR: No README data found!',
6168 silly install resolved readme: 'ERROR: No README data found!' } ]
6445 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
6446 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
6447 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
6448 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
6461 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
6462 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
6463 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
6464 info retry will retry, error on last attempt: Error: connect ETIMEDOUT 151.101.120.162:443
6525 silly install resolved readme: 'ERROR: No README data found!' },
6525 silly install resolved readme: 'ERROR: No README data found!' },
6525 silly install resolved readme: 'ERROR: No README data found!' },
6525 silly install resolved readme: 'ERROR: No README data found!' } ]
6538 silly install resolved readme: 'ERROR: No README data found!' },
6538 silly install resolved readme: 'ERROR: No README data found!' },
6538 silly install resolved readme: 'ERROR: No README data found!' },
6538 silly install resolved readme: 'ERROR: No README data found!' } ]
6879 silly install resolved readme: 'ERROR: No README data found!' } ]
6971 verbose stack Error: ENOENT: no such file or directory, open '/usr/share/nginx/www/jeedom/plugins/flowerpowerbt/node/node_modules/promise/package.json'
6971 verbose stack at Error (native)
6973 error Linux 4.1.13-v7+
6974 error argv "/usr/local/bin/node" "/usr/local/bin/npm" "install"
6975 error node v4.2.1
6976 error npm v2.14.7
6977 error path /usr/share/nginx/www/jeedom/plugins/flowerpowerbt/node/node_modules/promise/package.json
6978 error code ENOENT
6979 error errno -2
6980 error syscall open
6981 error enoent ENOENT: no such file or directory, open '/usr/share/nginx/www/jeedom/plugins/flowerpowerbt/node/node_modules/promise/package.json'
6981 error enoent This is most likely not a problem with npm itself
6981 error enoent and is related to npm not being able to find a file.

Merci pour votre aide, Rene

Deennoo
Timide
Messages : 450
Inscription : 05 nov. 2015, 13:51

Re: [Sujet officiel] Plugin Flower Power Bluetooth

Message par Deennoo » 20 nov. 2016, 20:49

avant "d'investir" le prix d'un pack d'eau pour le petit dans un plugin ;-) c'est un blague of course.

Je voulais savoir si le plugin est compatible avec un flower power mis a jour au mois de juillet :

"firmware revision = 2016-07-06_hawaii-2.0.2_hardware-config-MP"

Car avec les autre astuce que l'on trouve sur le net, la decouverte des infos s'arrete au niveau de la batterie, il n'y a plus rien aprés.
Dernière édition par Deennoo le 20 nov. 2016, 21:08, édité 2 fois.

Avatar de l’utilisateur
lunarok
Actif
Messages : 6704
Inscription : 08 août 2014, 12:48
Localisation : Anjou

Re: [Sujet officiel] Plugin Flower Power Bluetooth

Message par lunarok » 20 nov. 2016, 21:05

Normalement oui car l'API bluetooth a pas changer elle, les services sont les même.
Après bizarrement le changement de site/API a coïncider avec maj app et firmware

Envoyé de mon A0001 en utilisant Tapatalk
Mon Blog | Xiaomi Home
Pour contribuer au développement des plugins (don ou achat de matériel) : Paypal
Aides nous à t'aider : les logs, détails du soucis, la doc, recherche sur le forum ...
PS : pas de support par MP, je ne répondrais pas

Deennoo
Timide
Messages : 450
Inscription : 05 nov. 2015, 13:51

Re: [Sujet officiel] Plugin Flower Power Bluetooth

Message par Deennoo » 20 nov. 2016, 21:08

j'ai une solution : appliquer la correction du script test.js qui desactive 4 fonction callback : https://github.com/sandeepmistry/node-f ... /issues/18

Si le plug in utilise cette source, peut etre prevoir une variante si le plugin detecte un fw 2.0.2 et plus (avant le 2.0.2 je ne sais pas quelle version j'avais mais l'app node fonctionnait)

Golgautier
Actif
Messages : 514
Inscription : 10 avr. 2015, 10:56

Re: [Sujet officiel] Plugin Flower Power Bluetooth

Message par Golgautier » 20 nov. 2016, 22:29

A priori c'est bon car mes FP sont à jour et tout est nickel pour mes remontées via le plugin.

Edit: après check je suis en 2.0.3
Jeedom en DIY
Plugins : Alarme, BBox TV, Energie, Google Agenda, Monitoring, Nabaztag, NetAtmo Station et Thermostat, Notify My Android, Pluie à 1h, PushBullet, Script, SMS, Surveillance Station, Vigilance Météo, Widget, Zwave
Liste du matériel

vincecoco
Actif
Messages : 1181
Inscription : 12 oct. 2015, 09:31

Re: [Sujet officiel] Plugin Flower Power Bluetooth

Message par vincecoco » 05 déc. 2016, 11:09

Hello
J'ai installé le plugin, configuré correctement , il me récupère bien les infos, mais dans leslogs j'ai

Code : Tout sélectionner

POST/urlencoded /user/v3/authenticate
client_id:
client_secret:
username:
password:
grant_type: password
app_identifier:
{ headers:
{ 'Content-Type': 'application/x-www-form-urlencoded',
Authorization: '' },
body: 'client_id=&client_secret=&username=&password=&grant_type=password&app_identifier=',
url: 'https://api-flower-power-pot.parrot.com/user/v3/authenticate',
method: 'POST' }
CODE: 400
error: invalid_client
Par contre je n'ai pas l'impression que la connexion BT fonctionne.
En effet j'ai ajouté de l'au dans une plante, quelques heures apres toujours pas de changement.
Je n'ai eu le changement que quand j'ai resynchronisé via mont tel.

Merci

Avatar de l’utilisateur
lunarok
Actif
Messages : 6704
Inscription : 08 août 2014, 12:48
Localisation : Anjou

Re: [Sujet officiel] Plugin Flower Power Bluetooth

Message par lunarok » 05 déc. 2016, 11:43

error: invalid_client -> donc marche pas, cf la doc, la page de conf et les échanges ici sur le fil depuis septembre
Mon Blog | Xiaomi Home
Pour contribuer au développement des plugins (don ou achat de matériel) : Paypal
Aides nous à t'aider : les logs, détails du soucis, la doc, recherche sur le forum ...
PS : pas de support par MP, je ne répondrais pas

vincecoco
Actif
Messages : 1181
Inscription : 12 oct. 2015, 09:31

Re: [Sujet officiel] Plugin Flower Power Bluetooth

Message par vincecoco » 05 déc. 2016, 12:00

Merci lunarok
J'ai relu la Doc et la conf est rempli correctement, j'ai les remontées qui se font sur le dashboard malgré l'erreur.
Je vais reparcourir le forum.
Je vous tiens au courant.
À plus

vincecoco
Actif
Messages : 1181
Inscription : 12 oct. 2015, 09:31

Re: [Sujet officiel] Plugin Flower Power Bluetooth

Message par vincecoco » 06 déc. 2016, 22:43

Hello,
J'ai relu la doc, vérifié la conf et relu le forum.
J'ai un toujours ces erreurs dans le logs.
La clé à bien été généré à partir de l'URL donne.
Le mdp du compte est simple.
Si je synchronise nmon tel avec les flower parrot, jeedom se mets à jour (mais galère car mon tél ne les synchronise pas en arrière plan même en activant l'option)
Par contre je ne remarque pas de changement vianle bt (exemple ajout d'eau, pas de synchronm tel la valeur je change pas)
Merci

vincecoco
Actif
Messages : 1181
Inscription : 12 oct. 2015, 09:31

Re: [Sujet officiel] Plugin Flower Power Bluetooth

Message par vincecoco » 08 déc. 2016, 10:09

Hello,
@lunarok
Depuis la maj de ce matin, tout fonctionne correctement :)
Merci

Répondre

Revenir vers « [Catégorie] Nature »

Qui est en ligne ?

Utilisateurs parcourant ce forum : Aucun utilisateur inscrit et 5 invités