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"
xav_38
Timide
Messages : 463
Inscription : 13 avr. 2016, 20:45
Localisation : Grenoble

Re: [Sujet officiel] Dash Button Amazon

Message par xav_38 » 27 janv. 2017, 09:12

Deux exemples pour avoir votre avis (idéalement il faudrait mettre en place des votes et un classement des propositions)

Exemple 1
• Description : Automatisation des volets en été pour garder la fraîcheur, tenant compte de l’exposition des fenêtre et de l’heure à laquelle le soleil est au zenith. J’ouvre les volets le matin au lever de la famille, mais je ferme en semaine les volets les plus exposés au soleil quand on est absent. En fonction du soleil, j’ouvre ou je ferme certains volets. Je tiens compte des Week-end, jours fériés et congés scolaires.
• Fonction(s) Jeedom utilisée(s) : Scénario
• Plugins utilisé(s) : RFXCOM pour des volets SOMFY RTS, DomoGeek pour connaître la saison et savoir si on est le Week-End, un jour férié ou en congés scolaire.
• Contact : xav_38

Exemple 2
• Description : Je contrôle la fin de charge d’une batterie (trottinette éledctrique et batterie de chariot de golf électrique). Le déclenchement se fait avec un DashButton, le chargeur est sur une prise Fibaro et je coupe le chargeur quand la consommation électrique de la prise descend sous un certain seuil. Ainsi je préserve la batterie de l’appareil. Au démarrage de la charge, je mets une tempo pour garantir que la batterie n’est pas encore chaude, et à la fin de charge je m’envoie une notification sur Telegram.
• Fonction(s) Jeedom utilisée(s) : Scénario et variable (mesure du temps de charge et de la consommation électrique cumulée)
• Plugins utilisé(s) : ZWAVE, Telegram, Dash Button.
• Contact : xav_38

fanfan
Timide
Messages : 7
Inscription : 12 janv. 2016, 19:45

Re: [Sujet officiel] Dash Button Amazon

Message par fanfan » 29 janv. 2017, 10:04

Bonjour a tous,

Je rencontre un problème, l'appui sur le bouton n'est pas vue par le plungin.
Lors de l'appui la led du bouton clignote orange puis rouge, je pense que c'est normal, vous me le confirmez ?

Jeedom tourne sous Docker (image officiel) sur un nas.

Le log de dépendance montre un pb, j'ai désinstallé nodejs et réinstallé une version supérieure mais rien n'y fait.

Si vous avait une idée ?

Log Dashbutton_dep:

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.
tcpdump is already the newest version.
The following package was automatically installed and is no longer required:
rlwrap
Use 'apt-get autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 57 not upgraded.
Version actuelle : v6.9.4
KO, version obsolète à upgrader
Suppression du Nodejs existant et installation du paquet recommandé
Reading package lists...
Building dependency tree...
Reading state information...
Package 'npm' is not installed, so not removed
The following packages will be REMOVED:
nodejs* rlwrap*
0 upgraded, 0 newly installed, 2 to remove and 57 not upgraded.
After this operation, 50.8 MB disk space will be freed.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 41198 files and directories currently installed.)
Removing nodejs (6.9.4-1nodesource1~jessie1) ...
Purging configuration files for nodejs (6.9.4-1nodesource1~jessie1) ...
Removing rlwrap (0.41-1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Utilisation du dépot officiel
## Installing the NodeSource Node.js v5.x repo...
## Populating apt-get cache...
+ apt-get update
Hit http://security.debian.org jessie/updates InRelease
Get:1 http://security.debian.org jessie/updates/main amd64 Packages [435 kB]
Ign http://http.us.debian.org jessie InRelease
Hit http://http.us.debian.org jessie Release.gpg
Hit http://http.us.debian.org jessie Release
Ign http://deb.debian.org jessie InRelease
Get:2 http://http.us.debian.org jessie/non-free amd64 Packages [101 kB]
Hit http://deb.debian.org jessie-updates InRelease
Hit http://deb.debian.org jessie Release.gpg
Get:3 http://deb.debian.org jessie-updates/main amd64 Packages [17.6 kB]
Hit https://deb.nodesource.com jessie InRelease
Get:4 https://deb.nodesource.com jessie/main Sources [762 B]
Hit http://deb.debian.org jessie Release
Get:5 http://deb.debian.org jessie/main amd64 Packages [9049 kB]
Get:6 https://deb.nodesource.com jessie/main amd64 Packages [959 B]
Fetched 9604 kB in 11s (815 kB/s)
Reading package lists...
## Confirming "jessie" is supported...
+ curl -sLf -o /dev/null 'https://deb.nodesource.com/node_5.x/dists/jessie/Release'
## Adding the NodeSource signing key to your keyring...
+ curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
OK
## Creating apt sources list file for the NodeSource Node.js v5.x repo...
+ echo 'deb https://deb.nodesource.com/node_5.x jessie main' > /etc/apt/sources.list.d/nodesource.list
+ echo 'deb-src https://deb.nodesource.com/node_5.x jessie main' >> /etc/apt/sources.list.d/nodesource.list
## Running `apt-get update` for you...
+ apt-get update
Hit http://security.debian.org jessie/updates InRelease
Ign http://deb.debian.org jessie InRelease
Hit http://deb.debian.org jessie-updates InRelease
Get:1 http://security.debian.org jessie/updates/main amd64 Packages [435 kB]
Ign http://http.us.debian.org jessie InRelease
Hit http://deb.debian.org jessie Release.gpg
Hit http://deb.debian.org jessie Release
Hit http://http.us.debian.org jessie Release.gpg
Get:2 http://deb.debian.org jessie-updates/main amd64 Packages [17.6 kB]
Hit http://http.us.debian.org jessie Release
Get:3 http://deb.debian.org jessie/main amd64 Packages [9049 kB]
Get:4 http://http.us.debian.org jessie/non-free amd64 Packages [101 kB]
Get:5 https://deb.nodesource.com jessie InRelease [3914 B]
Get:6 https://deb.nodesource.com jessie/main Sources [764 B]
Get:7 https://deb.nodesource.com jessie/main amd64 Packages [964 B]
Fetched 9608 kB in 11s (859 kB/s)
Reading package lists...
================================================================================
================================================================================
DEPRECATION WARNING
Node.js v5.x is no longer actively supported!
You will not receive security or critical stability updates for this version.
You should migrate to a supported version of Node.js as soon as possible.
Use the installation script that corresponds to the version of Node.js you
wish to install. e.g.
* https://deb.nodesource.com/setup_4.x — Node.js v4 LTS "Argon" (recommended)
* https://deb.nodesource.com/setup_6.x — Node.js v6 Current
Please see https://github.com/nodejs/LTS/ for details about which version
may be appropriate for you.
The NodeSource Node.js Linux distributions GitHub repository contains
information about which versions of Node.js and which Linux distributions
are supported and how to use the install scripts.
https://github.com/nodesource/distributions
================================================================================
================================================================================
Continuing in 10 seconds ...
## Run `apt-get install nodejs` (as root) to install Node.js v5.x and npm
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
rlwrap
The following NEW packages will be installed:
nodejs rlwrap
0 upgraded, 2 newly installed, 0 to remove and 57 not upgraded.
Need to get 9190 kB of archives.
After this operation, 43.4 MB of additional disk space will be used.
Get:1 http://deb.debian.org/debian/ jessie/main rlwrap amd64 0.41-1 [75.7 kB]
Get:2 https://deb.nodesource.com/node_5.x/ jessie/main nodejs amd64 5.12.0-1nodesource1~jessie1 [9114 kB]
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76, <> line 2.)
debconf: falling back to frontend: Readline
Fetched 9190 kB in 10s (890 kB/s)
Selecting previously unselected package rlwrap.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 37503 files and directories currently installed.)
Preparing to unpack .../rlwrap_0.41-1_amd64.deb ...
Unpacking rlwrap (0.41-1) ...
Selecting previously unselected package nodejs.
Preparing to unpack .../nodejs_5.12.0-1nodesource1~jessie1_amd64.deb ...
Unpacking nodejs (5.12.0-1nodesource1~jessie1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up rlwrap (0.41-1) ...
update-alternatives: using /usr/bin/rlwrap to provide /usr/bin/readline-editor (readline-editor) in auto mode
Setting up nodejs (5.12.0-1nodesource1~jessie1) ...
Version actuelle : v5.12.0
/var/www/html/plugins/dashbutton/node
`-- request@2.79.0
+-- aws-sign2@0.6.0
+-- aws4@1.5.0
+-- caseless@0.11.0
+-- combined-stream@1.0.5
| `-- delayed-stream@1.0.0
+-- extend@3.0.0
+-- forever-agent@0.6.1
+-- form-data@2.1.2
| `-- asynckit@0.4.0
+-- har-validator@2.0.6
| +-- chalk@1.1.3
| | +-- ansi-styles@2.2.1
| | +-- escape-string-regexp@1.0.5
| | +-- has-ansi@2.0.0
| | | `-- ansi-regex@2.1.1
| | +-- strip-ansi@3.0.1
| | `-- supports-color@2.0.0
| +-- commander@2.9.0
| | `-- graceful-readlink@1.0.1
| +-- is-my-json-valid@2.15.0
| | +-- generate-function@2.0.0
| | +-- generate-object-property@1.2.0
| | | `-- is-property@1.0.2
| | +-- jsonpointer@4.0.1
| | `-- xtend@4.0.1
| `-- pinkie-promise@2.0.1
|   `-- pinkie@2.0.4
+-- hawk@3.1.3
| +-- boom@2.10.1
| +-- cryptiles@2.0.5
| +-- hoek@2.16.3
| `-- sntp@1.0.9
+-- http-signature@1.1.1
| +-- assert-plus@0.2.0
| +-- jsprim@1.3.1
| | +-- extsprintf@1.0.2
| | +-- json-schema@0.2.3
| | `-- verror@1.3.6
| `-- sshpk@1.10.2
|   +-- asn1@0.2.3
|   +-- assert-plus@1.0.0
|   +-- bcrypt-pbkdf@1.0.0
|   +-- dashdash@1.14.1
|   | `-- assert-plus@1.0.0
|   +-- ecc-jsbn@0.1.1
|   +-- getpass@0.1.6
|   | `-- assert-plus@1.0.0
|   +-- jodid25519@1.0.2
|   +-- jsbn@0.1.0
|   `-- tweetnacl@0.14.5
+-- is-typedarray@1.0.0
+-- isstream@0.1.2
+-- json-stringify-safe@5.0.1
+-- mime-types@2.1.14
| `-- mime-db@1.26.0
+-- oauth-sign@0.8.2
+-- qs@6.3.0
+-- stringstream@0.0.5
+-- tough-cookie@2.3.2
| `-- punycode@1.4.1
+-- tunnel-agent@0.4.3
`-- uuid@3.0.1
npm WARN enoent ENOENT: no such file or directory, open '/var/www/html/plugins/dashbutton/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.
> socketwatcher@0.3.0 install /var/www/html/plugins/dashbutton/node/node_modules/socketwatcher
> node-gyp rebuild
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/5.12.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/var/www/html/plugins/dashbutton/node/node_modules/socketwatcher/.node-gyp"
make: Entering directory '/var/www/html/plugins/dashbutton/node/node_modules/socketwatcher/build'
CXX(target) Release/obj.target/socketwatcher/socket_watcher.o
SOLINK_MODULE(target) Release/obj.target/socketwatcher.node
COPY Release/socketwatcher.node
make: Leaving directory '/var/www/html/plugins/dashbutton/node/node_modules/socketwatcher/build'
> pcap@2.0.0 install /var/www/html/plugins/dashbutton/node/node_modules/pcap
> node-gyp rebuild
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/5.12.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/var/www/html/plugins/dashbutton/node/node_modules/pcap/.node-gyp"
make: Entering directory '/var/www/html/plugins/dashbutton/node/node_modules/pcap/build'
CXX(target) Release/obj.target/pcap_binding/pcap_binding.o
CXX(target) Release/obj.target/pcap_binding/pcap_session.o
SOLINK_MODULE(target) Release/obj.target/pcap_binding.node
COPY Release/pcap_binding.node
make: Leaving directory '/var/www/html/plugins/dashbutton/node/node_modules/pcap/build'
/var/www/html/plugins/dashbutton/node
+-- node-dash-button@0.6.1
| +-- pcap@2.0.0  (git+https://github.com/mranney/node_pcap.git#d920204745c8b00ef4b7a3fe27d902b263cdb70f)
| | +-- nan@2.5.1
| | `-- socketwatcher@0.3.0
| `-- underscore@1.8.3
`-- request@2.79.0
npm WARN enoent ENOENT: no such file or directory, open '/var/www/html/plugins/dashbutton/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.



Log Dashbutton_node:

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.
tcpdump is already the newest version.
The following package was automatically installed and is no longer required:
rlwrap
Use 'apt-get autoremove' to remove it.
0 upgraded, 0 newly installed, 0 to remove and 57 not upgraded.
Version actuelle : v6.9.4
KO, version obsolète à upgrader
Suppression du Nodejs existant et installation du paquet recommandé
Reading package lists...
Building dependency tree...
Reading state information...
Package 'npm' is not installed, so not removed
The following packages will be REMOVED:
nodejs* rlwrap*
0 upgraded, 0 newly installed, 2 to remove and 57 not upgraded.
After this operation, 50.8 MB disk space will be freed.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 41198 files and directories currently installed.)
Removing nodejs (6.9.4-1nodesource1~jessie1) ...
Purging configuration files for nodejs (6.9.4-1nodesource1~jessie1) ...
Removing rlwrap (0.41-1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Utilisation du dépot officiel
## Installing the NodeSource Node.js v5.x repo...
## Populating apt-get cache...
+ apt-get update
Hit http://security.debian.org jessie/updates InRelease
Get:1 http://security.debian.org jessie/updates/main amd64 Packages [435 kB]
Ign http://http.us.debian.org jessie InRelease
Hit http://http.us.debian.org jessie Release.gpg
Hit http://http.us.debian.org jessie Release
Ign http://deb.debian.org jessie InRelease
Get:2 http://http.us.debian.org jessie/non-free amd64 Packages [101 kB]
Hit http://deb.debian.org jessie-updates InRelease
Hit http://deb.debian.org jessie Release.gpg
Get:3 http://deb.debian.org jessie-updates/main amd64 Packages [17.6 kB]
Hit https://deb.nodesource.com jessie InRelease
Get:4 https://deb.nodesource.com jessie/main Sources [762 B]
Hit http://deb.debian.org jessie Release
Get:5 http://deb.debian.org jessie/main amd64 Packages [9049 kB]
Get:6 https://deb.nodesource.com jessie/main amd64 Packages [959 B]
Fetched 9604 kB in 11s (815 kB/s)
Reading package lists...
## Confirming "jessie" is supported...
+ curl -sLf -o /dev/null 'https://deb.nodesource.com/node_5.x/dists/jessie/Release'
## Adding the NodeSource signing key to your keyring...
+ curl -s https://deb.nodesource.com/gpgkey/nodesource.gpg.key | apt-key add -
OK
## Creating apt sources list file for the NodeSource Node.js v5.x repo...
+ echo 'deb https://deb.nodesource.com/node_5.x jessie main' > /etc/apt/sources.list.d/nodesource.list
+ echo 'deb-src https://deb.nodesource.com/node_5.x jessie main' >> /etc/apt/sources.list.d/nodesource.list
## Running `apt-get update` for you...
+ apt-get update
Hit http://security.debian.org jessie/updates InRelease
Ign http://deb.debian.org jessie InRelease
Hit http://deb.debian.org jessie-updates InRelease
Get:1 http://security.debian.org jessie/updates/main amd64 Packages [435 kB]
Ign http://http.us.debian.org jessie InRelease
Hit http://deb.debian.org jessie Release.gpg
Hit http://deb.debian.org jessie Release
Hit http://http.us.debian.org jessie Release.gpg
Get:2 http://deb.debian.org jessie-updates/main amd64 Packages [17.6 kB]
Hit http://http.us.debian.org jessie Release
Get:3 http://deb.debian.org jessie/main amd64 Packages [9049 kB]
Get:4 http://http.us.debian.org jessie/non-free amd64 Packages [101 kB]
Get:5 https://deb.nodesource.com jessie InRelease [3914 B]
Get:6 https://deb.nodesource.com jessie/main Sources [764 B]
Get:7 https://deb.nodesource.com jessie/main amd64 Packages [964 B]
Fetched 9608 kB in 11s (859 kB/s)
Reading package lists...
================================================================================
================================================================================
DEPRECATION WARNING
Node.js v5.x is no longer actively supported!
You will not receive security or critical stability updates for this version.
You should migrate to a supported version of Node.js as soon as possible.
Use the installation script that corresponds to the version of Node.js you
wish to install. e.g.
* https://deb.nodesource.com/setup_4.x — Node.js v4 LTS "Argon" (recommended)
* https://deb.nodesource.com/setup_6.x — Node.js v6 Current
Please see https://github.com/nodejs/LTS/ for details about which version
may be appropriate for you.
The NodeSource Node.js Linux distributions GitHub repository contains
information about which versions of Node.js and which Linux distributions
are supported and how to use the install scripts.
https://github.com/nodesource/distributions
================================================================================
================================================================================
Continuing in 10 seconds ...
## Run `apt-get install nodejs` (as root) to install Node.js v5.x and npm
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
rlwrap
The following NEW packages will be installed:
nodejs rlwrap
0 upgraded, 2 newly installed, 0 to remove and 57 not upgraded.
Need to get 9190 kB of archives.
After this operation, 43.4 MB of additional disk space will be used.
Get:1 http://deb.debian.org/debian/ jessie/main rlwrap amd64 0.41-1 [75.7 kB]
Get:2 https://deb.nodesource.com/node_5.x/ jessie/main nodejs amd64 5.12.0-1nodesource1~jessie1 [9114 kB]
debconf: unable to initialize frontend: Dialog
debconf: (No usable dialog-like program is installed, so the dialog based frontend cannot be used. at /usr/share/perl5/Debconf/FrontEnd/Dialog.pm line 76, <> line 2.)
debconf: falling back to frontend: Readline
Fetched 9190 kB in 10s (890 kB/s)
Selecting previously unselected package rlwrap.
(Reading database ... 
(Reading database ... 5%
(Reading database ... 10%
(Reading database ... 15%
(Reading database ... 20%
(Reading database ... 25%
(Reading database ... 30%
(Reading database ... 35%
(Reading database ... 40%
(Reading database ... 45%
(Reading database ... 50%
(Reading database ... 55%
(Reading database ... 60%
(Reading database ... 65%
(Reading database ... 70%
(Reading database ... 75%
(Reading database ... 80%
(Reading database ... 85%
(Reading database ... 90%
(Reading database ... 95%
(Reading database ... 100%
(Reading database ... 37503 files and directories currently installed.)
Preparing to unpack .../rlwrap_0.41-1_amd64.deb ...
Unpacking rlwrap (0.41-1) ...
Selecting previously unselected package nodejs.
Preparing to unpack .../nodejs_5.12.0-1nodesource1~jessie1_amd64.deb ...
Unpacking nodejs (5.12.0-1nodesource1~jessie1) ...
Processing triggers for man-db (2.7.0.2-5) ...
Setting up rlwrap (0.41-1) ...
update-alternatives: using /usr/bin/rlwrap to provide /usr/bin/readline-editor (readline-editor) in auto mode
Setting up nodejs (5.12.0-1nodesource1~jessie1) ...
Version actuelle : v5.12.0
/var/www/html/plugins/dashbutton/node
`-- request@2.79.0
+-- aws-sign2@0.6.0
+-- aws4@1.5.0
+-- caseless@0.11.0
+-- combined-stream@1.0.5
| `-- delayed-stream@1.0.0
+-- extend@3.0.0
+-- forever-agent@0.6.1
+-- form-data@2.1.2
| `-- asynckit@0.4.0
+-- har-validator@2.0.6
| +-- chalk@1.1.3
| | +-- ansi-styles@2.2.1
| | +-- escape-string-regexp@1.0.5
| | +-- has-ansi@2.0.0
| | | `-- ansi-regex@2.1.1
| | +-- strip-ansi@3.0.1
| | `-- supports-color@2.0.0
| +-- commander@2.9.0
| | `-- graceful-readlink@1.0.1
| +-- is-my-json-valid@2.15.0
| | +-- generate-function@2.0.0
| | +-- generate-object-property@1.2.0
| | | `-- is-property@1.0.2
| | +-- jsonpointer@4.0.1
| | `-- xtend@4.0.1
| `-- pinkie-promise@2.0.1
|   `-- pinkie@2.0.4
+-- hawk@3.1.3
| +-- boom@2.10.1
| +-- cryptiles@2.0.5
| +-- hoek@2.16.3
| `-- sntp@1.0.9
+-- http-signature@1.1.1
| +-- assert-plus@0.2.0
| +-- jsprim@1.3.1
| | +-- extsprintf@1.0.2
| | +-- json-schema@0.2.3
| | `-- verror@1.3.6
| `-- sshpk@1.10.2
|   +-- asn1@0.2.3
|   +-- assert-plus@1.0.0
|   +-- bcrypt-pbkdf@1.0.0
|   +-- dashdash@1.14.1
|   | `-- assert-plus@1.0.0
|   +-- ecc-jsbn@0.1.1
|   +-- getpass@0.1.6
|   | `-- assert-plus@1.0.0
|   +-- jodid25519@1.0.2
|   +-- jsbn@0.1.0
|   `-- tweetnacl@0.14.5
+-- is-typedarray@1.0.0
+-- isstream@0.1.2
+-- json-stringify-safe@5.0.1
+-- mime-types@2.1.14
| `-- mime-db@1.26.0
+-- oauth-sign@0.8.2
+-- qs@6.3.0
+-- stringstream@0.0.5
+-- tough-cookie@2.3.2
| `-- punycode@1.4.1
+-- tunnel-agent@0.4.3
`-- uuid@3.0.1
npm WARN enoent ENOENT: no such file or directory, open '/var/www/html/plugins/dashbutton/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.
> socketwatcher@0.3.0 install /var/www/html/plugins/dashbutton/node/node_modules/socketwatcher
> node-gyp rebuild
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/5.12.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/var/www/html/plugins/dashbutton/node/node_modules/socketwatcher/.node-gyp"
make: Entering directory '/var/www/html/plugins/dashbutton/node/node_modules/socketwatcher/build'
CXX(target) Release/obj.target/socketwatcher/socket_watcher.o
SOLINK_MODULE(target) Release/obj.target/socketwatcher.node
COPY Release/socketwatcher.node
make: Leaving directory '/var/www/html/plugins/dashbutton/node/node_modules/socketwatcher/build'
> pcap@2.0.0 install /var/www/html/plugins/dashbutton/node/node_modules/pcap
> node-gyp rebuild
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/5.12.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/var/www/html/plugins/dashbutton/node/node_modules/pcap/.node-gyp"
make: Entering directory '/var/www/html/plugins/dashbutton/node/node_modules/pcap/build'
CXX(target) Release/obj.target/pcap_binding/pcap_binding.o
CXX(target) Release/obj.target/pcap_binding/pcap_session.o
SOLINK_MODULE(target) Release/obj.target/pcap_binding.node
COPY Release/pcap_binding.node
make: Leaving directory '/var/www/html/plugins/dashbutton/node/node_modules/pcap/build'
/var/www/html/plugins/dashbutton/node
+-- node-dash-button@0.6.1
| +-- pcap@2.0.0  (git+https://github.com/mranney/node_pcap.git#d920204745c8b00ef4b7a3fe27d902b263cdb70f)
| | +-- nan@2.5.1
| | `-- socketwatcher@0.3.0
| `-- underscore@1.8.3
`-- request@2.79.0
npm WARN enoent ENOENT: no such file or directory, open '/var/www/html/plugins/dashbutton/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.
Merci d'avance pour vos retour.

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

Re: [Sujet officiel] Dash Button Amazon

Message par Anonyme » 29 janv. 2017, 10:08

Contenu supprimé à la demande de son auteur

fanfan
Timide
Messages : 7
Inscription : 12 janv. 2016, 19:45

Re: [Sujet officiel] Dash Button Amazon

Message par fanfan » 29 janv. 2017, 10:19

Ok, merci de ton retour.

fanfan
Timide
Messages : 7
Inscription : 12 janv. 2016, 19:45

Re: [Sujet officiel] Dash Button Amazon

Message par fanfan » 29 janv. 2017, 10:50

Par curiosité, qu'elle est la raison ?

videohone
Timide
Messages : 61
Inscription : 29 janv. 2017, 18:14

Re: [Sujet officiel] Dash Button Amazon

Message par videohone » 01 févr. 2017, 21:35

Bonsoir,

je viens de recevoir un dash button qui fonctionne bien sur amazon par contre impossible de trouver le peripherique dans ma livebox4

xav_38
Timide
Messages : 463
Inscription : 13 avr. 2016, 20:45
Localisation : Grenoble

Re: [Sujet officiel] Dash Button Amazon

Message par xav_38 » 02 févr. 2017, 08:51

C'est souvent difficile de trouver l'adresse MAC car le bouton disparait vite du réseau WIFI
Mais possesseur de la Livebox 4, j'ai configuré déjà 5 boutons Dash.

BetyOops
Timide
Messages : 107
Inscription : 13 avr. 2016, 14:35

Re: [Sujet officiel] Dash Button Amazon

Message par BetyOops » 02 févr. 2017, 09:10

Il n'y a pas un historique des appareils connectés comme sur Fbx ?
Lenovo M720 Tiny - VMWare Debian 9 Jeedom DIY
Zwave - Bluetooth
Alexa Echo - Harmony Elite

xav_38
Timide
Messages : 463
Inscription : 13 avr. 2016, 20:45
Localisation : Grenoble

Re: [Sujet officiel] Dash Button Amazon

Message par xav_38 » 02 févr. 2017, 10:30

Je n'ai pas réussi. En général je fais tourner une appli de type http://www.advanced-ip-scanner.com/fr/ pour surveiller le réseau pendant que je clique sur le dash.

Mais le mieux c'est de gérer le device sur la carte des appareils connecté sur l'interface de la Livebox (192.168.1.1), car après tu pourras bloquer l'accès à Internet du Dash ce qui évite des notifs intempestives de l'appli Amazon sur le tel.

videohone
Timide
Messages : 61
Inscription : 29 janv. 2017, 18:14

Re: [Sujet officiel] Dash Button Amazon

Message par videohone » 02 févr. 2017, 18:01

Ok merci je vais tester

Avatar de l’utilisateur
noodom
Actif
Messages : 982
Inscription : 13 juil. 2014, 17:25
Contact :

Re: [Sujet officiel] Dash Button Amazon

Message par noodom » 02 févr. 2017, 18:11

xav_38 a écrit :Je n'ai pas réussi. En général je fais tourner une appli de type http://www.advanced-ip-scanner.com/fr/ pour surveiller le réseau pendant que je clique sur le dash.

Mais le mieux c'est de gérer le device sur la carte des appareils connecté sur l'interface de la Livebox (192.168.1.1), car après tu pourras bloquer l'accès à Internet du Dash ce qui évite des notifs intempestives de l'appli Amazon sur le tel.
C'est pas plus mal en effet de bloquer à la base les requêtes,
Mais tu peux aussi désactiver les notifications amazon depuis ton compte.

Ça me fait penser du coup que je vais regarder comment bloquer l'accès extérieur depuis une freebox histoire d éviter de se faire epier par amazon qui doit se poser des questions sur ces requêtes constamment en erreur..


Envoyé en utilisant Tapatalk

metamax
Timide
Messages : 189
Inscription : 18 févr. 2016, 16:50

Re: [Sujet officiel] Dash Button Amazon

Message par metamax » 02 févr. 2017, 22:57

Pour ma part, les dépendances sont OK.
Par contre, le démon ne se lance pas.
Une idée ?
Merci
JEEDOM Stable sur RPI3 + SSD
STICK ZWAVE AEON GEN5 + RFXCOM

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

Re: [Sujet officiel] Dash Button Amazon

Message par Anonyme » 02 févr. 2017, 23:02

Contenu supprimé à la demande de son auteur

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

Re: [Sujet officiel] Dash Button Amazon

Message par lunarok » 02 févr. 2017, 23:02

Oui la FAQ de la doc

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

Avatar de l’utilisateur
Mardup
Timide
Messages : 188
Inscription : 16 mars 2015, 15:05

Re: [Sujet officiel] Dash Button Amazon

Message par Mardup » 03 févr. 2017, 11:12

noodom a écrit : (...)
Ça me fait penser du coup que je vais regarder comment bloquer l'accès extérieur depuis une freebox histoire d éviter de se faire epier par amazon qui doit se poser des questions sur ces requêtes constamment en erreur..
(...)
Avec le contrôle parental de la Freebox ça le fait très bien ;)

Avatar de l’utilisateur
noodom
Actif
Messages : 982
Inscription : 13 juil. 2014, 17:25
Contact :

Re: [Sujet officiel] Dash Button Amazon

Message par noodom » 03 févr. 2017, 11:42

Ah oui, bonne idée !
Bon, par contre, après quelques recherches, j'ai l'impression que ce n'est pas possible avec la freebox crystal


Envoyé en utilisant Tapatalk

Avatar de l’utilisateur
Mardup
Timide
Messages : 188
Inscription : 16 mars 2015, 15:05

Re: [Sujet officiel] Dash Button Amazon

Message par Mardup » 03 févr. 2017, 12:28

metamax a écrit :Pour ma part, les dépendances sont OK.
Par contre, le démon ne se lance pas.
Une idée ?
Merci
Bonjour ,

Je suis dans la même situation .
Install jeedom recente sur PI ( net install )
Install plug-in + un bouton

tout est OK sauf le démon

j'ai desinstallé / re installé le plug-in
re demarré jeedom

Toujours meme pb.

Ci joint dans le ZIP
- le screen de la conf du plugin
- le screen de la conf d'un bouton
- dashbutton_dep.log
- dashbutton_node.log



Merci de votre aide

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

Re: [Sujet officiel] Dash Button Amazon

Message par Anonyme » 03 févr. 2017, 13:07

Contenu supprimé à la demande de son auteur

Avatar de l’utilisateur
Mardup
Timide
Messages : 188
Inscription : 16 mars 2015, 15:05

Re: [Sujet officiel] Dash Button Amazon

Message par Mardup » 03 févr. 2017, 17:41

Merci de la réponse
Voilà les logs

Code : Tout sélectionner

Début de l'installation
Reading package lists...
Building dependency tree...
Reading state information...
The following extra packages will be installed:
libpcap0.8-dev
The following NEW packages will be installed:
libpcap-dev libpcap0.8-dev tcpdump
0 upgraded, 3 newly installed, 0 to remove and 1 not upgraded.
Need to get 351 kB/588 kB of archives.
After this operation, 1,493 kB of additional disk space will be used.
Err http://mirrordirector.raspbian.org/raspbian/ jessie/main tcpdump armhf 4.6.2-5+deb8u1
404  Not Found [IP: 2001:41c9:1:3ce::11 80]
E: Failed to fetch http://mirrordirector.raspbian.org/raspbian/pool/main/t/tcpdump/tcpdump_4.6.2-5+deb8u1_armhf.deb  404  Not Found [IP: 2001:41c9:1:3ce::11 80]
E: Unable to fetch some archives, maybe run apt-get update or try with --fix-missing?
Version actuelle : v5.12.0
Ok, version suffisante
/var/www/html/plugins/dashbutton/node
└─┬ request@2.79.0
├── aws-sign2@0.6.0
├── aws4@1.5.0
├── caseless@0.11.0
├─┬ combined-stream@1.0.5
│ └── delayed-stream@1.0.0
├── extend@3.0.0
├── forever-agent@0.6.1
├─┬ form-data@2.1.2
│ └── asynckit@0.4.0
├─┬ har-validator@2.0.6
│ ├─┬ chalk@1.1.3
│ │ ├── ansi-styles@2.2.1
│ │ ├── escape-string-regexp@1.0.5
│ │ ├─┬ has-ansi@2.0.0
│ │ │ └── ansi-regex@2.1.1
│ │ ├── strip-ansi@3.0.1
│ │ └── supports-color@2.0.0
│ ├─┬ commander@2.9.0
│ │ └── graceful-readlink@1.0.1
│ ├─┬ is-my-json-valid@2.15.0
│ │ ├── generate-function@2.0.0
│ │ ├─┬ generate-object-property@1.2.0
│ │ │ └── is-property@1.0.2
│ │ ├── jsonpointer@4.0.1
│ │ └── xtend@4.0.1
│ └─┬ pinkie-promise@2.0.1
│   └── pinkie@2.0.4
├─┬ hawk@3.1.3
│ ├── boom@2.10.1
│ ├── cryptiles@2.0.5
│ ├── hoek@2.16.3
│ └── sntp@1.0.9
├─┬ http-signature@1.1.1
│ ├── assert-plus@0.2.0
│ ├─┬ jsprim@1.3.1
│ │ ├── extsprintf@1.0.2
│ │ ├── json-schema@0.2.3
│ │ └── verror@1.3.6
│ └─┬ sshpk@1.10.2
│   ├── 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.6
│   │ └── assert-plus@1.0.0
│   ├── jodid25519@1.0.2
│   ├── jsbn@0.1.0
│   └── tweetnacl@0.14.5
├── is-typedarray@1.0.0
├── isstream@0.1.2
├── json-stringify-safe@5.0.1
├─┬ mime-types@2.1.14
│ └── mime-db@1.26.0
├── oauth-sign@0.8.2
├── qs@6.3.0
├── stringstream@0.0.5
├─┬ tough-cookie@2.3.2
│ └── punycode@1.4.1
├── tunnel-agent@0.4.3
└── uuid@3.0.1
npm WARN enoent ENOENT: no such file or directory, open '/var/www/html/plugins/dashbutton/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.
> socketwatcher@0.3.0 install /var/www/html/plugins/dashbutton/node/node_modules/socketwatcher
> node-gyp rebuild
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/5.12.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/var/www/html/plugins/dashbutton/node/node_modules/socketwatcher/.node-gyp"
make: Entering directory '/var/www/html/plugins/dashbutton/node/node_modules/socketwatcher/build'
CXX(target) Release/obj.target/socketwatcher/socket_watcher.o
SOLINK_MODULE(target) Release/obj.target/socketwatcher.node
COPY Release/socketwatcher.node
make: Leaving directory '/var/www/html/plugins/dashbutton/node/node_modules/socketwatcher/build'
> pcap@2.0.0 install /var/www/html/plugins/dashbutton/node/node_modules/pcap
> node-gyp rebuild
gyp WARN EACCES user "root" does not have permission to access the dev dir "/root/.node-gyp/5.12.0"
gyp WARN EACCES attempting to reinstall using temporary dev dir "/var/www/html/plugins/dashbutton/node/node_modules/pcap/.node-gyp"
make: Entering directory '/var/www/html/plugins/dashbutton/node/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:87: 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/node/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:276:23)
gyp ERR! stack     at emitTwo (events.js:100:13)
gyp ERR! stack     at ChildProcess.emit (events.js:185:7)
gyp ERR! stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:204:12)
gyp ERR! System Linux 4.4.38-v7+
gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /var/www/html/plugins/dashbutton/node/node_modules/pcap
gyp ERR! node -v v5.12.0
gyp ERR! node-gyp -v v3.3.1
gyp ERR! not ok
/var/www/html/plugins/dashbutton/node
├── request@2.79.0
└── underscore@1.8.3
npm WARN enoent ENOENT: no such file or directory, open '/var/www/html/plugins/dashbutton/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 ERR! Linux 4.4.38-v7+
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "node-dash-button"
npm ERR! node v5.12.0
npm ERR! npm  v3.8.6
npm ERR! code ELIFECYCLE
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 'node-gyp rebuild'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the pcap package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node-gyp rebuild
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs pcap
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls pcap
npm ERR! There is likely additional logging output above.
npm ERR! Please include the following file with any support request:
npm ERR!     /var/www/html/plugins/dashbutton/node/npm-debug.log

Code : Tout sélectionner

Error: Cannot find module 'node-dash-button'
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/dashbutton/node/dashbutton.js:1:81)
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)
module.js:341
throw err;
^
Error: Cannot find module 'node-dash-button'
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/dashbutton/node/dashbutton.js:1:81)
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)
module.js:341
throw err;
^
Error: Cannot find module 'node-dash-button'
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/dashbutton/node/dashbutton.js:1:81)
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)

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

Re: [Sujet officiel] Dash Button Amazon

Message par Anonyme » 03 févr. 2017, 18:01

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 6 invités