dashhooks

1.0.3 • Public • Published

So you have an Amazon Dash button. Wouldn't it be awesome if you could put it to some other use?

That's where DashHooks comes in. DashHooks runs within your WiFi and monitors your Dash Button for presses. When a press is detected, DashHooks runs the configured script. As simple as that.

git clone https://github.com/SidBala/DashHooks.git
npm install
node index.js -a a0:32:ab:21:37:fa -c ./sampleSlackNotification.sh

-a is the MAC address of your Dash Button
-c is the command/script to run when the button is pressed.
-i is the name of the network interface to listen on. Defaults to 'en0' if not specified.

Start with no options first. This will listen for all ARP probes in your network. If you press the Dash button now, DashHooks will show logs. This way, you can quickly determine your DashButton's MAC address without hunting for it in your router's UI.

Readme

Keywords

none

Package Sidebar

Install

npm i dashhooks

Weekly Downloads

1

Version

1.0.3

License

MIT

Last publish

Collaborators

  • sidbala