Will connect your dash button to a slack channel and post a message.
- Amazon Dash Button
- Setup your Dash button using the Amazon mobile app
- NOTE: do not select a product
- libpcap-dev
- Linux:
$ sudo apt-get install libpcap-dev - OSX:
$ pip install pypcap
- Linux:
-
Clone repo and install dependencies
$ npm install -
Listen for ARP Pings on your network
$ sudo npm findbutton -
Press your dash button to emit an ARP ping and record its MAC address.
- You can do it a few times to be sure you have the right one.
-
Install Dash Slacker
$ npm install -g dash-slacker -
Listen for ARP Pings on your network
$ sudo dash-findbutton -
Press your dash button to emit an ARP ping and record its MAC address.
- You can do it a few times to be sure you have the right one.
Take the config.json.sample and save it as config.json somewhere you like for use in the following command.
Note: sudo is needed to access network devices.
$ sudo bin/dash-slacker.js --configFile=/absolute/path/to/config.json
// Note: config.json in the project directory is used by default
$ sudo dash-slacker --configFile=/absolute/path/to/config.json
-m -- Wireless listening mode (arp/udp/all) (default: arp)
-t -- Min timeout (seconds) between requests (default: 60)
Pull requests are welcome!
MIT.
Copyright © 2017 nkov.
Made with ❤️ in NYC.