This is a node.js application that "hacks" your Amazon Dash Button to order you a Domino's pizza! I was inspired by this article by Edward Bensen. I am using a few npm modules to listen for the button press and place the order: RIAEvangelist's dominos and also hortinstein's Node-Dash-Button.
One idea would be to have this always running via a local server such as a Raspberry Pi and have on demand pizza ordering whenever you just need a pizza!
I wrote a blog post about my experience here on Medium!
pcap
If you are running ubuntu you will need to run sudo apt-get install libpcap0.8-dev
- Pull or Fork code.
- Do cool stuff.
- Submit a PR.
- Run
npm install
the first time so all npm requirements will be installed. - Find Closest Store
- Run
node findStore.js
and input your 5 digit zipcode, this will return closest store info (Store ID) and their menu.
- Find Dash Button
- Run
sudo node node_modules/node-dash-button/bin/findbutton
and press the button
- Edit the
app.js
file.
- Add your store from step 2
- Edit your address and personal/customer information
- Edit your order using menu from step 2
- Add credit card information
- Create your
.env
environmental variable file
- Add your Amazon Dash Button's address from step 3
- You can add as much personal information from Step 4 into this file as you want if it makes you more comfortable, just would require some logic changes in the
app.js
file.
- Run
npm start
and press your Dash Button that you have set up and BAM pizza will be coming soon!
This article shows you what you can do with a Raspberry Pi to set this up as a node server running all the time on your network and it literally would be the press of a button whenever you wanted!
- Smooth things out and make a setup script for first time users that will create an
.env
file automatically for them - Other ideas?