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"
papabert
Timide
Messages : 160
Inscription : 29 mai 2016, 08:30

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

Message par papabert » 19 mars 2018, 23:10

Bonsoir,

Après mise à jour de Rflink, je me suis aussi retrouvé avec un plugin HS répondant "Service ne répond pas{"state":"ok","result":null}".
Je me suis rendu compte que ma version de npm était un peu vielle (v3.8.6) détecté avec la commande :

Code : Tout sélectionner

npm -v
Après le lancement de la commande suivante :

Code : Tout sélectionner

sudo npm install npm@latest -g
c'est node.js qui s'est retrouvé obsolète...
Du coup, un petit :

Code : Tout sélectionner

sudo npm install -g n
sudo n stable
sudo npm unistall serialport
Réinstallation des dépendances et reboot de mon rpi, ça ne fonctionne toujours pas...

Code : Tout sélectionner

Error: The module '/var/www/html/plugins/rflink/resources/node_modules/serialport/build/Release/serialport.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 59. This version of Node.js requires
NODE_MODULE_VERSION 57. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
at Object.Module._extensions..node (module.js:681:18)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at bindings (/var/www/html/plugins/rflink/resources/node_modules/bindings/bindings.js:76:44)
at Object.<anonymous> (/var/www/html/plugins/rflink/resources/node_modules/serialport/lib/bindings.js:3:35)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
Je sèche... si quelqu'un à une idée...
RPI3 - RFLink pour prises Dio et sonde température DIY - Legrand inOne pour volets, chauffage et alarme - EnOcean pour détecteurs d'ouverture...

kemar
Timide
Messages : 74
Inscription : 22 août 2017, 23:22

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

Message par kemar » 20 mars 2018, 11:47

Bonjour,

J'ai eu le même problème ce matin en voulant ouvrir les volets.
module.js:341
throw err;
^

Error: Cannot find module 'request'
at Function.Module._resolveFilename (module.js:339:15)
at Function.Module._load (module.js:290:25)
at Module.require (module.js:367:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/var/www/html/plugins/rflink/resources/rflink.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)
at Function.Module._load (module.js:314:12)
at Function.Module.runMain (module.js:447:10)

Une réinstallation des dépendances à réglé le problème chez moi. Sur une install DIY Debian 9.

xavax
Actif
Messages : 1828
Inscription : 01 sept. 2017, 14:03
Localisation : Lille

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

Message par xavax » 20 mars 2018, 12:01

pour controler des prises DIO il vaut mieux du un RFLINK 433.920 MHZ ou RFLINK 433.420 MHZ ? le RFLINK 433.420 MHZ ca concerne plus les équipement RTS somfy c'est ca ?

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 » 20 mars 2018, 12:03

pour controler des prises DIO il vaut mieux du un RFLINK 433.920 MHZ ou RFLINK 433.420 MHZ ? le RFLINK 433.420 MHZ ca concerne plus les équipement RTS somfy c'est ca ?
Oui, c'est ça ! pour prise DIO---RFLINK 433.92
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

zetflo
Timide
Messages : 7
Inscription : 18 nov. 2015, 18:48

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

Message par zetflo » 21 mars 2018, 17:46

Il faudra peut être penser à faire la mise à jour du package serialport un de ces jours
V4.0.7 : https://github.com/node-serialport/node ... /tag/4.0.7 elle date quand même du 12 décembre 2016 :shock:

casaman
Timide
Messages : 8
Inscription : 01 mars 2018, 06:35

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

Message par casaman » 21 mars 2018, 21:13

Bonsoir,
Tout d'abord, je tiens a preciser que je suis débutant !
Je possede un RPI 3 avec Rflink (mise a jour effectuée depuis windows, test ok)
Le plugin RFlink installé et les dépendances ok, j' ai "Firmware non reconnu"
Je pense avaoir un probleme vis à vis de npm et nodejs
voici les logs

RFlink Dep

Code : Tout sélectionner

Début de l'installation
--2018-03-21 20:13:18--  https://raw.githubusercontent.com/lunarok/jeedom_nodejs/master/nodejs.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.16.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.16.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1592 (1.6K) [text/plain]
Saving to: 'dependencies.sh'

     0K .                                                     100% 22.4M=0s

2018-03-21 20:13:18 (22.4 MB/s) - 'dependencies.sh' saved [1592/1592]

Version actuelle : 8
E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?
dependencies.sh: 20: [: stretch: unexpected operator
Ok, version suffisante

> serialport@4.0.7 install /var/www/html/plugins/rflink/resources/node_modules/serialport
> node-pre-gyp install --fallback-to-build

node-pre-gyp info it worked if it ends with ok
node-pre-gyp verb cli [ '/usr/local/bin/node',
node-pre-gyp verb cli   '/var/www/html/plugins/rflink/resources/node_modules/serialport/node_modules/.bin/node-pre-gyp',
node-pre-gyp verb cli   'install',
node-pre-gyp verb cli   '--fallback-to-build' ]
node-pre-gyp info using node-pre-gyp@0.6.32
node-pre-gyp info using node@9.9.0 | linux | arm
node-pre-gyp verb command install []
node-pre-gyp info check checked for "/var/www/html/plugins/rflink/resources/node_modules/serialport/build/Release/serialport.node" (not found)
node-pre-gyp http GET https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v59-linux-arm.tar.gz
node-pre-gyp http 404 https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v59-linux-arm.tar.gz
node-pre-gyp ERR! Tried to download(404): https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v59-linux-arm.tar.gz 
node-pre-gyp ERR! Pre-built binaries not found for serialport@4.0.7 and node@9.9.0 (node-v59 ABI) (falling back to source compile with node-gyp) 
node-pre-gyp http 404 status code downloading tarball https://github.com/EmergingTechnologyAdvisors/node-serialport/releases/download/4.0.7/serialport-v4.0.7-node-v59-linux-arm.tar.gz 
node-pre-gyp verb command build [ 'rebuild' ]
make: Entering directory '/var/www/html/plugins/rflink/resources/node_modules/serialport/build'
  CXX(target) Release/obj.target/serialport/src/serialport.o
../src/serialport.cpp: In function 'int getIntFromObject(v8::Local<v8::Object>, std::__cxx11::string)':
../src/serialport.cpp:90:52: warning: 'v8::Local<v8::Int32> v8::Value::ToInt32() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
   return getValueFromObject(options, key)->ToInt32()->Int32Value();
                                                    ^
In file included from /var/www/.node-gyp/9.9.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/var/www/.node-gyp/9.9.0/include/node/v8.h:9889:14: note: declared here
 Local<Int32> Value::ToInt32() const {
              ^~~~~
../src/serialport.cpp: In function 'double getDoubleFromObject(v8::Local<v8::Object>, std::__cxx11::string)':
../src/serialport.cpp:102:53: warning: 'v8::Local<v8::Number> v8::Value::ToNumber() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
   return getValueFromObject(options, key)->ToNumber()->NumberValue();
                                                     ^
In file included from /var/www/.node-gyp/9.9.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/var/www/.node-gyp/9.9.0/include/node/v8.h:9853:15: note: declared here
 Local<Number> Value::ToNumber() const {
               ^~~~~
../src/serialport.cpp: In function 'void EIO_AfterOpen(uv_work_t*)':
../src/serialport.cpp:174:31: warning: 'v8::Local<v8::Int32> v8::Value::ToInt32() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
     int fd = argv[1]->ToInt32()->Int32Value();
                               ^
In file included from /var/www/.node-gyp/9.9.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/var/www/.node-gyp/9.9.0/include/node/v8.h:9889:14: note: declared here
 Local<Int32> Value::ToInt32() const {
              ^~~~~
../src/serialport.cpp:180:30: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations]
   data->callback.Call(2, argv);
                              ^
In file included from ../src/./serialport.h:7:0,
                 from ../src/serialport.cpp:1:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/serialport.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE Update(Nan::NAN_METHOD_ARGS_TYPE)':
../src/serialport.cpp:193:29: warning: 'v8::Local<v8::Int32> v8::Value::ToInt32() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
   int fd = info[0]->ToInt32()->Int32Value();
                             ^
In file included from /var/www/.node-gyp/9.9.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/var/www/.node-gyp/9.9.0/include/node/v8.h:9889:14: note: declared here
 Local<Int32> Value::ToInt32() const {
              ^~~~~
../src/serialport.cpp:217:116: warning: 'v8::Local<v8::Int32> v8::Value::ToInt32() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
   baton->baudRate = Nan::Get(options, Nan::New<v8::String>("baudRate").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value();
                                                                                                                    ^
In file included from /var/www/.node-gyp/9.9.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/var/www/.node-gyp/9.9.0/include/node/v8.h:9889:14: note: declared here
 Local<Int32> Value::ToInt32() const {
              ^~~~~
../src/serialport.cpp: In function 'void EIO_AfterUpdate(uv_work_t*)':
../src/serialport.cpp:240:30: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations]
   data->callback.Call(1, argv);
                              ^
In file included from ../src/./serialport.h:7:0,
                 from ../src/serialport.cpp:1:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/serialport.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE Write(Nan::NAN_METHOD_ARGS_TYPE)':
../src/serialport.cpp:252:29: warning: 'v8::Local<v8::Int32> v8::Value::ToInt32() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
   int fd = info[0]->ToInt32()->Int32Value();
                             ^
In file included from /var/www/.node-gyp/9.9.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/var/www/.node-gyp/9.9.0/include/node/v8.h:9889:14: note: declared here
 Local<Int32> Value::ToInt32() const {
              ^~~~~
../src/serialport.cpp: In function 'void EIO_AfterWrite(uv_work_t*)':
../src/serialport.cpp:339:30: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations]
   data->callback.Call(1, argv);
                              ^
In file included from ../src/./serialport.h:7:0,
                 from ../src/serialport.cpp:1:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/serialport.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE Close(Nan::NAN_METHOD_ARGS_TYPE)':
../src/serialport.cpp:369:32: warning: 'v8::Local<v8::Int32> v8::Value::ToInt32() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
   baton->fd = info[0]->ToInt32()->Int32Value();
                                ^
In file included from /var/www/.node-gyp/9.9.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/var/www/.node-gyp/9.9.0/include/node/v8.h:9889:14: note: declared here
 Local<Int32> Value::ToInt32() const {
              ^~~~~
../src/serialport.cpp: In function 'void EIO_AfterClose(uv_work_t*)':
../src/serialport.cpp:403:30: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations]
   data->callback.Call(1, argv);
                              ^
In file included from ../src/./serialport.h:7:0,
                 from ../src/serialport.cpp:1:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/serialport.cpp: In function 'void EIO_AfterList(uv_work_t*)':
../src/serialport.cpp:465:30: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations]
   data->callback.Call(2, argv);
                              ^
In file included from ../src/./serialport.h:7:0,
                 from ../src/serialport.cpp:1:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/serialport.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE Flush(Nan::NAN_METHOD_ARGS_TYPE)':
../src/serialport.cpp:480:29: warning: 'v8::Local<v8::Int32> v8::Value::ToInt32() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
   int fd = info[0]->ToInt32()->Int32Value();
                             ^
In file included from /var/www/.node-gyp/9.9.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/var/www/.node-gyp/9.9.0/include/node/v8.h:9889:14: note: declared here
 Local<Int32> Value::ToInt32() const {
              ^~~~~
../src/serialport.cpp: In function 'void EIO_AfterFlush(uv_work_t*)':
../src/serialport.cpp:516:30: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations]
   data->callback.Call(2, argv);
                              ^
In file included from ../src/./serialport.h:7:0,
                 from ../src/serialport.cpp:1:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/serialport.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE Set(Nan::NAN_METHOD_ARGS_TYPE)':
../src/serialport.cpp:528:29: warning: 'v8::Local<v8::Int32> v8::Value::ToInt32() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
   int fd = info[0]->ToInt32()->Int32Value();
                             ^
In file included from /var/www/.node-gyp/9.9.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/var/www/.node-gyp/9.9.0/include/node/v8.h:9889:14: note: declared here
 Local<Int32> Value::ToInt32() const {
              ^~~~~
../src/serialport.cpp: In function 'void EIO_AfterSet(uv_work_t*)':
../src/serialport.cpp:573:30: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations]
   data->callback.Call(1, argv);
                              ^
In file included from ../src/./serialport.h:7:0,
                 from ../src/serialport.cpp:1:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/serialport.cpp: In function 'Nan::NAN_METHOD_RETURN_TYPE Drain(Nan::NAN_METHOD_ARGS_TYPE)':
../src/serialport.cpp:585:29: warning: 'v8::Local<v8::Int32> v8::Value::ToInt32() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
   int fd = info[0]->ToInt32()->Int32Value();
                             ^
In file included from /var/www/.node-gyp/9.9.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/./serialport.h:7,
                 from ../src/serialport.cpp:1:
/var/www/.node-gyp/9.9.0/include/node/v8.h:9889:14: note: declared here
 Local<Int32> Value::ToInt32() const {
              ^~~~~
../src/serialport.cpp: In function 'void EIO_AfterDrain(uv_work_t*)':
../src/serialport.cpp:617:30: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations]
   data->callback.Call(1, argv);
                              ^
In file included from ../src/./serialport.h:7:0,
                 from ../src/serialport.cpp:1:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
  CXX(target) Release/obj.target/serialport/src/serialport_unix.o
../src/serialport_unix.cpp: In function 'OpenBatonPlatformOptions* ParsePlatformOptions(const v8::Local<v8::Object>&)':
../src/serialport_unix.cpp:44:109: warning: 'v8::Local<v8::Int32> v8::Value::ToInt32() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
   result->vmin = Nan::Get(options, Nan::New<v8::String>("vmin").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value();
                                                                                                             ^
In file included from /var/www/.node-gyp/9.9.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/./serialport.h:7,
                 from ../src/serialport_unix.cpp:1:
/var/www/.node-gyp/9.9.0/include/node/v8.h:9889:14: note: declared here
 Local<Int32> Value::ToInt32() const {
              ^~~~~
../src/serialport_unix.cpp:45:111: warning: 'v8::Local<v8::Int32> v8::Value::ToInt32() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
   result->vtime = Nan::Get(options, Nan::New<v8::String>("vtime").ToLocalChecked()).ToLocalChecked()->ToInt32()->Int32Value();
                                                                                                               ^
In file included from /var/www/.node-gyp/9.9.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/./serialport.h:7,
                 from ../src/serialport_unix.cpp:1:
/var/www/.node-gyp/9.9.0/include/node/v8.h:9889:14: note: declared here
 Local<Int32> Value::ToInt32() const {
              ^~~~~
  CXX(target) Release/obj.target/serialport/src/serialport_poller.o
../src/serialport_poller.cpp: In member function 'void SerialportPoller::callCallback(int)':
../src/serialport_poller.cpp:47:26: warning: 'v8::Local<v8::Value> Nan::Callback::Call(int, v8::Local<v8::Value>*) const' is deprecated [-Wdeprecated-declarations]
   callback_->Call(1, argv);
                          ^
In file included from ../src/serialport_poller.cpp:5:0:
../../nan/nan.h:1618:3: note: declared here
   Call(int argc, v8::Local<v8::Value> argv[]) const {
   ^~~~
../src/serialport_poller.cpp: In static member function 'static Nan::NAN_METHOD_RETURN_TYPE SerialportPoller::New(Nan::NAN_METHOD_ARGS_TYPE)':
../src/serialport_poller.cpp:86:31: warning: 'v8::Local<v8::Int32> v8::Value::ToInt32() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
   obj->fd_ = info[0]->ToInt32()->Int32Value();
                               ^
In file included from /var/www/.node-gyp/9.9.0/include/node/node.h:63:0,
                 from ../../nan/nan.h:51,
                 from ../src/serialport_poller.cpp:5:
/var/www/.node-gyp/9.9.0/include/node/v8.h:9889:14: note: declared here
 Local<Int32> Value::ToInt32() const {
              ^~~~~
  SOLINK_MODULE(target) Release/obj.target/serialport.node
  COPY Release/serialport.node
make: Leaving directory '/var/www/html/plugins/rflink/resources/node_modules/serialport/build'
node-pre-gyp info ok 
npm notice created a lockfile as package-lock.json. You should commit this file.
added 204 packages in 51.179s
Fin de l'installation
RFlink

Code : Tout sélectionner

[2018-03-21 17:30:10][INFO] : Flash du RFLink
[2018-03-21 17:30:14][INFO] : Flash du RFLink
[2018-03-21 17:30:50][INFO] : Installation des dépéndances nodejs
[2018-03-21 17:39:22][INFO] : Flash du RFLink
[2018-03-21 17:39:26][INFO] : Flash du RFLink
[2018-03-21 17:53:16][INFO] : Flash du RFLink
[2018-03-21 17:53:19][INFO] : Flash du RFLink
[2018-03-21 17:54:37][INFO] : Installation des dépéndances nodejs
[2018-03-21 18:20:41][INFO] : Installation des dépéndances nodejs
[2018-03-21 18:48:40][DEBUG] : Recherche firmware http://www.nemcon.nl/blog2/fw/update.jsp?ver=1&rel=38
[2018-03-21 18:48:41][DEBUG] : Download http://www.rflink.nl/fw/48/RFLink.cpp.hex in /var/www/html/plugins/rflink/resources/rflink/RFLink.cpp.hex for release http://www.rflink.nl/fw/48
[2018-03-21 18:51:45][DEBUG] : Lancement de : /var/www/html/core/class/../../core/php/jeePlugin.php  plugin_id=rflink function=remove callInstallFunction=1
[2018-03-21 20:13:08][INFO] : Début d'activation du plugin
[2018-03-21 20:13:10][INFO] : Info sur le démon : Array (     [log] => rflink_node     [state] => nok     [launchable] => nok     [launchable_message] => Gestion automatique désactivée     [auto] => 0     [last_launch] => Inconnue ) 
[2018-03-21 20:13:10][DEBUG] : Lancement de : /var/www/html/core/class/../../core/php/jeePlugin.php  plugin_id=rflink function=install callInstallFunction=1
[2018-03-21 20:13:10][DEBUG] : Création de la commande debugon
[2018-03-21 20:13:10][DEBUG] : Création de la commande debugoff
[2018-03-21 20:13:10][DEBUG] : Création de la commande reboot
[2018-03-21 20:13:11][DEBUG] : Recherche firmware http://www.nemcon.nl/blog2/fw/update.jsp?ver=1&rel=38
[2018-03-21 20:13:13][DEBUG] : Download http://www.rflink.nl/fw/48/RFLink.cpp.hex in /var/www/html/plugins/rflink/resources/rflink/RFLink.cpp.hex for release http://www.rflink.nl/fw/48
Je tiens à prciser que je possede aussi le plugin mobile et que j'ai eu du mal a l'installer avec npm (au passage, il ne marche plus.....)
pour info :
node -v :9.9.0
npm -v: 5.6.0

Merci d'avance

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 » 21 mars 2018, 23:42

commence par le début !
il y a quelques incohérences dans ton message.
tu dis ....dépendance ok
mais il me semble voir que le demon est NOK ?
si le demon ne tourne pas ! c’est pas la peine d'aller plus loin.
et tu précises que le RFlink est ok (testé sous windows)
Alors pourquoi le flasher ?
si le firmware est pas connu c'est peut être le port usb qui pose problème ?
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

casaman
Timide
Messages : 8
Inscription : 01 mars 2018, 06:35

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

Message par casaman » 22 mars 2018, 06:45

OK, merci pour avoir deja pris le temps de lire mon message
Honnêtement, je bloque...
Tout d'abord, je marque dependance ok car l'installation de ces dernieres est OK
Par contre, le demon ne se lance pas et je pense que cela provient de RFlink_node (j'ai reussi a afficher le bouton demarrer le demon mais reste en NOK)
voilà le log de rflink_node

Code : Tout sélectionner

Thu Mar 22 2018 07:19:34 GMT+0100 (CET) - Jeedom url : http://127.0.0.1:80/plugins/rflink/core/api/rflink.php?apikey=c986BctWvY4V4YCfYZYNVwiNOj6cmCY5, gwAddress : /dev/ttyUSB0
/var/www/html/plugins/rflink/resources/node_modules/bindings/bindings.js:83
        throw e
        ^

Error: The module '/var/www/html/plugins/rflink/resources/node_modules/serialport/build/Release/serialport.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 59. This version of Node.js requires
NODE_MODULE_VERSION 57. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
    at Object.Module._extensions..node (module.js:681:18)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at bindings (/var/www/html/plugins/rflink/resources/node_modules/bindings/bindings.js:76:44)
    at Object.<anonymous> (/var/www/html/plugins/rflink/resources/node_modules/serialport/lib/bindings.js:3:35)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
Thu Mar 22 2018 07:19:56 GMT+0100 (CET) - Jeedom url : http://127.0.0.1:80/plugins/rflink/core/api/rflink.php?apikey=c986BctWvY4V4YCfYZYNVwiNOj6cmCY5, gwAddress : /dev/ttyUSB0
/var/www/html/plugins/rflink/resources/node_modules/bindings/bindings.js:83
        throw e
        ^

Error: The module '/var/www/html/plugins/rflink/resources/node_modules/serialport/build/Release/serialport.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 59. This version of Node.js requires
NODE_MODULE_VERSION 57. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
    at Object.Module._extensions..node (module.js:681:18)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at bindings (/var/www/html/plugins/rflink/resources/node_modules/bindings/bindings.js:76:44)
    at Object.<anonymous> (/var/www/html/plugins/rflink/resources/node_modules/serialport/lib/bindings.js:3:35)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
Thu Mar 22 2018 07:20:03 GMT+0100 (CET) - Jeedom url : http://127.0.0.1:80/plugins/rflink/core/api/rflink.php?apikey=c986BctWvY4V4YCfYZYNVwiNOj6cmCY5, gwAddress : /dev/ttyUSB0
/var/www/html/plugins/rflink/resources/node_modules/bindings/bindings.js:83
        throw e
        ^

Error: The module '/var/www/html/plugins/rflink/resources/node_modules/serialport/build/Release/serialport.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 59. This version of Node.js requires
NODE_MODULE_VERSION 57. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
    at Object.Module._extensions..node (module.js:681:18)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at bindings (/var/www/html/plugins/rflink/resources/node_modules/bindings/bindings.js:76:44)
    at Object.<anonymous> (/var/www/html/plugins/rflink/resources/node_modules/serialport/lib/bindings.js:3:35)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
Thu Mar 22 2018 07:20:39 GMT+0100 (CET) - Jeedom url : http://127.0.0.1:80/plugins/rflink/core/api/rflink.php?apikey=c986BctWvY4V4YCfYZYNVwiNOj6cmCY5, gwAddress : /dev/ttyUSB0
/var/www/html/plugins/rflink/resources/node_modules/bindings/bindings.js:83
        throw e
        ^

Error: The module '/var/www/html/plugins/rflink/resources/node_modules/serialport/build/Release/serialport.node'
was compiled against a different Node.js version using
NODE_MODULE_VERSION 59. This version of Node.js requires
NODE_MODULE_VERSION 57. Please try re-compiling or re-installing
the module (for instance, using `npm rebuild` or `npm install`).
    at Object.Module._extensions..node (module.js:681:18)
    at Module.load (module.js:565:32)
    at tryModuleLoad (module.js:505:12)
    at Function.Module._load (module.js:497:3)
    at Module.require (module.js:596:17)
    at require (internal/module.js:11:18)
    at bindings (/var/www/html/plugins/rflink/resources/node_modules/bindings/bindings.js:76:44)
    at Object.<anonymous> (/var/www/html/plugins/rflink/resources/node_modules/serialport/lib/bindings.js:3:35)
    at Module._compile (module.js:652:30)
    at Object.Module._extensions..js (module.js:663:10)
Pour le flash, j'ai appuyé pensant qu'il detecterai a mise a jour...
Et enfin, pour le port USB, celui ci se trouve ds la liste deroulante (1a86 USB2.0 serial /dev/ttyUSB0)
j'ai changé de port physique mais rien

casaman
Timide
Messages : 8
Inscription : 01 mars 2018, 06:35

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

Message par casaman » 22 mars 2018, 07:51

Je reviens car j'ai vraiment envie que ca marche !!
j'ai donc tenté npm install en root mais j'ai un souçi de /root/package.json
De plus, pour le demon, il ne se lance pas, j'ai :
Service ne répond pas{"state":"ok","result":null}

zetflo
Timide
Messages : 7
Inscription : 18 nov. 2015, 18:48

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

Message par zetflo » 22 mars 2018, 08:14

Hello, je pense que tu as une incompatibilité entre ta version de node et le module serialport.
Sinon tente de désinstaller tes modules et réinstaller depuis le terminal

Code : Tout sélectionner

cd /var/www/html/plugins/rflink/resources/
sudo rm -rf  node_modules
sudo npm install
sudo chown -R www-data node_modules

zetflo
Timide
Messages : 7
Inscription : 18 nov. 2015, 18:48

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

Message par zetflo » 22 mars 2018, 08:21

casaman a écrit :
22 mars 2018, 07:51
Je reviens car j'ai vraiment envie que ca marche !!
j'ai donc tenté npm install en root mais j'ai un souçi de /root/package.json
De plus, pour le demon, il ne se lance pas, j'ai :
Service ne répond pas{"state":"ok","result":null}
il faut lancer la commande dans le répertoire rflink du plugin

casaman
Timide
Messages : 8
Inscription : 01 mars 2018, 06:35

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

Message par casaman » 22 mars 2018, 08:55

zetflo a écrit :
22 mars 2018, 08:14
Hello, je pense que tu as une incompatibilité entre ta version de node et le module serialport.
Sinon tente de désinstaller tes modules et réinstaller depuis le terminal

Code : Tout sélectionner

cd /var/www/html/plugins/rflink/resources/
sudo rm -rf  node_modules
sudo npm install
sudo chown -R www-data node_modules
Je viens de le faire, toujours pareil
J'ai desinstaller le plugin, reinstallé, toujours pareil !

Si ca peut aider, j'ai aussi pris le plugin Mobile qui ne fonctionne pas.....cause toujours d'un probleme de module nodejs

Le mieux serait peut etre que je formatte mon pi, reinstallation propre avec les 2 plugins et apres, je vois??

zetflo
Timide
Messages : 7
Inscription : 18 nov. 2015, 18:48

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

Message par zetflo » 22 mars 2018, 09:14

As tu rencontré un problème à l'installation des modules (commande npm install)
dans node_modules le répertoire serialport est il présent si oui quelle version ?

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 » 22 mars 2018, 09:19

as tu tenter de débrancher (mise hors tension) proprement et de relancer jeedom et les dépendances rflink?
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

casaman
Timide
Messages : 8
Inscription : 01 mars 2018, 06:35

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

Message par casaman » 22 mars 2018, 09:22

Bon, je viens de repartir de zéro....c'est à dire que je relance une install propre de jeedom sur mon Pi puis install des plugin
Je vous tiens au courant mais je pense que comme le mentionne zetflo, cela vient d'un probleme de node_modules
Vu que j'ai rien pour l'instant, autant partir sur une base saine

esso1
Actif
Messages : 858
Inscription : 03 oct. 2017, 12:26

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

Message par esso1 » 22 mars 2018, 09:34

normalement y a pas de complication entre RPI et RFlink

il faut
te connecter sous putty

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install nodejs npm

si jamais ca marche pas essai
sudo apt-get install nodejs-legacy

je l'ai testé y 2 jrs sur un RPI sans aucun soucis..

ensuite tu as pris quoi en port pour le RFlink
tu devrais sélectionner le port USB du type
1a86........



si tu repars de zero

tu fais les manip du dessus

Code : Tout sélectionner

sudo apt-get update
sudo apt-get upgrade
sudo apt-get install nodejs npm
le plugins tu dois avoir les dépendance en vert
et le démon en vert
la c sur mon OPI+2 pas sur mon RPI
Capture4444.JPG
Capture4444.JPG (74.44 Kio) Consulté 1458 fois

casaman
Timide
Messages : 8
Inscription : 01 mars 2018, 06:35

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

Message par casaman » 22 mars 2018, 15:07

ca marche..bon après une réinstallation propre, mes deux plugins sot au vert !
vais maintenant m'attaquer a l'appairage des 8 volets somfy ....;)

hlehoux
Timide
Messages : 27
Inscription : 07 déc. 2016, 16:30

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

Message par hlehoux » 23 mars 2018, 22:48

HoHo, moi aussi je viens de constaté le blocage du rklink en arrivant ce soir à ma maison de campagne

Bon en désactivant , rebootant, reinstallant les dépendances ça remarche OK

Par contre il fait 8,5° dans la maison, le chauffage ne s'est pas remis en route vu que la sonde de température est en rflink

Je fais un bon feu de bois :-)

Bref la prochaine fois que je fais une mise à jour je ferai un peu plus attention avant de partir et laisser la maison fermée 15 jours...

dbdu22
Timide
Messages : 43
Inscription : 21 févr. 2016, 10:30

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

Message par dbdu22 » 25 mars 2018, 22:51

Bonsoir à tous,

Je ne sais pas si je suis dans le bon sujet mais ça fait 2 jours que j’essaie d’inclure un module chacun 54755 sur un rflink mais aucun moyen d’y arriver. J’ai beau avoir lu les presque 200 pages dans le week-end sur différent sujet traitant du rflink, avoir essayé quasi toutes les astuces (sauf en essayant avec une télécommande pour essayer de récupérer les différentes trames car je n’en ai pas et un dimanche....) je sèche complètement.

J’ai essayé avec la simple création on/off/état, switch;cmd, et les différentes vu sur le fofo mais rien ni fait.

Ma réponse est elle dans ma question ou avez vous un lien d’une page que je n’aurais pas encore lu?

Je vous remercie par avance


Envoyé de mon iPhone en utilisant Tapatalk

dbdu22
Timide
Messages : 43
Inscription : 21 févr. 2016, 10:30

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

Message par dbdu22 » 25 mars 2018, 22:52

Bonsoir à tous,

Je ne sais pas si je suis dans le bon sujet mais ça fait 2 jours que j’essaie d’inclure un module chacun 54755 sur un rflink mais aucun moyen d’y arriver. J’ai beau avoir lu les presque 200 pages dans le week-end sur différent sujet traitant du rflink, avoir essayé quasi toutes les astuces (sauf en essayant avec une télécommande pour essayer de récupérer les différentes trames car je n’en ai pas et un dimanche....) je sèche complètement.

J’ai essayé avec la simple création on/off/état, switch;cmd, et les différentes vu sur le fofo mais rien ni fait.

Ma réponse est elle dans ma question ou avez vous un lien d’une page que je n’aurais pas encore lu?

Je vous remercie par avance


Envoyé de mon iPhone en utilisant Tapatalk

Répondre

Revenir vers « [Catégorie] Protocoles domotiques »

Qui est en ligne ?

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