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] Dash Button Amazon

Pour échanger sur les plugins classés en catégorie "Objets connectés"
Tristan35
Timide
Messages : 407
Inscription : 09 juin 2017, 21:53
Localisation : Rennes

Re: [Plugin Tiers][Sujet Principal] Dash Button Amazon

Message par Tristan35 » 13 avr. 2018, 12:52

Bonjour,

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
Et Dashbutton_node reste vide.

Ma conf réseau est standard et OK :
Capture.PNG
Capture.PNG (51.24 Kio) Consulté 2074 fois
Une idée ?

Merci :)

Tristan

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

Re: [Plugin Tiers][Sujet Principal] Dash Button Amazon

Message par lunarok » 13 avr. 2018, 14:56

Tristan35 a écrit :
13 avr. 2018, 12:52

Concernant le MAC justement, une importance sur le format ? Minuscules ou majuscules ?
C'est indiqué dans le fil et dans la doc
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

Tristan35
Timide
Messages : 407
Inscription : 09 juin 2017, 21:53
Localisation : Rennes

Re: [Plugin Tiers][Sujet Principal] Dash Button Amazon

Message par Tristan35 » 13 avr. 2018, 15:05

Exact, c'est dans le fil, mais la doc n'indique que le fait de mettre des ":" et non des "-" comme séparateur :
Il faut créer ensuite un équipement par Dash et y saisir l’adresse MAC, en respectant le format suivant : 00:00:00:00:00:00
Bon, donc ça ne vient pas d'ici alors, parce que j'ai justement mis des majuscules et des ":" :(

sebtec
Timide
Messages : 80
Inscription : 21 août 2015, 16:24

Re: [Plugin Tiers][Sujet Principal] Dash Button Amazon

Message par sebtec » 18 avr. 2018, 10:20

Bonjour

Suite à une réinstallation de mon système je n'arrive pas à refaire fonctionner le plugin dash button.
Le demon se coupe en permanence malgré l'intégration d'un dash.

J'ai refait une install complète et idem

RPI 3 + SSD

dashbutton_dep :

Code : Tout sélectionner


Début de l'installation
Reading package lists...
Building dependency tree...
Reading state information...
The following additional packages will be installed:
libpcap0.8-dev
The following NEW packages will be installed:
libpcap-dev libpcap0.8-dev
0 upgraded, 2 newly installed, 0 to remove and 0 not upgraded.
Need to get 245 kB of archives.
After this operation, 625 kB of additional disk space will be used.
Do you want to continue? [Y/n] Abort.
--2018-04-18 08:00:10--  https://raw.githubusercontent.com/lunarok/jeedom_nodejs/master/nodejs.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.12.133
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.12.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1458 (1.4K) [text/plain]
Saving to: ‘dependencies.sh’
0K .                                                     100% 16.9M=0s
2018-04-18 08:00:10 (16.9 MB/s) - ‘dependencies.sh’ saved [1458/1458]
Version actuelle : 8
Hit:1 http://archive.raspberrypi.org/debian stretch InRelease
Hit:2 http://raspbian.raspberrypi.org/raspbian stretch InRelease
Hit:3 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+rpi1).
0 upgraded, 0 newly installed, 0 to remove and 0 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/pcap
> node-gyp rebuild
make: Entering directory '/var/www/html/plugins/dashbutton/resources/node_modules/pcap/build'
CXX(target) Release/obj.target/pcap_binding/pcap_binding.o
../pcap_binding.cc:2:23: fatal error: pcap/pcap.h: No such file or directory
#include <pcap/pcap.h>
^
compilation terminated.
pcap_binding.target.mk:94: recipe for target 'Release/obj.target/pcap_binding/pcap_binding.o' failed
make: *** [Release/obj.target/pcap_binding/pcap_binding.o] Error 1
make: Leaving directory '/var/www/html/plugins/dashbutton/resources/node_modules/pcap/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:258:23)
gyp ERR! stack     at emitTwo (events.js:126:13)
gyp ERR! stack     at ChildProcess.emit (events.js:214:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:198:12)
gyp ERR! System Linux 4.14.34-v7+
gyp ERR! command "/usr/bin/node" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /var/www/html/plugins/dashbutton/resources/node_modules/pcap
gyp ERR! node -v v8.11.1
gyp ERR! node-gyp -v v3.6.2
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! pcap@2.0.0 install: `node-gyp rebuild`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the pcap@2.0.0 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR!     /var/www/.npm/_logs/2018-04-18T08_00_57_275Z-debug.log
Fin de l'installation

dashbutton_node :

Code : Tout sélectionner

module.js:549
throw err;
^
Error: Cannot find module 'node-dash-button'
at Function.Module._resolveFilename (module.js:547:15)
at Function.Module._load (module.js:474:25)
at Module.require (module.js:596:17)
at require (internal/module.js:11:18)
at Object.<anonymous> (/var/www/html/plugins/dashbutton/resources/dashbutton.js:1:81)
at Module._compile (module.js:652:30)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
Si quelqu'un peut m'aider
RPI3 +SSD Z-Wave, RFXCOM, BLEA (Stable)
1 x Station Netamo + 3 modules
2 x Caméra Heden.

Avatar de l’utilisateur
Theking31
Actif
Messages : 1182
Inscription : 21 sept. 2017, 11:13
Localisation : Toulouse - Le Vernet

Re: [Plugin Tiers][Sujet Principal] Dash Button Amazon

Message par Theking31 » 18 avr. 2018, 11:54

Je suis qu'un novice mais pour moi ça a marché :)

Code : Tout sélectionner

sudo apt-get install libpcap-dev
Jeedom 4.0.23 sur Intel NUC 6CAYH | Linux 4.9.0-11-amd64 | Debian 9.11
Rfxcom | Z-Wave Plus Z-Stick GEN5 | Conbee 2 | => sur hub alimenté
Blea| Brodlink | Xiaomi |ESPeasy | Wifilightv2

sebtec
Timide
Messages : 80
Inscription : 21 août 2015, 16:24

Re: [Plugin Tiers][Sujet Principal] Dash Button Amazon

Message par sebtec » 18 avr. 2018, 12:06

Theking31 a écrit :
18 avr. 2018, 11:54
Je suis qu'un novice mais pour moi ça a marché :)

Code : Tout sélectionner

sudo apt-get install libpcap-dev
nickel après réinstallation des dépendances

Merci
RPI3 +SSD Z-Wave, RFXCOM, BLEA (Stable)
1 x Station Netamo + 3 modules
2 x Caméra Heden.

Avatar de l’utilisateur
Theking31
Actif
Messages : 1182
Inscription : 21 sept. 2017, 11:13
Localisation : Toulouse - Le Vernet

Re: [Plugin Tiers][Sujet Principal] Dash Button Amazon

Message par Theking31 » 18 avr. 2018, 12:20

Content de donner à mon tour un peu d'aide...

;)
Jeedom 4.0.23 sur Intel NUC 6CAYH | Linux 4.9.0-11-amd64 | Debian 9.11
Rfxcom | Z-Wave Plus Z-Stick GEN5 | Conbee 2 | => sur hub alimenté
Blea| Brodlink | Xiaomi |ESPeasy | Wifilightv2

Tristan35
Timide
Messages : 407
Inscription : 09 juin 2017, 21:53
Localisation : Rennes

Re: [Plugin Tiers][Sujet Principal] Dash Button Amazon

Message par Tristan35 » 20 avr. 2018, 04:39

Hello,

Je viens de refaire une fresh install sur un Debian 8 (à cause du bug du bluetooth sur VM Proxmox en Debian 9), et après restauration et mise à jour du plugin, mon problème est résolu, je peux profiter de mon Dash Button :D Merci !

Kims
Timide
Messages : 23
Inscription : 20 mars 2018, 00:50

Re: [Plugin Tiers][Sujet Principal] Dash Button Amazon

Message par Kims » 28 avr. 2018, 21:56

Comment je peux bloquer l’accès internet de mes dash ? j'ai une box Red by sfr... je ne trouve pas l'option

Avatar de l’utilisateur
kerdale
Actif
Messages : 1644
Inscription : 25 sept. 2016, 11:38
Localisation : Penn-ar-Bed

Re: [Plugin Tiers][Sujet Principal] Dash Button Amazon

Message par kerdale » 29 avr. 2018, 10:20

@Kims
Aucune soluce avec juste la box sfr. Il faut passer par un équipement tier
1 NUC & 1 RPI3/Msata V3.3.31, EnOcean, Z-wave,
Rflink, IPX800V3, carte 8 rl IP, IR_V3, Xiaomi gateway, JPI/APK/tel Android dédié, Somfy RTS, Rf433Mhz, Xiaomi, Bm280 , Broadlink,WifiLights

Kims
Timide
Messages : 23
Inscription : 20 mars 2018, 00:50

Re: [Plugin Tiers][Sujet Principal] Dash Button Amazon

Message par Kims » 29 avr. 2018, 17:16

Pourrais tu m'indiquer comment faire ??

Avatar de l’utilisateur
Fabrice
Modérateur
Messages : 3424
Inscription : 27 oct. 2016, 22:26
Localisation : Planète terre, IDF, 93

Re: [Plugin Tiers][Sujet Principal] Dash Button Amazon

Message par Fabrice » 29 avr. 2018, 18:07

Bonsoir.

Il faut ajouter un routeur et mettre votre box en bridge.

Ou réaliser un firewall avec un autre pi.

Si ce n'est que pour cela c'est inutile. Le plus simple étant de remplacer les boutons Amazon pour une télécommande Rfxcom par exemple.
Helper Officiel Jeedom
- Jeedom : 3.3.36
- Protocole : Z-Wave / RFXcom / BLEA
- Raspberry Pi : Pi 3 B+ / Pi 3 B / Pi Zero W

Avatar de l’utilisateur
Jeandhom
Actif
Messages : 1386
Inscription : 20 oct. 2015, 17:32

Re: [Plugin Tiers][Sujet Principal] Dash Button Amazon

Message par Jeandhom » 29 avr. 2018, 18:20

Ou avec un serveur DHCP, donner une fausse gateway.

Kims
Timide
Messages : 23
Inscription : 20 mars 2018, 00:50

Re: [Plugin Tiers][Sujet Principal] Dash Button Amazon

Message par Kims » 29 avr. 2018, 18:39

Ca ne sera pas uniquement pour les bouton dash, mais je voudrais également bloqué l’accès pour mon gateway xiaomi, ainsi que les ampoule, et rester qu'en reseau local...

Je possède un Raspberry pi avec jeedom, quand j'ai mis la gateway xiaomi ainsi que les ampoules et egalement les dash bouton, c'est directement en wifi sur ma box.

Avatar de l’utilisateur
Fabrice
Modérateur
Messages : 3424
Inscription : 27 oct. 2016, 22:26
Localisation : Planète terre, IDF, 93

Re: [Plugin Tiers][Sujet Principal] Dash Button Amazon

Message par Fabrice » 29 avr. 2018, 18:46

Jeandhom a écrit :
29 avr. 2018, 18:20
Ou avec un serveur DHCP, donner une fausse gateway.
Oui aussi. Mais sans la box SFR / Numéricable.
- Celle ci n'a pas d'options évoluées.

Il faut la passer en bridge et y ajouter un routeur.
Helper Officiel Jeedom
- Jeedom : 3.3.36
- Protocole : Z-Wave / RFXcom / BLEA
- Raspberry Pi : Pi 3 B+ / Pi 3 B / Pi Zero W

Kims
Timide
Messages : 23
Inscription : 20 mars 2018, 00:50

Re: [Plugin Tiers][Sujet Principal] Dash Button Amazon

Message par Kims » 29 avr. 2018, 18:53

J'essaie un peu comprendre :), si je fais mon raspberry en router (j'ai vu des tutos sur cela), et que je met les dash button, ampoule xiaomi , etc... sur le router (du raspberry), je peux après leur "interdire" d’accès internet ?
Je ne sais pas trop où je vais, c'est pour ca que j'ai pas mal de question :)

Anonyme
Actif
Messages : 10082
Inscription : 09 août 2014, 12:15

Re: [Plugin Tiers][Sujet Principal] Dash Button Amazon

Message par Anonyme » 29 avr. 2018, 18:55

Contenu supprimé à la demande de son auteur

Avatar de l’utilisateur
Jeandhom
Actif
Messages : 1386
Inscription : 20 oct. 2015, 17:32

Re: [Plugin Tiers][Sujet Principal] Dash Button Amazon

Message par Jeandhom » 29 avr. 2018, 19:50

Fabrice a écrit :
29 avr. 2018, 18:46
Jeandhom a écrit :
29 avr. 2018, 18:20
Ou avec un serveur DHCP, donner une fausse gateway.
Oui aussi. Mais sans la box SFR / Numéricable.
- Celle ci n'a pas d'options évoluées.

Il faut la passer en bridge et y ajouter un routeur.
Il n'est pas nécessaire d'avoir un routeur pour avoir un serveur DHCP.
Une simple machine 24/7 suffit.

Avatar de l’utilisateur
Juli3n
Timide
Messages : 37
Inscription : 30 mai 2016, 11:20
Localisation : Dieppe
Contact :

Re: [Plugin Tiers][Sujet Principal] Dash Button Amazon

Message par Juli3n » 12 mai 2018, 13:19

Bonjour à tous,

j'ai comme vous autre le souci, du status du Daemon qui reste sur NOK.
les dépendances sont installés.
ci-dessous mon log :
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 0 not upgraded.
--2018-05-12 11:13:08-- https://raw.githubusercontent.com/lunar ... /nodejs.sh
Resolving raw.githubusercontent.com (raw.githubusercontent.com)... 151.101.0.133, 151.101.64.133, 151.101.128.133, ...
Connecting to raw.githubusercontent.com (raw.githubusercontent.com)|151.101.0.133|:443... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1458 (1.4K) [text/plain]
Saving to: 'dependencies.sh'
0K . 100% 16.0M=0s
2018-05-12 11:13:08 (16.0 MB/s) - 'dependencies.sh' saved [1458/1458]
Version actuelle : 8
Hit:1 http://raspbian.raspberrypi.org/raspbian stretch InRelease
Hit:2 http://archive.raspberrypi.org/debian stretch InRelease
Hit:3 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+rpi1).
0 upgraded, 0 newly installed, 0 to remove and 0 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/pcap
> node-gyp rebuild
make: Entering directory '/var/www/html/plugins/dashbutton/resources/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/pcap/build'
added 57 packages in 34.195s
Fin de l'installation
j'ai beau chercher je ne vois pas d’où vient l'erreur.
merci pour votre aide.
//Juli3n

Anonyme
Actif
Messages : 10082
Inscription : 09 août 2014, 12:15

Re: [Plugin Tiers][Sujet Principal] Dash Button Amazon

Message par Anonyme » 12 mai 2018, 13:42

Contenu supprimé à la demande de son auteur

Répondre

Revenir vers « [Catégorie] Objets connectés »

Qui est en ligne ?

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