KhaosT / homebridge-amazondash

Amazon Dash Button plugin for Homebridge
58 stars 14 forks source link

Pcap Issue #30

Closed doodoovane closed 6 years ago

doodoovane commented 6 years ago

Hello there,

I'm trying to configure into homebridge my brand new dashbutton but unforntunately I can't manage to make it works... I've installed it and configured the MAC address as described in the tutorial but when I launch Homebridge all I ve got is this:


...
[2018-3-30 15:39:21] [Dash Button] Initializing Dash accessory...
Error: socket: Operation not permitted
    at new PcapSession (/opt/node/lib/node_modules/homebridge-dash/node_modules/pcap/pcap.js:49:39)
    at Object.exports.createSession (/opt/node/lib/node_modules/homebridge-dash/node_modules/pcap/pcap.js:123:12)
    at create_session (/opt/node/lib/node_modules/homebridge-dash/node_modules/node-dash-button/index.js:24:28)
    at register (/opt/node/lib/node_modules/homebridge-dash/node_modules/node-dash-button/index.js:47:24)
    at new DashAccessory (/opt/node/lib/node_modules/homebridge-dash/index.js:34:19)
    at Server._loadAccessories (/opt/node/lib/node_modules/homebridge/lib/server.js:275:29)
    at Server.run (/opt/node/lib/node_modules/homebridge/lib/server.js:86:38)
    at module.exports (/opt/node/lib/node_modules/homebridge/lib/cli.js:40:10)
    at Object.<anonymous> (/opt/node/lib/node_modules/homebridge/bin/homebridge:17:22)
    at Module._compile (module.js:660:30)
    at Object.Module._extensions..js (module.js:671:10)
    at Module.load (module.js:573:32)
    at tryModuleLoad (module.js:513:12)
    at Function.Module._load (module.js:505:3)
    at Function.Module.runMain (module.js:701:10)
    at startup (bootstrap_node.js:193:16)
    at bootstrap_node.js:617:3

Failed to create pcap session: couldn't find devices to listen on.
Try running with elevated privileges via 'sudo'
/opt/node/lib/node_modules/homebridge-dash/node_modules/node-dash-button/index.js:28
        throw new Error('Error: No devices to listen');
        ^

Error: Error: No devices to listen
    at create_session (/opt/node/lib/node_modules/homebridge-dash/node_modules/node-dash-button/index.js:28:15)
    at register (/opt/node/lib/node_modules/homebridge-dash/node_modules/node-dash-button/index.js:47:24)
    at new DashAccessory (/opt/node/lib/node_modules/homebridge-dash/index.js:34:19)
    at Server._loadAccessories (/opt/node/lib/node_modules/homebridge/lib/server.js:275:29)
    at Server.run (/opt/node/lib/node_modules/homebridge/lib/server.js:86:38)
    at module.exports (/opt/node/lib/node_modules/homebridge/lib/cli.js:40:10)
    at Object.<anonymous> (/opt/node/lib/node_modules/homebridge/bin/homebridge:17:22)
    at Module._compile (module.js:660:30)
    at Object.Module._extensions..js (module.js:671:10)
    at Module.load (module.js:573:32)
    at tryModuleLoad (module.js:513:12)
    at Function.Module._load (module.js:505:3)
    at Function.Module.runMain (module.js:701:10)
    at startup (bootstrap_node.js:193:16)
    at bootstrap_node.js:617:3

Is that happened to someone else?