node app that triggers event on press of amazon dash button. Built on top of cap.
ARP packet capturing with node.js to trigger event on the press of an Amazon Dash button
git clone
change MAC address (see Setup below)
node app.js
- Follow Amazon's setup instructions until the last step. When prompted to choose a product simply close the amazon app without finishing
- Use Wireshark or a similar packet sniffer to find your Dash Button's MAC address
- Replace MAC address in this line: if (ret.info.srcmac === "74:75:48:b8:55:23") with your own
- Node Modules were checked in due to a problem with cap's node-gyp rebuild script not installing properly through npm
- On button press, I use open to open a new Netflix window when the dash button is pressed, but you can use this event to do any number of things such as POSTing to a Google Sheet, interacting with Philips Hue bulbs, etc. Have fun!