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!
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.
npm installthe first time so all npm requirements will be installed.
- Find Closest Store
node findStore.jsand input your 5 digit zipcode, this will return closest store info (Store ID) and their menu.
- Find Dash Button
sudo node node_modules/node-dash-button/bin/findbuttonand press the button
- Create your
order.jsonfile by copying
- 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
- Add your Amazon Dash Button's address from step 3
npm startand press your Dash Button that you have set up and BAM pizza will be coming soon!
If you run into any issues with Socket Watcher please try this: Looks like socketwatcher was using the legacy "node" command instead of nodejs. It is solved on ubuntu by installing nodejs-legacy that clears up those conflicts.
sudo apt-get install nodejs-legacy
Or you can view this Gist to view how to create an AWS Lambda function if you own an Amazon AWS IoT Button. They basically handle the "always on" use case for us!
- Create a Web Interface to assist in creating orders easily.
- Other ideas?