Navigation

    Logo
    • Register
    • Login
    • Search
    • Recent
    • Tags
    • Unread
    • Categories
    • Unreplied
    • Popular
    • GitHub
    • Docu
    • Hilfe
    1. Home
    2. Deutsch
    3. ioBroker Allgemein
    4. Amazon Dash Button für ioBroker nutzen

    NEWS

    • ioBroker@Smart Living Forum Solingen, 14.06. - Agenda added

    • ioBroker goes Matter ... Matter Adapter in Stable

    • Monatsrückblick - April 2025

    Amazon Dash Button für ioBroker nutzen

    This topic has been deleted. Only users with topic management privileges can see it.
    • P
      PArt last edited by

      socketwatcher ist teil von pcap und für das "Sniffen" der Anmeldepakete verantwortlich und ist der Teil, der eben individuell kompiliert werden muss …

      1 Reply Last reply Reply Quote 0
      • oldi-2000
        oldi-2000 last edited by

        ??? [emoji20]

        Gesendet von meinem LG-H815 mit Tapatalk

        1 Reply Last reply Reply Quote 0
        • oldi-2000
          oldi-2000 last edited by

          So ich habe Python jetzt nach einiger Rechereche installiert und in die configs von node-Gyp und npm eingetragen.

          Jetzt habe ich bei der Adapter Installation diesen Fehler:````
          $ ./iobroker add amazon-dash
          npm install iobroker.amazon-dash --production --prefix "/opt/iobroker" (System call)
          gyp

          ERR!
          UNCAUGHT EXCEPTION
          gyp

          ERR! stack Error: spawn EACCESgyp
          ERR!
          stack at exports._errnoException (util.js:907:11)gyp ERR! stack at ChildProcess.spawn (internal/child_process.js:298:11)
          gyp ERR! stack at exports.spawn (child_process.js:362:9)
          gyp ERR! stack at exports.execFile (child_process.js:151:15)
          gyp ERR! stack at checkPythonVersion (/usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:419:5)
          gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/node-gyp/lib/configure.js:361:9
          gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/which.js:88:20
          gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/node_modules/isexe/index.js:44:5

          gyp ERR! stack at /usr/lib/node_modules/npm/node_modules/which/node_modules/isexe/access.js:8:5gyp ERR! stack at FSReqWrap.oncomplete (fs.js:82:15)
          gyp ERR! System
          Linux 4.4.0-36-genericgyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
          gyp
          ERR! cwd /opt/iobroker/node_modules/iobroker.amazon-dash/node_modules/pcap/node_modules/socketwatcher
          gyp ERR! node -v v4.5.0gyp ERR! node-gyp -v v3.4.0
          gyp ERR! This is a bug in node-gyp.
          gyp ERR! Try to update node-gyp and file an Issue if it does not help:
          gyp ERR! <https: github.com/nodejs/node-gyp/issues="">

          npm

          ERR!
          Linux 4.4.0-36-genericnpm
          ERR!
          argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "iobroker.amazon-dash" "--production" "--prefix" "/opt/iobroker"npm ERR! node v4.5.0
          npm
          ERR! npm v2.15.9npm ERR! code ELIFECYCLE

          npm ERR! socketwatcher@0.3.0 install: node-gyp rebuildnpm ERR!
          Exit status 7
          npm ERR!
          npm ERR! Failed at the socketwatcher@0.3.0 install script 'node-gyp rebuild'.
          npm ERR! This is most likely a problem with the socketwatcher 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 socketwatcher
          npm ERR! Or if that isn't available, you can get their info via:
          npm ERR!
          npm ERR! npm owner ls socketwatcher
          npm ERR! There is likely additional logging output above.

          npm
          ERR! Please include the following file with any support request:npm ERR! /npm-debug.log

          ERROR: host.iobrokerVM Cannot install iobroker.amazon-dash: 1
          ERROR: process exited with code 25</https:>

          
          Alle anderen Adapter lassen sich installieren und funktionieren.
          
          Mein Wissensstand reicht einfach nicht aus das zu lösen und das Internet hilft auch nicht mehr weiter. :cry:
          
          Hat einer ne Idee?
          
          MFG
          
          Daniel
          1 Reply Last reply Reply Quote 0
          • Patrick
            Patrick last edited by

            Hat sonst keiner das Problem?

            1 Reply Last reply Reply Quote 0
            • Bluefox
              Bluefox last edited by

              > This is a bug innode-gyp `

              Versuch mal

              npm install node-gyp –force -g

              (Vielleicht als sudo)

              Kann es sein, dass du node.js Version upgedated hast?

              1 Reply Last reply Reply Quote 0
              • Homoran
                Homoran Global Moderator Administrators last edited by

                @oldi-2000:

                ERR! stack Error: spawn EACCESgyp `
                Welcher User??

                @Bluefox:

                Kann es sein, dass du node.js Version upgedated hast? `
                @oldi-2000:

                node -v v4.5.0gyp ERR! node-gyp -v v3.4.0 `

                Gruß

                Rainer

                1 Reply Last reply Reply Quote 0
                • oldi-2000
                  oldi-2000 last edited by

                  Was ist mit node, zu neu?? Und wie, welcher user??

                  Gesendet von meinem LG-H815 mit Tapatalk

                  1 Reply Last reply Reply Quote 0
                  • S
                    sirtwist672 last edited by

                    Hallo,

                    Ich hab folgendes Phänomen:

                    bei mir erscheinen in den Objekten insgesamt 3 Geräte, obwohl ich nur einen Dash habe

                    beim Nachforschen der Mac Adressen bin dann darauf gestoßen das die anderen Geräte ein Fire tv stick und ein Kindle Ebook sind.

                    kann man die irgendwie rausfiltern?

                    ist aber nicht so wichtig, macht die Sache nur etwas unübersichtlicher.

                    Wenn mans weis kann man die weiteren Geräte ja Ignorieren

                    Sirtwist

                    1 Reply Last reply Reply Quote 0
                    • C
                      charlyphyro last edited by

                      Hallo zusammen,

                      Hat auf anhieb funktioniert! 1000 Dank für den Adapter!

                      Wer möchte, hab eine Vorlage gebastelt. So kann man sich sein eigenes Etikett erstellen.

                      Charly
                      978_dash_button.jpg
                      978_img_0857.jpg

                      1 Reply Last reply Reply Quote 0
                      • M
                        Moses1989 last edited by

                        Ich habe das gleiche Problem wie oldi-2000.

                        Server läuft auch mit Ubuntu 16 und ich bekomme den Dash Button Adapter auch nicht installiert.

                        Ich habe Python 2.7.12 und Node v0.10.33 drauf.

                        $ ./iobroker add amazon-dash
                        npm install iobroker.amazon-dash --production --prefix "/opt/iobroker" (System call)
                        npm
                         ERR! not a package /tmp/npm-3186-jmsB2Zl0/github.com/mranney/node_pcap
                        npm
                         ERR! Error: ENOENT, open '/tmp/npm-3186-jmsB2Zl0/github.com/mranney/node_pcap-unpack/package.json'
                        npm
                         ERR! If you need help, you may report this *entire* log,npm ERR! including the npm and node versions, at:
                        npm ERR!     <http: github.com/npm/issues="">
                        
                        npm
                         ERR! System Linux 4.4.0-38-genericnpm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "iobroker.amazon-dash" "--production" "--prefix" "/opt/iobroker"
                        npm
                         ERR! cwd /npm ERR! node -v v0.10.33
                        
                        npm ERR! npm -v 1.4.28
                        npm ERR! path /tmp/npm-3186-jmsB2Zl0/github.com/mranney/node_pcap-unpack/package.json
                        npm ERR! code ENOENT
                        npm ERR! errno 34
                        npm ERR! not ok code 0
                        ERROR: host.server Cannot install iobroker.amazon-dash: 34
                        ERROR: process exited with code 25</http:>
                        

                        Hat jemand vielleicht noch eine Idee ?

                        @oldi-2000 Hast du es ans laufen bekommen?

                        grüße moses

                        1 Reply Last reply Reply Quote 0
                        • oldi-2000
                          oldi-2000 last edited by

                          Hallo nein leider noch nicht

                          Gesendet von meinem LG-H815 mit Tapatalk

                          1 Reply Last reply Reply Quote 0
                          • lobomau
                            lobomau last edited by

                            Hab mir grad meinen zweiten Dash Button bestellt und es wurden sofort 4,99EUR als Gutschein abgezogen! Hab ihn also umsonst 😄

                            Dazu hatte ich drei g-Tags gekauft. Keine AUhnung warum. Probiert mal aus. Ich hatte den amazon dash button universal ausgewählt (Avery Zweckform).

                            1 Reply Last reply Reply Quote 0
                            • H
                              holgerwolf last edited by

                              Sorry… Der Adapter kann das ja schon längst. Kommt aus der Beschreibung nicht klar raus:

                              Der Adapter braucht kein WLAN am Host!

                              Gruß

                              Holger


                              Hallo,

                              so wie ich das hier verstanden habe, funktioniert der Adapter nur mit einem WLAN am Host. Kann man den Adapter nicht so programmieren, dass er generell das gesamte Netz nach dem Anmeldevorgang "snifft"? Selbst wenn ich meinem iobroker Banana ein WLAN spendiere, nutzt das mir im Serverkämmerchen wenig.

                              Hier hat jemand ein Script dafür geschrieben:

                              https://blog.thesen.eu/aktuellen-dash-b ... en-hacken/

                              Das habe ich recht einfach zum Laufen bekommen. Reagiert auf den Knopf auch beim Anmelden über ein Router-(FritzBox)-WLAN.

                              Jetzt müsste man daraus nur noch einen Adapter basteln...

                              Leider bin ich mit sowas überfordert 😞

                              Danke und Gruß

                              Holger

                              1 Reply Last reply Reply Quote 0
                              • Bluefox
                                Bluefox last edited by

                                Ich bezweifle, dass es unter Windows möglich wird.

                                1 Reply Last reply Reply Quote 0
                                • M
                                  mayer last edited by

                                  Hi, ich mache das über einen kleinen Umweg:

                                  Amazon Dash Button Hack

                                  http://www.instructables.com/id/Amazon- … /?ALLSTEPS

                                  Curl für Windows -> http Kommando an den ioBroker simple-api adapter.

                                  Funzt!

                                  Gruss, mayer

                                  1 Reply Last reply Reply Quote 0
                                  • lobomau
                                    lobomau last edited by

                                    @lobomau:

                                    Hab mir grad meinen zweiten Dash Button bestellt und es wurden sofort 4,99EUR als Gutschein abgezogen! Hab ihn also umsonst 😄

                                    Dazu hatte ich drei g-Tags gekauft. Keine AUhnung warum. Probiert mal aus. Ich hatte den amazon dash button universal ausgewählt (Avery Zweckform). `
                                    Ich habe eben wieder einen Dash Button geordert und sofort wurden 4,99€ als Gutschein abgezogen. Damit habe ich drei Buttons für insgesamt 4,99 😄

                                    Ist tatsächlich so. Steht als ein Kommentar unter Amazon Dash Button Hack

                                    http://www.instructables.com/id/Amazon- … /?ALLSTEPS

                                    > I strongly suggest you setup the button with the mobile app and associate it with your Amazon account though. I realized if you do that, and you push the button at least once (Even if you didn't "select a product") the next time you buy something from Amazon normally (not with the button) you will recieve a $5 credit! Doesn't matter what you buy!!!

                                    1 Reply Last reply Reply Quote 0
                                    • lobomau
                                      lobomau last edited by

                                      @mayer:

                                      Hi, ich mache das über einen kleinen Umweg:

                                      Amazon Dash Button Hack

                                      http://www.instructables.com/id/Amazon- … /?ALLSTEPS

                                      Curl für Windows -> http Kommando an den ioBroker simple-api adapter. `
                                      Was ist das genaue Ergebnis von diesem Hack? Erschließt sich mir nicht.

                                      Bei mir laufen die Dash Buttons gut mit dem Adapter, aber für gewisse Anwendungen wäre es ohne die Latenz besser.

                                      1 Reply Last reply Reply Quote 0
                                      • M
                                        mayer last edited by

                                        @lobomau:

                                        Was ist das genaue Ergebnis von diesem Hack? Erschließt sich mir nicht.

                                        Bei mir laufen die Dash Buttons gut mit dem Adapter, aber für gewisse Anwendungen wäre es ohne die Latenz besser. `

                                        Auf meinem MacMini bekomme ich Adapter nicht zum laufen bzw. gar nicht erst installiert. Da bei mir sowieso noch eine Windows-Büchse als Mediaserver und Heizungslogger läuft, habe ich das eben so gelöst.

                                        Mit der Latenz hat das nix zu tun. Die bleibt.

                                        Gruss, mayer

                                        1 Reply Last reply Reply Quote 0
                                        • H
                                          holgerwolf last edited by

                                          Längere Geschichte (habe jetzt zwei Tage rumgebastelt). Ich habe es jetzt zwei Mal durchgespielt.

                                          Der Adapter lässt sich nicht bei einer node Version >= 4 installiern und laufen. Geht man zurück auf die 0.12 geht die Installation und der Adapter funktioniert auch. Updatet man node wieder auf 4.x läuft der Adpater nicht mehr.

                                          Hier die Fehlermedung aus dem log:

                                          host-lemaker	2016-10-12 14:49:16.265	error	instance system.adapter.amazon-dash.0 terminated with code 0 (OK)
                                          Error:	2016-10-12 14:49:15.424	error	at Module.load (module.js:356:32)
                                          Error:	2016-10-12 14:49:15.424	error	at Object.Module._extensions..js (module.js:442:10)
                                          Error:	2016-10-12 14:49:15.424	error	at Module._compile (module.js:435:26)
                                          Error:	2016-10-12 14:49:15.424	error	at Object. (/opt/iobroker/node_modules/iobroker.amazon-dash/node_modules/pcap/pcap.js:3:21)
                                          Error:	2016-10-12 14:49:15.424	error	at require (module.js:385:17)
                                          Error:	2016-10-12 14:49:15.424	error	at Module.require (module.js:366:17)
                                          Error:	2016-10-12 14:49:15.424	error	at Function.Module._load (module.js:311:12)
                                          Error:	2016-10-12 14:49:15.424	error	at Module.load (module.js:356:32)
                                          Error:	2016-10-12 14:49:15.424	error	at Object.Module._extensions..node (module.js:460:18)
                                          Error:	2016-10-12 14:49:15.424	error	at Error (native)
                                          Error:	2016-10-12 14:49:15.424	error	Module version mismatch. Expected 46, got 14.
                                          uncaught	2016-10-12 14:49:15.368	error	exception: Module version mismatch. Expected 46, got 14.
                                          

                                          Kann meinen Banana leider nicht mit der 0.12 laufen lassen, da er so nach ner gewissen Zeit abschmiert (anderes Problem).

                                          Irgend eine Idee?

                                          Gruß

                                          Holger

                                          1 Reply Last reply Reply Quote 0
                                          • C
                                            charlyphyro last edited by

                                            Hallo zusammen,

                                            Versuche gerade einen Umzug vom cubietruck auf NUC mit Ubuntu 16.04.01.

                                            Beim Dash Button gibt es leider eine Fehlermeldung & habe auch versucht es direkt zu installieren, leider bekomme ich eine Fehlermeldung. davor wurde git installiert zum ausführen.

                                            ! charlyphyro@charlyphyro:/opt/iobroker$ sudo npm install iobroker.amazon-dash
                                            !
                                            ! > socketwatcher@0.3.0 install /opt/iobroker/node_modules/iobroker.amazon-dash/node_modules/pcap/node_modules/socketwatcher
                                            ! > node-gyp rebuild
                                            ! make: Verzeichnis „/opt/iobroker/node_modules/iobroker.amazon-dash/node_modules/pcap/node_modules/socketwatcher/build“ wird betreten
                                            ! CXX(target) Release/obj.target/socketwatcher/socket_watcher.o
                                            ! SOLINK_MODULE(target) Release/obj.target/socketwatcher.node
                                            ! COPY Release/socketwatcher.node
                                            ! make: Verzeichnis „/opt/iobroker/node_modules/iobroker.amazon-dash/node_modules/pcap/node_modules/socketwatcher/build“ wird verlassen
                                            ! > pcap@2.0.0 install /opt/iobroker/node_modules/iobroker.amazon-dash/node_modules/pcap
                                            ! > node-gyp rebuild
                                            ! make: Verzeichnis „/opt/iobroker/node_modules/iobroker.amazon-dash/node_modules/pcap/build“ wird betreten
                                            ! CXX(target) Release/obj.target/pcap_binding/pcap_binding.o
                                            ! ../pcap_binding.cc:2:23: fatal error: pcap/pcap.h: Datei oder Verzeichnis nicht gefunden
                                            ! compilation terminated.
                                            ! pcap_binding.target.mk:97: die Regel für Ziel „Release/obj.target/pcap_binding/pcap_binding.o“ scheiterte
                                            ! make: *** [Release/obj.target/pcap_binding/pcap_binding.o] Fehler 1
                                            ! make: Verzeichnis „/opt/iobroker/node_modules/iobroker.amazon-dash/node_modules/pcap/build“ wird verlassen
                                            ! 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:87:13)
                                            ! gyp ERR! stack at ChildProcess.emit (events.js:172:7)
                                            ! gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
                                            ! gyp ERR! System Linux 4.4.0-42-generic
                                            ! gyp ERR! command "/usr/bin/nodejs" "/usr/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
                                            ! gyp ERR! cwd /opt/iobroker/node_modules/iobroker.amazon-dash/node_modules/pcap
                                            ! gyp ERR! node -v v4.6.0
                                            ! gyp ERR! node-gyp -v v3.4.0
                                            ! gyp ERR! not ok
                                            ! npm ERR! Linux 4.4.0-42-generic
                                            ! npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "install" "iobroker.amazon-dash"
                                            ! npm ERR! node v4.6.0
                                            ! npm ERR! npm v2.15.9
                                            ! 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! 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 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! /opt/iobroker/npm-debug.log

                                            Viele Grüße Charly

                                            Edit: Hat sich erledigt! ich musste die libpcap anders installieren!

                                            ! sudo apt-get install libpcap0.8 libpcap0.8-dev libpcap-dev

                                            1 Reply Last reply Reply Quote 0
                                            • First post
                                              Last post

                                            Support us

                                            ioBroker
                                            Community Adapters
                                            Donate
                                            FAQ Cloud / IOT
                                            HowTo: Node.js-Update
                                            HowTo: Backup/Restore
                                            Downloads
                                            BLOG

                                            467
                                            Online

                                            31.6k
                                            Users

                                            79.5k
                                            Topics

                                            1.3m
                                            Posts

                                            86
                                            385
                                            86492
                                            Loading More Posts
                                            • Oldest to Newest
                                            • Newest to Oldest
                                            • Most Votes
                                            Reply
                                            • Reply as topic
                                            Log in to reply
                                            Community
                                            Impressum | Datenschutz-Bestimmungen | Nutzungsbedingungen
                                            The ioBroker Community 2014-2023
                                            logo