This is just an easily cloneable repo so I can program my dash to do a bunch of things. Comes pre-installed with with maker-ifttt
for configuring IoT connections without having to restart the server.
(libpcap setup/installation instructions taken from node-dash-button.)
Project uses node 5.2.0, libpcap, and optionally, python's pypcap. Assumes you have an Amazon Dash button, and have followed the setup instructions WITHOUT selecting a product.
Install node dependancies:
npm install
Install libpcap, or the python wrapper for it, pypcap. If on ubuntu, you can install the library directly:
sudo apt-get install libpcap-dev
Otherwise, use pip:
pip install pypcap
...or with brew, if you must:
brew install pypcap
The config.json
contains three keys for easy project customization.
- address: Your dash's mac address(es)
- maker: IFTTT's maker channel key
- event: the IFTTT event name
cd node_modules/node-dash-button
node bin/findbutton # Note: on OSX, you'll have to use sudo.
Depending on your home network, you may have to press the button a few times to get the right address. Save this number to dash.json, at the root level.
If you want to use IFTTT, then create an account on ifttt.com, and add the maker channel. You'll get your key right away.
Once you have the maker channel, create a new recipe. You can choose your event name here.
On OS X:
sudo node start
On linux (aka, that raspberry pi you bought that's just been collecting dust):
node index