J'ai essayé hier d'intégrer un Dash mais je rencontre des soucis. Les dépendances sembles bien installées, et le démon se lance. Seulement, rien ne se passe lorsque j'appui sur mon Dash.
J'ai vérifié qu'il était bien connecté au wifi en le pingant : avant de cliquer rien, pendant qu'ils se connecte après un clic ça ping, puis ensuite plus de ping, donc il a l'air de bien fonctionner.
J'ai essayé avec 2 MAC différents car je n'étais pas sûr au départ de l'IP de mon Dash (c'est bien la 2eme qui est la bonne). Concernant le MAC justement, une importance sur le format ? Minuscules ou majuscules ?
Je n'ai pas d'erreurs dans les logs du coup je ne sais pas trop quoi en penser
Voici les logs en debug :
Dashbutton :
Code : Tout sélectionner
[2018-04-12 19:03:20][INFO] : Arrêt du service dashbutton
[2018-04-12 19:03:23][INFO] : Arrêt du service dashbutton
[2018-04-12 19:03:23][INFO] : Lancement du démon dashbutton
[2018-04-12 19:03:23][DEBUG] : nodejs /var/www/html/plugins/dashbutton/resources/dashbutton.js http://127.0.0.1:80/plugins/dashbutton/core/api/jeeDash.php?apikey=xxxxxxxxxxxxxxxxxx 6c:56:97:1d:63:c2 0
[2018-04-12 19:03:23][INFO] : Démon dashbutton lancé
[2018-04-12 19:05:02][INFO] : Arrêt du service dashbutton
[2018-04-12 19:05:04][INFO] : Arrêt du service dashbutton
[2018-04-12 19:05:04][INFO] : Lancement du démon dashbutton
[2018-04-12 19:05:04][DEBUG] : nodejs /var/www/html/plugins/dashbutton/resources/dashbutton.js http://127.0.0.1:80/plugins/dashbutton/core/api/jeeDash.php?apikey=xxxxxxxxxxxxxxxxx dc:71:44:c4:19:ff 0
[2018-04-12 19:05:04][INFO] : Démon dashbutton lancé
[2018-04-12 19:11:01][INFO] : Arrêt du service dashbutton
[2018-04-12 19:11:03][INFO] : Arrêt du service dashbutton
[2018-04-12 19:11:03][INFO] : Lancement du démon dashbutton
[2018-04-12 19:11:03][DEBUG] : nodejs /var/www/html/plugins/dashbutton/resources/dashbutton.js http://127.0.0.1:80/plugins/dashbutton/core/api/jeeDash.php?apikey=xxxxxxxxxxxxxxxxxxxxxxxxx 6c:56:97:1d:63:c2 0
[2018-04-12 19:11:03][INFO] : Démon dashbutton lancé
[2018-04-12 19:11:24][INFO] : Arrêt du service dashbutton
[2018-04-12 19:11:27][INFO] : Arrêt du service dashbutton
[2018-04-12 19:11:27][INFO] : Lancement du démon dashbutton
[2018-04-12 19:11:27][DEBUG] : nodejs /var/www/html/plugins/dashbutton/resources/dashbutton.js http://127.0.0.1:80/plugins/dashbutton/core/api/jeeDash.php?apikey=xxxxxxxxxxxxxxxxxxxxxx 6c:56:97:1d:63:c2 0
[2018-04-12 19:11:27][INFO] : Démon dashbutton lancé
[2018-04-12 19:21:49][INFO] : Arrêt du service dashbutton
[2018-04-12 19:21:51][INFO] : Arrêt du service dashbutton
[2018-04-12 19:21:51][INFO] : Lancement du démon dashbutton
[2018-04-12 19:21:51][DEBUG] : nodejs /var/www/html/plugins/dashbutton/resources/dashbutton.js http://127.0.0.1:80/plugins/dashbutton/core/api/jeeDash.php?apikey=xxxxxxxxxxxxxxxxxxxxxxxxxx 6c:56:97:1d:63:c2 0
[2018-04-12 19:21:51][INFO] : Démon dashbutton lancé
[2018-04-12 19:33:39][INFO] : Arrêt du service dashbutton
[2018-04-12 19:33:41][INFO] : Arrêt du service dashbutton
[2018-04-12 19:33:42][INFO] : Lancement du démon dashbutton
[2018-04-12 19:33:42][DEBUG] : nodejs /var/www/html/plugins/dashbutton/resources/dashbutton.js http://127.0.0.1:80/plugins/dashbutton/core/api/jeeDash.php?apikey=xxxxxxxxxxxxxxxxxxxxxxx 6C:56:97:1D:63:C2 0
[2018-04-12 19:33:42][INFO] : Démon dashbutton lancé
[2018-04-13 11:45:05][INFO] : Arrêt du service dashbutton
[2018-04-13 11:45:05][INFO] : Lancement du démon dashbutton
[2018-04-13 11:45:05][DEBUG] : nodejs /var/www/html/plugins/dashbutton/resources/dashbutton.js http://127.0.0.1:80/plugins/dashbutton/core/api/jeeDash.php?apikey=xxxxxxxxxxxxxxxxxxxxxxxxx 6C:56:97:1D:63:C2 0
[2018-04-13 11:45:06][INFO] : Démon dashbutton lancé
[2018-04-13 12:45:05][INFO] : Arrêt du service dashbutton
[2018-04-13 12:45:05][INFO] : Lancement du démon dashbutton
[2018-04-13 12:45:05][DEBUG] : nodejs /var/www/html/plugins/dashbutton/resources/dashbutton.js http://127.0.0.1:80/plugins/dashbutton/core/api/jeeDash.php?apikey=xxxxxxxxxxxxxxxxxxxxxxxxx 6C:56:97:1D:63:C2 0
[2018-04-13 12:45:05][INFO] : Démon dashbutton lancé
Les dépendances :
Code : Tout sélectionner
Début de l'installation
Reading package lists...
Building dependency tree...
Reading state information...
libpcap-dev is already the newest version (1.8.1-3).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
--2018-04-12 18:56:26-- 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: 1458 (1.4K) [text/plain]
Saving to: 'dependencies.sh'
0K . 100% 35.7M=0s
2018-04-12 18:56:28 (35.7 MB/s) - 'dependencies.sh' saved [1458/1458]
Version actuelle : 8
Hit:1 http://security.debian.org/debian-security stretch/updates InRelease
Ign:2 http://ftp.fr.debian.org/debian stretch InRelease
Hit:3 http://ftp.fr.debian.org/debian stretch-updates InRelease
Hit:4 http://ftp.fr.debian.org/debian stretch Release
Hit:6 https://deb.nodesource.com/node_8.x stretch InRelease
Reading package lists...
Reading package lists...
Building dependency tree...
Reading state information...
lsb-release is already the newest version (9.20161125).
0 upgraded, 0 newly installed, 0 to remove and 1 not upgraded.
Ok, version suffisante
> socketwatcher@0.3.0 install /var/www/html/plugins/dashbutton/resources/node_modules/socketwatcher
> node-gyp rebuild
make: Entering directory '/var/www/html/plugins/dashbutton/resources/node_modules/socketwatcher/build'
CXX(target) Release/obj.target/socketwatcher/socket_watcher.o
../socket_watcher.cpp: In static member function 'static void SocketWatcher::Callback(uv_poll_t*, int, int)':
../socket_watcher.cpp:77:60: warning: 'v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)' is deprecated [-Wdeprecated-declarations]
Nan::MakeCallback(watcher->handle(), callback, argc, argv);
^
In file included from ../socket_watcher.hpp:8:0,
from ../socket_watcher.cpp:5:
../../nan/nan.h:929:46: note: declared here
NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
^~~~~~~~~~~~
../socket_watcher.cpp: In static member function 'static void SocketWatcher::New(const Nan::FunctionCallbackInfo<v8::Value>&)':
../socket_watcher.cpp:104:49: warning: 'v8::Local<v8::Object> v8::Function::NewInstance() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
info.GetReturnValue().Set(cons->NewInstance());
^
In file included from /var/www/.node-gyp/8.11.1/include/node/v8.h:26:0,
from /var/www/.node-gyp/8.11.1/include/node/node.h:63,
from ../../nan/nan.h:51,
from ../socket_watcher.hpp:8,
from ../socket_watcher.cpp:5:
/var/www/.node-gyp/8.11.1/include/node/v8.h:3851:52: note: declared here
V8_DEPRECATED("Use maybe version", Local<Object> NewInstance() const);
^
/var/www/.node-gyp/8.11.1/include/node/v8config.h:318:3: note: in definition of macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
SOLINK_MODULE(target) Release/obj.target/socketwatcher.node
COPY Release/socketwatcher.node
make: Leaving directory '/var/www/html/plugins/dashbutton/resources/node_modules/socketwatcher/build'
> pcap@2.0.0 install /var/www/html/plugins/dashbutton/resources/node_modules/node-dash-button/node_modules/pcap
> node-gyp rebuild
make: Entering directory '/var/www/html/plugins/dashbutton/resources/node_modules/node-dash-button/node_modules/pcap/build'
CXX(target) Release/obj.target/pcap_binding/pcap_binding.o
CXX(target) Release/obj.target/pcap_binding/pcap_session.o
../pcap_session.cc: In static member function 'static void PcapSession::New(const Nan::FunctionCallbackInfo<v8::Value>&)':
../pcap_session.cc:46:49: warning: 'v8::Local<v8::Object> v8::Function::NewInstance() const' is deprecated: Use maybe version [-Wdeprecated-declarations]
info.GetReturnValue().Set(cons->NewInstance());
^
In file included from /var/www/.node-gyp/8.11.1/include/node/v8.h:26:0,
from /var/www/.node-gyp/8.11.1/include/node/node.h:63,
from ../../../../nan/nan.h:51,
from ../pcap_session.h:4,
from ../pcap_session.cc:7:
/var/www/.node-gyp/8.11.1/include/node/v8.h:3851:52: note: declared here
V8_DEPRECATED("Use maybe version", Local<Object> NewInstance() const);
^
/var/www/.node-gyp/8.11.1/include/node/v8config.h:318:3: note: in definition of macro 'V8_DEPRECATED'
declarator __attribute__((deprecated(message)))
^~~~~~~~~~
../pcap_session.cc: In static member function 'static void PcapSession::PacketReady(u_char*, const pcap_pkthdr*, const u_char*)':
../pcap_session.cc:85:102: warning: 'v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)' is deprecated [-Wdeprecated-declarations]
Nan::MakeCallback(Nan::GetCurrentContext()->Global(), Nan::New(session->packet_ready_cb), 0, NULL);
^
In file included from ../pcap_session.h:4:0,
from ../pcap_session.cc:7:
../../../../nan/nan.h:929:46: note: declared here
NAN_DEPRECATED inline v8::Local<v8::Value> MakeCallback(
^~~~~~~~~~~~
SOLINK_MODULE(target) Release/obj.target/pcap_binding.node
COPY Release/pcap_binding.node
make: Leaving directory '/var/www/html/plugins/dashbutton/resources/node_modules/node-dash-button/node_modules/pcap/build'
added 57 packages in 87.163s
Fin de l'installation
Ma conf réseau est standard et OK :
Une idée ?
Merci
Tristan