hortinstein / node-dash-button

A small module to emit events when an Amazon Dash Button is pressed
949 stars 94 forks source link

Can't get pcap working on windows, some gyp errors, converted to winpcap #34

Open teebu opened 7 years ago

teebu commented 7 years ago

I couldn't get this installed on my Windows 8.1, compiling problems with socketwatch and gyp. I redid the project using 'cap' module, which uses winpcap.

https://github.com/teebu/node-dash-button-winpcap

hortinstein commented 7 years ago

Thanks, nice work! i would be happy to accept a pull request that does OS detection and switches pcap libraries if someone can figure out an elegant way to integrate your code without impacting the simple initial setup.

This node api may help: https://nodejs.org/api/process.html#process_process_platform

Thanks again, I will take a look at your code

teebu commented 7 years ago

I believe you can use the 'cap' module on other OS's as long as it has the pcap installed.

https://www.npmjs.com/package/cap

bangex commented 7 years ago

hi guys, my prob is i can`t install this. error: ENOENT: no such file or directory, chmod 'C:\Program Files (x86)\nodejs\node_modules\node-dash-button-winpcap\bin\findbutton

what`s the prob?