dash-slacker
v1.0.2
Published
Will connect your dash button to a slack channel and post a message.
Downloads
2
Readme
Dash Slacker
Will connect your dash button to a slack channel and post a message.
Prerequisites
- 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:
Setup
Locally
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.
Globally
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.
Usage
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.
Locally
$ sudo bin/dash-slacker.js --configFile=/absolute/path/to/config.json
// Note: config.json in the project directory is used by default
Globally
$ sudo dash-slacker --configFile=/absolute/path/to/config.json
Additional Parameters
-m -- Wireless listening mode (arp/udp/all) (default: arp)
-t -- Min timeout (seconds) between requests (default: 60)
Contributing
Pull requests are welcome!
License
MIT.
Copyright © 2017 nkov.
Made with :heart: in NYC.