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] Rflink : passerelle RF433 multi-protocoles

Pour échanger sur les plugins classés en catégorie "Protocoles domotiques"
weevil
Timide
Messages : 66
Inscription : 15 sept. 2016, 13:26

Re: [Plugin Tiers][Sujet Principal] Rflink : passerelle RF433 multi-protocoles

Message par weevil » 14 juil. 2017, 08:18

Je poursuis mes investigations ... en mettant à jour npm et en modifiant la configuration (problèmes de droits lors de l'installation des modules) j'ai fini pas y arriver. Donc la version 5.0.0.Beta7 de serialport s'est installée ... donc les dépendances sont OK et sans erreurs dans Jeedom. Le problème c'est qu'il affiche toujours le même message d'erreur ...
En cherchant j'ai vu que certaines personnes disent qu'il s'agit d'un problème de syntaxe, readline devant s'écrire Readline. J'ai modifié Rflink.js. Du coup le message change :
<code>Fri Jul 14 2017 00:33:35 GMT+0200 (CEST) - Jeedom url : http://192.168.1.xx:80/jeedom/plugins/r ... ?apikey=xx gwAddress : /dev/ttyACM0
/var/www/jeedom/plugins/rflink/node/node_modules/serialport/lib/parsers/readline.js:15
options.delimiter = Buffer.from('
', 'utf8');
^
TypeError: Cannot assign to read only property 'delimiter' of
at new ReadlineParser (/var/www/jeedom/plugins/rflink/node/node_modules/serialport/lib/parsers/readline.js:15:23)
at Object.ReadlineParser [as Readline] (/var/www/jeedom/plugins/rflink/node/node_modules/serialport/lib/parsers/readline.js:9:12)
at launchGateway (/var/www/jeedom/plugins/rflink/node/rflink.js:87:23)
at Object.<anonymous> (/var/www/jeedom/plugins/rflink/node/rflink.js:167:1)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Function.Module.runMain (module.js:447:10)
at startup (node.js:148:18)
</code>

Donc il trouve bien Readline mais c'est maintenant dans cette fonction qu'il y a un poblème. J'aurais donc tendance à penser qu'il y a un problème plus général au niveau des dépendances et qu'on essaye de faire fonctionner ensemble des composants qui ne sont pas compatibles.

J'aurais vraiment besoin de l'aide de l'auteur de ce plugin pour comprendre ce qui ne va pas ...


Merci ;)
Jeedom sur Debian (NUC) + KNX + RTS + MySensor

weevil
Timide
Messages : 66
Inscription : 15 sept. 2016, 13:26

Re: [Plugin Tiers][Sujet Principal] Rflink : passerelle RF433 multi-protocoles

Message par weevil » 15 juil. 2017, 00:13

J'ai réussi à corriger le problème !
J'ai modifié les références à la version 5.0.0-beta7 dans le fichier package.json qui se trouve dans /var/www/jeedom/plugins/rflink/node
Je l'ai remplacé par la 4.0.7, une petite réinstallation des dépendances et ça fonctionne direct.
Il est tard, si vous avez le même problème et que vous avez besoin de plus d'info faites-moi signe.
Jeedom sur Debian (NUC) + KNX + RTS + MySensor

Avatar de l’utilisateur
Kelly97129
Timide
Messages : 61
Inscription : 27 juil. 2015, 23:13

Re: [Plugin Tiers][Sujet Principal] Rflink : passerelle RF433 multi-protocoles

Message par Kelly97129 » 15 juil. 2017, 16:00

weevil a écrit :
15 juil. 2017, 00:13
J'ai réussi à corriger le problème !
J'ai modifié les références à la version 5.0.0-beta7 dans le fichier package.json qui se trouve dans /var/www/jeedom/plugins/rflink/node
Je l'ai remplacé par la 4.0.7, une petite réinstallation des dépendances et ça fonctionne direct.
Il est tard, si vous avez le même problème et que vous avez besoin de plus d'info faites-moi signe.
bonjour
excuse-moi je n'est pas le fichier package.json ?
je ne sais d'ou vient l'erreur ?

Code : Tout sélectionner

Début de l'installation
Version actuelle : v5.12.0
Ok, version suffisante
Reading package lists...
Building dependency tree...
Reading state information...
avrdude is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
> serialport@5.0.0-beta7 install /var/www/html/plugins/rflink/node/node_modules/serialport
> node-pre-gyp install --fallback-to-build
node-pre-gyp ERR! Tried to download(404): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/5.0.0-beta7/serialport-v5.0.0-beta7-node-v47-linux-arm.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for serialport@5.0.0-beta7 and node@5.12.0 (node-v47 ABI) (falling back to source compile with node-gyp)
make: Entering directory '/var/www/html/plugins/rflink/node/node_modules/serialport/build'
CXX(target) Release/obj.target/serialport/src/serialport.o
CXX(target) Release/obj.target/serialport/src/serialport_unix.o
CXX(target) Release/obj.target/serialport/src/poller.o
COPY Release/serialport.node
make: Leaving directory '/var/www/html/plugins/rflink/node/node_modules/serialport/build'
/var/www/html/plugins/rflink/node
`-- serialport@5.0.0-beta7
+-- bindings@1.2.1
+-- commander@2.11.0
+-- debug@2.6.8
| `-- ms@2.0.0
+-- nan@2.6.2
+-- node-pre-gyp@0.6.36
| +-- mkdirp@0.5.1
| | `-- minimist@0.0.8
| +-- nopt@4.0.1
| | +-- abbrev@1.1.0
| | `-- osenv@0.1.4
| |   +-- os-homedir@1.0.2
| |   `-- os-tmpdir@1.0.2
| +-- npmlog@4.1.2
| | +-- are-we-there-yet@1.1.4
| | | `-- delegates@1.0.0
| | +-- console-control-strings@1.1.0
| | +-- gauge@2.7.4
| | | +-- aproba@1.1.2
| | | +-- has-unicode@2.0.1
| | | +-- object-assign@4.1.1
| | | +-- signal-exit@3.0.2
| | | +-- string-width@1.0.2
| | | | +-- code-point-at@1.1.0
| | | | `-- is-fullwidth-code-point@1.0.0
| | | |   `-- number-is-nan@1.0.1
| | | +-- strip-ansi@3.0.1
| | | | `-- ansi-regex@2.1.1
| | | `-- wide-align@1.1.2
| | `-- set-blocking@2.0.0
| +-- rc@1.2.1
| | +-- deep-extend@0.4.2
| | +-- ini@1.3.4
| | +-- minimist@1.2.0
| | `-- strip-json-comments@2.0.1
| +-- request@2.81.0
| | +-- aws-sign2@0.6.0
| | +-- aws4@1.6.0
| | +-- caseless@0.12.0
| | +-- combined-stream@1.0.5
| | | `-- delayed-stream@1.0.0
| | +-- extend@3.0.1
| | +-- forever-agent@0.6.1
| | +-- form-data@2.1.4
| | | `-- asynckit@0.4.0
| | +-- har-validator@4.2.1
| | | +-- ajv@4.11.8
| | | | +-- co@4.6.0
| | | | `-- json-stable-stringify@1.0.1
| | | |   `-- jsonify@0.0.0
| | | `-- har-schema@1.0.5
| | +-- 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.4.0
| | | | +-- assert-plus@1.0.0
| | | | +-- extsprintf@1.0.2
| | | | +-- json-schema@0.2.3
| | | | `-- verror@1.3.6
| | | `-- sshpk@1.13.1
| | |   +-- asn1@0.2.3
| | |   +-- assert-plus@1.0.0
| | |   +-- bcrypt-pbkdf@1.0.1
| | |   +-- dashdash@1.14.1
| | |   | `-- assert-plus@1.0.0
| | |   +-- ecc-jsbn@0.1.1
| | |   +-- getpass@0.1.7
| | |   | `-- assert-plus@1.0.0
| | |   +-- jsbn@0.1.1
| | |   `-- tweetnacl@0.14.5
| | +-- is-typedarray@1.0.0
| | +-- isstream@0.1.2
| | +-- json-stringify-safe@5.0.1
| | +-- mime-types@2.1.15
| | | `-- mime-db@1.27.0
| | +-- oauth-sign@0.8.2
| | +-- performance-now@0.2.0
| | +-- qs@6.4.0
| | +-- stringstream@0.0.5
| | +-- tough-cookie@2.3.2
| | | `-- punycode@1.4.1
| | +-- tunnel-agent@0.6.0
| | `-- uuid@3.1.0
| +-- rimraf@2.6.1
| | `-- glob@7.1.2
| |   +-- fs.realpath@1.0.0
| |   +-- inflight@1.0.6
| |   +-- minimatch@3.0.4
| |   | `-- brace-expansion@1.1.8
| |   |   +-- balanced-match@1.0.0
| |   |   `-- concat-map@0.0.1
| |   `-- path-is-absolute@1.0.1
| +-- semver@5.3.0
| +-- tar@2.2.1
| | +-- block-stream@0.0.9
| | +-- fstream@1.0.11
| | | `-- graceful-fs@4.1.11
| | `-- inherits@2.0.3
| `-- tar-pack@3.4.0
|   +-- fstream-ignore@1.0.5
|   +-- once@1.4.0
|   | `-- wrappy@1.0.2
|   +-- readable-stream@2.3.3
|   | +-- core-util-is@1.0.2
|   | +-- isarray@1.0.0
|   | +-- process-nextick-args@1.0.7
|   | +-- string_decoder@1.0.3
|   | `-- util-deprecate@1.0.2
|   `-- uid-number@0.0.6
`-- safe-buffer@5.1.1
npm WARN enoent ENOENT: no such file or directory, open '/var/www/html/plugins/rflink/node/package.json'
npm WARN node No description
npm WARN node No repository field.
npm WARN node No README data
npm WARN node No license field.
> serialport@5.0.0-beta7 install /var/www/html/plugins/rflink/node/node_modules/serialport
> node-pre-gyp install --fallback-to-build
node-pre-gyp ERR! Tried to download(404): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/5.0.0-beta7/serialport-v5.0.0-beta7-node-v47-linux-arm.tar.gz
node-pre-gyp ERR! Pre-built binaries not found for serialport@5.0.0-beta7 and node@5.12.0 (node-v47 ABI) (falling back to source compile with node-gyp)
make: Entering directory '/var/www/html/plugins/rflink/node/node_modules/serialport/build'
CXX(target) Release/obj.target/serialport/src/serialport.o
CXX(target) Release/obj.target/serialport/src/serialport_unix.o
CXX(target) Release/obj.target/serialport/src/poller.o
SOLINK_MODULE(target) Release/obj.target/serialport.node
COPY Release/serialport.node
make: Leaving directory '/var/www/html/plugins/rflink/node/node_modules/serialport/build'
/var/www/html/plugins/rflink/node
+-- request@2.81.0
| +-- aws-sign2@0.6.0
| +-- aws4@1.6.0
| +-- caseless@0.12.0
| +-- combined-stream@1.0.5
| | `-- delayed-stream@1.0.0
| +-- extend@3.0.1
| +-- forever-agent@0.6.1
| +-- form-data@2.1.4
| | `-- asynckit@0.4.0
| +-- har-validator@4.2.1
| | +-- ajv@4.11.8
| | | +-- co@4.6.0
| | | `-- json-stable-stringify@1.0.1
| | |   `-- jsonify@0.0.0
| | `-- har-schema@1.0.5
| +-- 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.4.0
| | | +-- assert-plus@1.0.0
| | | +-- extsprintf@1.0.2
| | | +-- json-schema@0.2.3
| | | `-- verror@1.3.6
| | `-- sshpk@1.13.1
| |   +-- asn1@0.2.3
| |   +-- assert-plus@1.0.0
| |   +-- bcrypt-pbkdf@1.0.1
| |   +-- dashdash@1.14.1
| |   | `-- assert-plus@1.0.0
| |   +-- ecc-jsbn@0.1.1
| |   +-- getpass@0.1.7
| |   | `-- assert-plus@1.0.0
| |   +-- jsbn@0.1.1
| |   `-- tweetnacl@0.14.5
| +-- is-typedarray@1.0.0
| +-- isstream@0.1.2
| +-- json-stringify-safe@5.0.1
| +-- mime-types@2.1.15
| | `-- mime-db@1.27.0
| +-- oauth-sign@0.8.2
| +-- performance-now@0.2.0
| +-- qs@6.4.0
| +-- safe-buffer@5.1.1
| +-- stringstream@0.0.5
| +-- tough-cookie@2.3.2
| | `-- punycode@1.4.1
| +-- tunnel-agent@0.6.0
| `-- uuid@3.1.0
`-- serialport@5.0.0-beta7
npm WARN enoent ENOENT: no such file or directory, open '/var/www/html/plugins/rflink/node/package.json'
npm WARN node No description
npm WARN node No repository field.
npm WARN node No README data
npm WARN node No license field.
npm WARN In serialport@5.0.0-beta7 replacing bundled version of abbrev with abbrev@1.1.0
npm WARN In serialport@5.0.0-beta7 replacing bundled version of ajv with ajv@4.11.8
npm WARN In serialport@5.0.0-beta7 replacing bundled version of ansi-regex with ansi-regex@2.1.1
npm WARN In serialport@5.0.0-beta7 replacing bundled version of aproba with aproba@1.1.2
npm WARN In serialport@5.0.0-beta7 replacing bundled version of are-we-there-yet with are-we-there-yet@1.1.4
npm WARN In serialport@5.0.0-beta7 replacing bundled version of asn1 with asn1@0.2.3
npm WARN In serialport@5.0.0-beta7 replacing bundled version of assert-plus with assert-plus@0.2.0
npm WARN In serialport@5.0.0-beta7 replacing bundled version of asynckit with asynckit@0.4.0
npm WARN In serialport@5.0.0-beta7 replacing bundled version of aws-sign2 with aws-sign2@0.6.0
npm WARN In serialport@5.0.0-beta7 replacing bundled version of aws4 with aws4@1.6.0
npm WARN In serialport@5.0.0-beta7 replacing bundled version of balanced-match with balanced-match@1.0.0
npm WARN In serialport@5.0.0-beta7 replacing bundled version of bcrypt-pbkdf with bcrypt-pbkdf@1.0.1
npm WARN In serialport@5.0.0-beta7 replacing bundled version of block-stream with block-stream@0.0.9
npm WARN In serialport@5.0.0-beta7 replacing bundled version of boom with boom@2.10.1
npm WARN In serialport@5.0.0-beta7 replacing bundled version of brace-expansion with brace-expansion@1.1.8
npm WARN In serialport@5.0.0-beta7 replacing bundled version of caseless with caseless@0.12.0
npm WARN In serialport@5.0.0-beta7 replacing bundled version of co with co@4.6.0
npm WARN In serialport@5.0.0-beta7 replacing bundled version of code-point-at with code-point-at@1.1.0
npm WARN In serialport@5.0.0-beta7 replacing bundled version of combined-stream with combined-stream@1.0.5
npm WARN In serialport@5.0.0-beta7 replacing bundled version of concat-map with concat-map@0.0.1
npm WARN In serialport@5.0.0-beta7 replacing bundled version of console-control-strings with console-control-strings@1.1.0
npm WARN In serialport@5.0.0-beta7 replacing bundled version of core-util-is with core-util-is@1.0.2
npm WARN In serialport@5.0.0-beta7 replacing bundled version of cryptiles with cryptiles@2.0.5
npm WARN In serialport@5.0.0-beta7 replacing bundled version of assert-plus with assert-plus@1.0.0
npm WARN In serialport@5.0.0-beta7 replacing bundled version of debug with debug@2.6.8
npm WARN In serialport@5.0.0-beta7 replacing bundled version of deep-extend with deep-extend@0.4.2
npm WARN In serialport@5.0.0-beta7 replacing bundled version of delayed-stream with delayed-stream@1.0.0
npm WARN In serialport@5.0.0-beta7 replacing bundled version of delegates with delegates@1.0.0
npm WARN In serialport@5.0.0-beta7 replacing bundled version of ecc-jsbn with ecc-jsbn@0.1.1
npm WARN In serialport@5.0.0-beta7 replacing bundled version of extend with extend@3.0.1
npm WARN In serialport@5.0.0-beta7 replacing bundled version of extsprintf with extsprintf@1.0.2
npm WARN In serialport@5.0.0-beta7 replacing bundled version of forever-agent with forever-agent@0.6.1
npm WARN In serialport@5.0.0-beta7 replacing bundled version of form-data with form-data@2.1.4
npm WARN In serialport@5.0.0-beta7 replacing bundled version of fs.realpath with fs.realpath@1.0.0
npm WARN In serialport@5.0.0-beta7 replacing bundled version of fstream with fstream@1.0.11
npm WARN In serialport@5.0.0-beta7 replacing bundled version of fstream-ignore with fstream-ignore@1.0.5
npm WARN In serialport@5.0.0-beta7 replacing bundled version of gauge with gauge@2.7.4
npm WARN In serialport@5.0.0-beta7 replacing bundled version of assert-plus with assert-plus@1.0.0
npm WARN In serialport@5.0.0-beta7 replacing bundled version of glob with glob@7.1.2
npm WARN In serialport@5.0.0-beta7 replacing bundled version of graceful-fs with graceful-fs@4.1.11
npm WARN In serialport@5.0.0-beta7 replacing bundled version of har-schema with har-schema@1.0.5
npm WARN In serialport@5.0.0-beta7 replacing bundled version of har-validator with har-validator@4.2.1
npm WARN In serialport@5.0.0-beta7 replacing bundled version of has-unicode with has-unicode@2.0.1
npm WARN In serialport@5.0.0-beta7 replacing bundled version of hawk with hawk@3.1.3
npm WARN In serialport@5.0.0-beta7 replacing bundled version of hoek with hoek@2.16.3
npm WARN In serialport@5.0.0-beta7 replacing bundled version of http-signature with http-signature@1.1.1
npm WARN In serialport@5.0.0-beta7 replacing bundled version of inflight with inflight@1.0.6
npm WARN In serialport@5.0.0-beta7 replacing bundled version of inherits with inherits@2.0.3
npm WARN In serialport@5.0.0-beta7 replacing bundled version of ini with ini@1.3.4
npm WARN In serialport@5.0.0-beta7 replacing bundled version of is-fullwidth-code-point with is-fullwidth-code-point@1.0.0
npm WARN In serialport@5.0.0-beta7 replacing bundled version of is-typedarray with is-typedarray@1.0.0
npm WARN In serialport@5.0.0-beta7 replacing bundled version of isarray with isarray@1.0.0
npm WARN In serialport@5.0.0-beta7 replacing bundled version of isstream with isstream@0.1.2
npm WARN In serialport@5.0.0-beta7 replacing bundled version of jsbn with jsbn@0.1.1
npm WARN In serialport@5.0.0-beta7 replacing bundled version of json-schema with json-schema@0.2.3
npm WARN In serialport@5.0.0-beta7 replacing bundled version of json-stable-stringify with json-stable-stringify@1.0.1
npm WARN In serialport@5.0.0-beta7 replacing bundled version of json-stringify-safe with json-stringify-safe@5.0.1
npm WARN In serialport@5.0.0-beta7 replacing bundled version of jsonify with jsonify@0.0.0
npm WARN In serialport@5.0.0-beta7 replacing bundled version of assert-plus with assert-plus@1.0.0
npm WARN In serialport@5.0.0-beta7 replacing bundled version of mime-db with mime-db@1.27.0
npm WARN In serialport@5.0.0-beta7 replacing bundled version of mime-types with mime-types@2.1.15
npm WARN In serialport@5.0.0-beta7 replacing bundled version of minimatch with minimatch@3.0.4
npm WARN In serialport@5.0.0-beta7 replacing bundled version of minimist with minimist@0.0.8
npm WARN In serialport@5.0.0-beta7 replacing bundled version of mkdirp with mkdirp@0.5.1
npm WARN In serialport@5.0.0-beta7 replacing bundled version of ms with ms@2.0.0
npm WARN In serialport@5.0.0-beta7 replacing bundled version of node-pre-gyp with node-pre-gyp@0.6.36
npm WARN In serialport@5.0.0-beta7 replacing bundled version of nopt with nopt@4.0.1
npm WARN In serialport@5.0.0-beta7 replacing bundled version of npmlog with npmlog@4.1.2
npm WARN In serialport@5.0.0-beta7 replacing bundled version of number-is-nan with number-is-nan@1.0.1
npm WARN In serialport@5.0.0-beta7 replacing bundled version of oauth-sign with oauth-sign@0.8.2
npm WARN In serialport@5.0.0-beta7 replacing bundled version of object-assign with object-assign@4.1.1
npm WARN In serialport@5.0.0-beta7 replacing bundled version of once with once@1.4.0
npm WARN In serialport@5.0.0-beta7 replacing bundled version of os-homedir with os-homedir@1.0.2
npm WARN In serialport@5.0.0-beta7 replacing bundled version of os-tmpdir with os-tmpdir@1.0.2
npm WARN In serialport@5.0.0-beta7 replacing bundled version of osenv with osenv@0.1.4
npm WARN In serialport@5.0.0-beta7 replacing bundled version of path-is-absolute with path-is-absolute@1.0.1
npm WARN In serialport@5.0.0-beta7 replacing bundled version of performance-now with performance-now@0.2.0
npm WARN In serialport@5.0.0-beta7 replacing bundled version of process-nextick-args with process-nextick-args@1.0.7
npm WARN In serialport@5.0.0-beta7 replacing bundled version of punycode with punycode@1.4.1
npm WARN In serialport@5.0.0-beta7 replacing bundled version of qs with qs@6.4.0
npm WARN In serialport@5.0.0-beta7 replacing bundled version of minimist with minimist@1.2.0
npm WARN In serialport@5.0.0-beta7 replacing bundled version of readable-stream with readable-stream@2.3.3
npm WARN In serialport@5.0.0-beta7 replacing bundled version of request with request@2.81.0
npm WARN In serialport@5.0.0-beta7 replacing bundled version of rimraf with rimraf@2.6.1
npm WARN In serialport@5.0.0-beta7 replacing bundled version of safe-buffer with safe-buffer@5.1.1
npm WARN In serialport@5.0.0-beta7 replacing bundled version of semver with semver@5.3.0
npm WARN In serialport@5.0.0-beta7 replacing bundled version of set-blocking with set-blocking@2.0.0
npm WARN In serialport@5.0.0-beta7 replacing bundled version of signal-exit with signal-exit@3.0.2
npm WARN In serialport@5.0.0-beta7 replacing bundled version of sntp with sntp@1.0.9
npm WARN In serialport@5.0.0-beta7 replacing bundled version of assert-plus with assert-plus@1.0.0
npm WARN In serialport@5.0.0-beta7 replacing bundled version of string-width with string-width@1.0.2
npm WARN In serialport@5.0.0-beta7 replacing bundled version of string_decoder with string_decoder@1.0.3
npm WARN In serialport@5.0.0-beta7 replacing bundled version of stringstream with stringstream@0.0.5
npm WARN In serialport@5.0.0-beta7 replacing bundled version of strip-ansi with strip-ansi@3.0.1
npm WARN In serialport@5.0.0-beta7 replacing bundled version of strip-json-comments with strip-json-comments@2.0.1
npm WARN In serialport@5.0.0-beta7 replacing bundled version of tar with tar@2.2.1
npm WARN In serialport@5.0.0-beta7 replacing bundled version of tar-pack with tar-pack@3.4.0
npm WARN In serialport@5.0.0-beta7 replacing bundled version of tough-cookie with tough-cookie@2.3.2
npm WARN In serialport@5.0.0-beta7 replacing bundled version of tunnel-agent with tunnel-agent@0.6.0
npm WARN In serialport@5.0.0-beta7 replacing bundled version of tweetnacl with tweetnacl@0.14.5
npm WARN In serialport@5.0.0-beta7 replacing bundled version of uid-number with uid-number@0.0.6
npm WARN In serialport@5.0.0-beta7 replacing bundled version of util-deprecate with util-deprecate@1.0.2
npm WARN In serialport@5.0.0-beta7 replacing bundled version of uuid with uuid@3.1.0
npm WARN In serialport@5.0.0-beta7 replacing bundled version of verror with verror@1.3.6
npm WARN In serialport@5.0.0-beta7 replacing bundled version of wide-align with wide-align@1.1.2
npm WARN In serialport@5.0.0-beta7 replacing bundled version of wrappy with wrappy@1.0.2
npm WARN In serialport@5.0.0-beta7 replacing bundled version of dashdash with dashdash@1.14.1
npm WARN In serialport@5.0.0-beta7 replacing bundled version of getpass with getpass@0.1.7
npm WARN In serialport@5.0.0-beta7 replacing bundled version of jsprim with jsprim@1.4.0
npm WARN In serialport@5.0.0-beta7 replacing bundled version of sshpk with sshpk@1.13.1
npm WARN In serialport@5.0.0-beta7 replacing bundled version of rc with rc@1.2.1
>>>Raspberry pi 3 & Zéro
DYI : Jeedom-Rflink-Modules Fibaro-MySensors Gateway-Xiaomi Gateway V3 et V2-Detecteurs & Sondes Temp/Hum Xiaomi-Camera Ip Xiaomi & Wanscam-Ledstrip Yeelight >>>

Bêta-Testeur/Helpers

weevil
Timide
Messages : 66
Inscription : 15 sept. 2016, 13:26

Re: [Plugin Tiers][Sujet Principal] Rflink : passerelle RF433 multi-protocoles

Message par weevil » 15 juil. 2017, 17:09

D'après ta log le répertoire de ton plugin est /var/www/html/plugins/rflink/node
Regardes dans ce répertoire ...
Jeedom sur Debian (NUC) + KNX + RTS + MySensor

Avatar de l’utilisateur
Kelly97129
Timide
Messages : 61
Inscription : 27 juil. 2015, 23:13

Re: [Plugin Tiers][Sujet Principal] Rflink : passerelle RF433 multi-protocoles

Message par Kelly97129 » 15 juil. 2017, 18:17

weevil a écrit :
15 juil. 2017, 17:09
D'après ta log le répertoire de ton plugin est /var/www/html/plugins/rflink/node
Regardes dans ce répertoire ...
je sais cela n'est pas le soucis je n'ai pas ce fichier dans mon repertoire

Code : Tout sélectionner

npm WARN enoent ENOENT: no such file or directory, open '/var/www/html/plugins/rflink/node/package.json'

Code : Tout sélectionner

root@Jeedom:/var/www/html/plugins/rflink/node# ls -l
total 16
drwxr-xr-x 56 www-data root     4096 juil. 15 15:54 node_modules
drwxrwxr-x 10 www-data www-data 4096 juin   3 03:46 node-serialport
-rw-r--r--  1 www-data www-data 5354 juil. 14 23:21 rflink.js
root@Jeedom:/var/www/html/plugins/rflink/node#
>>>Raspberry pi 3 & Zéro
DYI : Jeedom-Rflink-Modules Fibaro-MySensors Gateway-Xiaomi Gateway V3 et V2-Detecteurs & Sondes Temp/Hum Xiaomi-Camera Ip Xiaomi & Wanscam-Ledstrip Yeelight >>>

Bêta-Testeur/Helpers

weevil
Timide
Messages : 66
Inscription : 15 sept. 2016, 13:26

Re: [Plugin Tiers][Sujet Principal] Rflink : passerelle RF433 multi-protocoles

Message par weevil » 15 juil. 2017, 18:28

Alors désolé ... Mes connaissances s'arrête là en ce qui concerne le plugin.
Tu ne trouves ce fichier nulle part dans le répertoire du plugin RFlink ? Ou avec une extension lock ? Chez moi il est à deux endroits différents. Mais seul celui mentionné semble utilisé lors de l'installation des dépendances.
Sinon tu fais un grep -R "5.0.0-beta7" depuis le répertoire de ton plugin et tu regardes dans quels fichiers ça se trouve.
Jeedom sur Debian (NUC) + KNX + RTS + MySensor

chtikers
Timide
Messages : 463
Inscription : 08 nov. 2015, 21:01

Re: [Plugin Tiers][Sujet Principal] Rflink : passerelle RF433 multi-protocoles

Message par chtikers » 15 juil. 2017, 20:21

rol-rider a écrit :
13 juil. 2017, 21:02
Regarde bien, la 18 c'est TX1 et la 19 RX1.
Pour la sonde, pas besoin d'apparaillage, si ton récepteur fonctionne, il capteurs le signal de la sonde.
Slt. J'ai donc bien du brancher sur la pin 19 appelé chez moi TX1.
Et sous RFlinkloader, j'ai bien les trames du THN132N

Par contre, sous jeedom, j'ai toujours le demon en NOK

Et donc, je suis allé voir ce fameux fichier "package.json", mais je ne l'ai pas non plus

Code : Tout sélectionner

Sat Jul 15 2017 20:35:06 GMT+0200 (CEST) - Jeedom url : http://192.168.1.7:80/plugins/rflink/core/api/rflink.php?apikey=l1VMkPEgvSD0yPFP0vdqTJ3OcsDEPMdH, gwAddress : /dev/ttyUSB0
/var/www/html/plugins/rflink/node/rflink.js:87
parser: com.parsers.readline('
')
^
TypeError: com.parsers.readline is not a function
at launchGateway (/var/www/html/plugins/rflink/node/rflink.js:87:23)
at Object.<anonymous> (/var/www/html/plugins/rflink/node/rflink.js:167:1)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Function.Module.runMain (module.js:447:10)
at startup (node.js:148:18)
at node.js:405:3

rol-rider
Actif
Messages : 5097
Inscription : 10 août 2014, 23:50

Re: [Plugin Tiers][Sujet Principal] Rflink : passerelle RF433 multi-protocoles

Message par rol-rider » 15 juil. 2017, 21:13

Pour le démon, je vais pas pouvoir beaucoup t'aider! Ça doit être propre à ton matériel, tu as peut être des logs après l'installation des dépendances qui parleront.

Envoyé de mon Nexus 7 en utilisant Tapatalk

RPI3 avec mSATA
RFXcom; RFLink; Z-Wave; Mysensors; ESPEasy
Noeuds MySensors-téléinfo-Température-Distance-Baromètre-relais
Noeuds ESPEasy-open-garage-relais-PIR-Station Météo

weevil
Timide
Messages : 66
Inscription : 15 sept. 2016, 13:26

Re: [Plugin Tiers][Sujet Principal] Rflink : passerelle RF433 multi-protocoles

Message par weevil » 15 juil. 2017, 22:22

À ceux qui ne trouvent pas le package.json essayer de trouver la chaîne 5.0.0-beta7 dans le répertoire du plugin

Code : Tout sélectionner

cd /var/........ (Regarder les logs pour le chemin exact)
grep -R "5.0.0-beta7"
Vous devriez trouver votre bonheur.
Jeedom sur Debian (NUC) + KNX + RTS + MySensor

chtikers
Timide
Messages : 463
Inscription : 08 nov. 2015, 21:01

Re: [Plugin Tiers][Sujet Principal] Rflink : passerelle RF433 multi-protocoles

Message par chtikers » 16 juil. 2017, 20:59

Donc j'ai ça

Code : Tout sélectionner

root@jeedom:/var/www/html/plugins/rflink/node# grep -R "5.0.0-beta7"
node_modules/serialport/package.json:  "_id": "serialport@5.0.0-beta7",
node_modules/serialport/package.json:    "tmp": "tmp/serialport-5.0.0-beta7.tgz_1499716995903_0.2011377071030438"
node_modules/serialport/package.json:  "_resolved": "https://registry.npmjs.org/serialport/-/serialport-5.0.0-beta7.tgz",
node_modules/serialport/package.json:    "host": "https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/5.0.0-beta7",
node_modules/serialport/package.json:    "tarball": "https://registry.npmjs.org/serialport/-/serialport-5.0.0-beta7.tgz"
node_modules/serialport/package.json:  "version": "5.0.0-beta7"
node_modules/serialport/README.md:- [`serialport@5.0.0-beta7` docs](https://github.com/EmergingTechnologyAdvisors/node-serialport/blob/5.0.0-beta7/README.md) the latest `5.x` release.
node_modules/serialport/changelog.md:Version 5.0.0-beta7
Mais que dois je en faire? je n'ai toujours pas de package.json ...

weevil
Timide
Messages : 66
Inscription : 15 sept. 2016, 13:26

Re: [Plugin Tiers][Sujet Principal] Rflink : passerelle RF433 multi-protocoles

Message par weevil » 16 juil. 2017, 22:06

Tu peux relancer la commande depuis /var/www/html/plugins/rflink ?
Jeedom sur Debian (NUC) + KNX + RTS + MySensor

julien35
Timide
Messages : 103
Inscription : 26 déc. 2015, 23:56

Re: [Plugin Tiers][Sujet Principal] Rflink : passerelle RF433 multi-protocoles

Message par julien35 » 17 juil. 2017, 13:17

Bonjour,

J'ai exactement le même problème.
J'ai cherché le fichier package.json qui se trouve etre ici : /var/www/html/plugins/rflink/node/node_modules/serialport/package.json
J'ai modifié la chaine "5.0.0-beta7" par "4.0.7" dans tout le fichier.
Mais la 5.0.0-beta7 est toujours recherchée à la réinstallation des dépendances...
Peut être n'est ce pas le bon fichier utilisé comme source pour l'installation des dépendance ?

weevil
Timide
Messages : 66
Inscription : 15 sept. 2016, 13:26

Re: [Plugin Tiers][Sujet Principal] Rflink : passerelle RF433 multi-protocoles

Message par weevil » 17 juil. 2017, 13:25

julien35 a écrit :Bonjour,

J'ai exactement le même problème.
J'ai cherché le fichier package.json qui se trouve etre ici : /var/www/html/plugins/rflink/node/node_modules/serialport/package.json
J'ai modifié la chaine "5.0.0-beta7" par "4.0.7" dans tout le fichier.
Mais la 5.0.0-beta7 est toujours recherchée à la réinstallation des dépendances...
Peut être n'est ce pas le bon fichier utilisé comme source pour l'installation des dépendance ?
Non il ne faut pas modifier le package.json du module serialport. Il faut que le fichier qui sert à l'installation de dépendances cherche le version 4.0.7 ... Donc il faut trouver le fichier qui référence serialport, donc le package.json du plugin RFlink. Je ne comprend pas pourquoi il n'est pas présent chez vous ...

EDIT : lors de mes investigations j'avais mis à jour npm :
npm install npm@latest -g
(https://docs.npmjs.com/getting-started/installing-node)

Et j'avais eu des problèmes de permissions en essayant de lancer l'installation de serialport directement depuis la console. L'article ci-dessous m'a bien aidé. J'ai utilisé la méthode 2 mentionnée. Attention à la méthode 1 bien lire le WARNING ...
https://docs.npmjs.com/getting-started/ ... ermissions
Jeedom sur Debian (NUC) + KNX + RTS + MySensor

julien35
Timide
Messages : 103
Inscription : 26 déc. 2015, 23:56

Re: [Plugin Tiers][Sujet Principal] Rflink : passerelle RF433 multi-protocoles

Message par julien35 » 17 juil. 2017, 18:37

J'ai un install.sh dans "/var/www/html/plugins/rflink/resources"
On y trouve "sudo npm install --unsafe-perm serialport"
Mais pas de trace de la version...
La actuellement, depuis la migration je n'ai plus de zwave (j'ai perdu mon controleur...) ni de rflink, c'est balo...

weevil
Timide
Messages : 66
Inscription : 15 sept. 2016, 13:26

Re: [Plugin Tiers][Sujet Principal] Rflink : passerelle RF433 multi-protocoles

Message par weevil » 17 juil. 2017, 18:46

Je suppose que tu as déjà essayé de réinstaller les dépendances ...

En dehors des points ci-dessus (màj de npm) je n'ai rien fait de plus donc je ne vais pas pouvoir aider plus. Reste à attendre que l'auteur passe par là ou revienne de vacances ...
Jeedom sur Debian (NUC) + KNX + RTS + MySensor

weevil
Timide
Messages : 66
Inscription : 15 sept. 2016, 13:26

Re: [Plugin Tiers][Sujet Principal] Rflink : passerelle RF433 multi-protocoles

Message par weevil » 17 juil. 2017, 22:45

julien35 a écrit :
17 juil. 2017, 18:37
J'ai un install.sh dans "/var/www/html/plugins/rflink/resources"
On y trouve "sudo npm install --unsafe-perm serialport"
Mais pas de trace de la version...
La actuellement, depuis la migration je n'ai plus de zwave (j'ai perdu mon controleur...) ni de rflink, c'est balo...
En fait il y a encore une possibilité :
Modifier le fichier install.sh en mettant

Code : Tout sélectionner

sudo npm install serialport@4.0.7
Ou tout simplement en enlevant le --unsafe-perm ... à tester.

Et relancer les dépendances.
Pour tester ton install npm tu peux taper :

Code : Tout sélectionner

sudo npm install -g serialport@4.0.7
Si tu as des erreurs alors l'installation des dépendances ne marchera probablement pas.

Il faut peut-être aussi enlever l'ancienne version soit en renommant les répertoires soit en utilisant la commande :

Code : Tout sélectionner

sudo npm uninstall serialport
(depuis le répertoire du plugin)

Je découvre npm en même temps que vous alors je ne suis sûr de rien ...
Jeedom sur Debian (NUC) + KNX + RTS + MySensor

philou15
Actif
Messages : 527
Inscription : 06 nov. 2014, 18:29

Re: [Plugin Tiers][Sujet Principal] Rflink : passerelle RF433 multi-protocoles

Message par philou15 » 18 juil. 2017, 07:37

Hello a tous

ALors je me trouve embeter....

J'ai fait la MAJ jeedom V3 et depuis le plug ne se lance pas

J'ai relancer les dependances, idem.
J'ai supprimer puis remis le plug ainsi que dependance... idem.

Auriez vous une idée ?


J'ai cela dans la page du plug :

Code : Tout sélectionner

Service ne répond pas{"state":"ok","result":null}
Puis les Logs

Code : Tout sélectionner

[2017-07-18 07:34:20][ERROR] : Impossible de lancer le démon rflink, vérifiez le port
[2017-07-18 07:34:43][INFO] : Arrêt du service rflink
[2017-07-18 07:34:43][INFO] : Lancement du démon rflink
[2017-07-18 07:34:43][DEBUG] : Lancement démon rflink : nice -n 19 nodejs /var/www/html/plugins/rflink/node/rflink.js http://192.168.1.55:80/plugins/rflink/core/api/rflink.php?apikey=wedUmf59KauSyBnDKXLlCQjuMvi6dIM1 /dev/ttyUSB0 none debug
[2017-07-18 07:34:43][INFO] : Démon rflink lancé
[2017-07-18 07:34:48][INFO] : 10;STATUS;
[2017-07-18 07:35:06][INFO] : Arrêt du service rflink
[2017-07-18 07:35:07][INFO] : Lancement du démon rflink
[2017-07-18 07:35:07][DEBUG] : Lancement démon rflink : nice -n 19 nodejs /var/www/html/plugins/rflink/node/rflink.js http://192.168.1.55:80/plugins/rflink/core/api/rflink.php?apikey=wedUmf59KauSyBnDKXLlCQjuMvi6dIM1 /dev/ttyUSB0 none debug
[2017-07-18 07:35:07][INFO] : Démon rflink lancé
[2017-07-18 07:35:12][INFO] : 10;STATUS;

Bizard il indique lancer alors qu'il n'y est pas....

Le plugin indique toujours cela par contre

Code : Tout sélectionner

Version
2017-05-09 01:03:19
Version Jeedom
2.4
Auteur
lunarok
Licence
AGPL

Code : Tout sélectionner

Tue Jul 18 2017 07:34:44 GMT+0200 (CEST) - Jeedom url : http://192.168.X.X/plugins/rflink/core/api/rflink.php?apikey=XXX, gwAddress : /dev/ttyUSB0
/var/www/html/plugins/rflink/node/rflink.js:87
parser: com.parsers.readline('
')
^
TypeError: com.parsers.readline is not a function
at launchGateway (/var/www/html/plugins/rflink/node/rflink.js:87:23)
at Object.<anonymous> (/var/www/html/plugins/rflink/node/rflink.js:167:1)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Function.Module.runMain (module.js:447:10)
at startup (node.js:148:18)
at node.js:405:3
Tue Jul 18 2017 07:35:07 GMT+0200 (CEST) - Jeedom url : http://192.168.X.X:80/plugins/rflink/core/api/rflink.php?apikey=XXXX, gwAddress : /dev/ttyUSB0
/var/www/html/plugins/rflink/node/rflink.js:87
parser: com.parsers.readline('
')
^
TypeError: com.parsers.readline is not a function
at launchGateway (/var/www/html/plugins/rflink/node/rflink.js:87:23)
at Object.<anonymous> (/var/www/html/plugins/rflink/node/rflink.js:167:1)
at Module._compile (module.js:413:34)
at Object.Module._extensions..js (module.js:422:10)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Function.Module.runMain (module.js:447:10)
at startup (node.js:148:18)
at node.js:405:3



Merci pour votre aide

weevil
Timide
Messages : 66
Inscription : 15 sept. 2016, 13:26

Re: [Plugin Tiers][Sujet Principal] Rflink : passerelle RF433 multi-protocoles

Message par weevil » 18 juil. 2017, 08:15

On discute de ce problème depuis quelques jours ... mais comme je suis gentil voici un petit résumé :

Le problème semble venir d'un problème avec le module serialport que le plugin veut obtenir un version 5.0.0-beta7. Or le code du plugin n'est pas compatible avec cette version (readline s'écrit Readline en 5.0.0-beta7 et modifier le code du plugin pour utiliser la nouvelle fonction entraîne d'autres erreurs). L'erreur qu'on trouve dans les logs est : com.parsers.readline is not a function

Il faut donc forcer le plugin à utiliser la dernière version stable (4.0.7).

La solution à condition de trouver un fichier package.json dans le répertoire du plugin (/var/..../rflink/node)
viewtopic.php?f=133&t=12567&start=3080#p490004

La solution (peut-être car non validée pour le moment) si tu as un fichier install.sh ou nodejs.sh dans /var/..../rflink/resources
viewtopic.php?f=133&t=12567&start=3080#p490778

Chez toi, d'après tes logs, le plugin se trouve ici : /var/www/html/plugins/rflink/

Merci de confirmer si ça fonctionne.
Dernière édition par weevil le 18 juil. 2017, 10:22, édité 2 fois.
Jeedom sur Debian (NUC) + KNX + RTS + MySensor

philou15
Actif
Messages : 527
Inscription : 06 nov. 2014, 18:29

Re: [Plugin Tiers][Sujet Principal] Rflink : passerelle RF433 multi-protocoles

Message par philou15 » 18 juil. 2017, 09:31

Effectivement merci pour le résumé, je n'avais pas parcouru tout le sujet mais juste fait une recherche avec mon code erreur qui n'a pas resorti le message....

Je vais essayer ça ce soir alors pour voir merci pour l'info.

Sinon il faudrais une MAJ du plug pour que tout fonctionne correctement non ?

weevil
Timide
Messages : 66
Inscription : 15 sept. 2016, 13:26

Re: [Plugin Tiers][Sujet Principal] Rflink : passerelle RF433 multi-protocoles

Message par weevil » 18 juil. 2017, 09:37


philou15 a écrit : Sinon il faudrais une MAJ du plug pour que tout fonctionne correctement non ?
C'est pas faux ;-)
Jeedom sur Debian (NUC) + KNX + RTS + MySensor

Répondre

Revenir vers « [Catégorie] Protocoles domotiques »

Qui est en ligne ?

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