Git Product home page Git Product logo

Comments (14)

DutchmanNL avatar DutchmanNL commented on August 17, 2024

is i. worth maintaining this adapter I hough these buttons don't work anymore

from iobroker.amazon-dash.

ProfMertes avatar ProfMertes commented on August 17, 2024

It is 100% worth to maintain this adapter. With Node.js version v.8 or below it works pefectly for me. Maybe you have Node.js v10 or higher.

from iobroker.amazon-dash.

paulchen007 avatar paulchen007 commented on August 17, 2024

same here. after update to node.js v10 the adapter will not recognize a button-press :(

from iobroker.amazon-dash.

Ilovegym66 avatar Ilovegym66 commented on August 17, 2024

works here fine with node10.x, have you start the iobroker-fixer after update the node-version?

from iobroker.amazon-dash.

paulchen007 avatar paulchen007 commented on August 17, 2024

yip. iobroker-fixer executed. dash-button is not working.

from iobroker.amazon-dash.

ProfMertes avatar ProfMertes commented on August 17, 2024

same here. iobroker-fixer did not fix the problem with node.js v10. dash-button still does not work.

from iobroker.amazon-dash.

daniel-lo avatar daniel-lo commented on August 17, 2024

Is this also a node.js thing?

amazon-dash.0 2020-01-26 08:20:07.727 error at promise.then (/opt/iobroker/node_modules/standard-as-callback/built/index.js:19:49)
amazon-dash.0 2020-01-26 08:20:07.727 error at tryCatcher (/opt/iobroker/node_modules/standard-as-callback/built/utils.js:11:23)
amazon-dash.0 2020-01-26 08:20:07.727 error at client.keys (/opt/iobroker/node_modules/iobroker.js-controller/lib/states/statesInRedis.js:684:17)
amazon-dash.0 2020-01-26 08:20:07.727 error at states.getKeys (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:6811:25)
amazon-dash.0 2020-01-26 08:20:07.727 error at initLogging (/opt/iobroker/node_modules/iobroker.js-controller/lib/adapter.js:7114:22)
amazon-dash.0 2020-01-26 08:20:07.727 error at Adapter.emit (events.js:198:13)
amazon-dash.0 2020-01-26 08:20:07.727 error at Adapter. (/opt/iobroker/node_modules/iobroker.amazon-dash/main.js:43:5)
amazon-dash.0 2020-01-26 08:20:07.727 error at main (/opt/iobroker/node_modules/iobroker.amazon-dash/main.js:78:29)
amazon-dash.0 2020-01-26 08:20:07.727 error at Object.exports.createSession (/opt/iobroker/node_modules/pcap/pcap.js:123:12)
amazon-dash.0 2020-01-26 08:20:07.727 error at new PcapSession (/opt/iobroker/node_modules/pcap/pcap.js:49:39)
amazon-dash.0 2020-01-26 08:20:07.727 error (16696) Error: socket: Operation not permitted
amazon-dash.0 2020-01-26 08:20:07.727 error (16696) uncaught exception: socket: Operation not permitted

or this?

amazon-dash.0 2020-01-26 08:34:54.818 info (26335) Terminated (NO_ERROR): Without reason
amazon-dash.0 2020-01-26 08:34:54.817 info (26335) terminating
amazon-dash.0 2020-01-26 08:34:54.810 info (26335) cleaned everything up...
amazon-dash.0 2020-01-26 08:34:54.809 error (26335) Error: socket: Operation not permitted at new PcapSession (/opt/iobroker/node_modules/pcap/pcap.js:49:39) at Object.exports.createSession (/opt/iobroker/node_modules/pcap/pcap.js:123:1
amazon-dash.0 2020-01-26 08:34:54.809 error (26335) uncaught exception: socket: Operation not permitted
amazon-dash.0 2020-01-26 08:34:54.791 info (26335) starting pcap session on default interface
amazon-dash.0 2020-01-26 08:34:54.777 info (26335) starting. Version 0.3.1 in /opt/iobroker/node_modules/iobroker.amazon-dash, node: v10.18.1

from iobroker.amazon-dash.

daniel-lo avatar daniel-lo commented on August 17, 2024

installation fixer seems to have remedied .. logfile looks quiet (for the moment)

from iobroker.amazon-dash.

Apollon77 avatar Apollon77 commented on August 17, 2024

Please check my fork https://github.com/Apollon77/ioBroker.amazon-dash 1.0.1

from iobroker.amazon-dash.

ProfMertes avatar ProfMertes commented on August 17, 2024

awesome dude, thx

unfortunately:
host.iobroker 2020-02-24 21:37:56.244 info Restart adapter system.adapter.amazon-dash.0 because enabled
host.iobroker 2020-02-24 21:37:56.243 error instance system.adapter.amazon-dash.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
host.iobroker 2020-02-24 21:37:56.243 error Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:653:32)
host.iobroker 2020-02-24 21:37:56.243 error Caught by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
host.iobroker 2020-02-24 21:37:56.243 error Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:778:30)
host.iobroker 2020-02-24 21:37:56.242 error Caught by controller[0]: at Object. (/opt/iobroker/node_modules/pcap/pcap.js:3:21)
host.iobroker 2020-02-24 21:37:56.242 error Caught by controller[0]: at require (internal/modules/cjs/helpers.js:25:18)
host.iobroker 2020-02-24 21:37:56.242 error Caught by controller[0]: at Module.require (internal/modules/cjs/loader.js:692:17)
host.iobroker 2020-02-24 21:37:56.242 error Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:585:3)
host.iobroker 2020-02-24 21:37:56.242 error Caught by controller[0]: at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
host.iobroker 2020-02-24 21:37:56.241 error Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:653:32)
host.iobroker 2020-02-24 21:37:56.241 error Caught by controller[0]: at Object.Module._extensions..node (internal/modules/cjs/loader.js:807:18)
host.iobroker 2020-02-24 21:37:56.241 error Caught by controller[0]: the module (for instance, using npm rebuild or npm install).
host.iobroker 2020-02-24 21:37:56.241 error Caught by controller[0]: NODE_MODULE_VERSION 64. Please try re-compiling or re-installing
host.iobroker 2020-02-24 21:37:56.240 error Caught by controller[0]: NODE_MODULE_VERSION 57. This version of Node.js requires
host.iobroker 2020-02-24 21:37:56.240 error Caught by controller[0]: was compiled against a different Node.js version using
host.iobroker 2020-02-24 21:37:56.239 error Caught by controller[0]: Error: The module '/opt/iobroker/node_modules/pcap/build/Release/pcap_binding.node'
amazon-dash.0 2020-02-24 21:37:55.705 warn (1902) Terminated (UNCAUGHT_EXCEPTION): Without reason
amazon-dash.0 2020-02-24 21:37:55.485 info (1902) starting. Version 1.0.1 in /opt/iobroker/node_modules/iobroker.amazon-dash, node: v10.19.0
host.iobroker 2020-02-24 21:37:53.293 info instance system.adapter.amazon-dash.0 started with pid 1902

from iobroker.amazon-dash.

Apollon77 avatar Apollon77 commented on August 17, 2024

Can ypu show the installation log please? Do you installed the adapter and updated nodejs afterwards? Please go to /opt/iobroker/node_modules/pcap/ and execute "npm rebuild"

Try after that again

from iobroker.amazon-dash.

ProfMertes avatar ProfMertes commented on August 17, 2024

yes i updated your package first to 1.0.1 and updated afterwards node.js from 8.17 to 10.19
npm rebuild gets me:
[email protected] /opt/iobroker/node_modules/pcap/node_modules/nan

After that the light of the instance keeps red with the following log:

host.iobroker 2020-02-25 01:11:53.246 info Restart adapter system.adapter.amazon-dash.0 because enabled
host.iobroker 2020-02-25 01:11:53.245 error instance system.adapter.amazon-dash.0 terminated with code 6 (UNCAUGHT_EXCEPTION)
host.iobroker 2020-02-25 01:11:53.245 error Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:653:32)
host.iobroker 2020-02-25 01:11:53.245 error Caught by controller[0]: at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
host.iobroker 2020-02-25 01:11:53.244 error Caught by controller[0]: at Module._compile (internal/modules/cjs/loader.js:778:30)
host.iobroker 2020-02-25 01:11:53.244 error Caught by controller[0]: at Object. (/opt/iobroker/node_modules/pcap/pcap.js:3:21)
host.iobroker 2020-02-25 01:11:53.244 error Caught by controller[0]: at require (internal/modules/cjs/helpers.js:25:18)
host.iobroker 2020-02-25 01:11:53.244 error Caught by controller[0]: at Module.require (internal/modules/cjs/loader.js:692:17)
host.iobroker 2020-02-25 01:11:53.243 error Caught by controller[0]: at Function.Module._load (internal/modules/cjs/loader.js:585:3)
host.iobroker 2020-02-25 01:11:53.243 error Caught by controller[0]: at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
host.iobroker 2020-02-25 01:11:53.243 error Caught by controller[0]: at Module.load (internal/modules/cjs/loader.js:653:32)
host.iobroker 2020-02-25 01:11:53.243 error Caught by controller[0]: at Object.Module._extensions..node (internal/modules/cjs/loader.js:807:18)
host.iobroker 2020-02-25 01:11:53.242 error Caught by controller[0]: the module (for instance, using npm rebuild or npm install).
host.iobroker 2020-02-25 01:11:53.242 error Caught by controller[0]: NODE_MODULE_VERSION 64. Please try re-compiling or re-installing
host.iobroker 2020-02-25 01:11:53.241 error Caught by controller[0]: NODE_MODULE_VERSION 57. This version of Node.js requires
host.iobroker 2020-02-25 01:11:53.241 error Caught by controller[0]: was compiled against a different Node.js version using
host.iobroker 2020-02-25 01:11:53.240 error Caught by controller[0]: Error: The module '/opt/iobroker/node_modules/pcap/build/Release/pcap_binding.node'

from iobroker.amazon-dash.

Apollon77 avatar Apollon77 commented on August 17, 2024

And what is the output of the npm rebuild command itself?
And in fact it was completely the wrong order :-) You need to do some additional stept when you update nodejs major versions!

or ok different:
cd /opt/iobroker/node_modules/iobroker.amazon-dash
npm install

from iobroker.amazon-dash.

ProfMertes avatar ProfMertes commented on August 17, 2024

how it worked though:
apt-get update
apt-get install libpcap-dev
iobroker add amazon-dash
iobroker start
As it seems also regarding to your changes in the last commit, pcap caused the problem. So pcap is listening again :-)
Thanks for your support!

from iobroker.amazon-dash.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.