Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/mynamebrody/pizzadash
This is a node.js application that "hacks" your Amazon Dash Button to order you a Domino's pizza!
https://github.com/mynamebrody/pizzadash
Last synced: 28 days ago
JSON representation
This is a node.js application that "hacks" your Amazon Dash Button to order you a Domino's pizza!
- Host: GitHub
- URL: https://github.com/mynamebrody/pizzadash
- Owner: mynamebrody
- License: mit
- Created: 2015-09-04T01:58:18.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2016-04-30T19:52:53.000Z (over 8 years ago)
- Last Synced: 2024-08-28T21:15:50.140Z (4 months ago)
- Language: JavaScript
- Homepage:
- Size: 1.78 MB
- Stars: 185
- Watchers: 13
- Forks: 33
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-food - pizzadash - This is a Node.js application that "hacks" your Amazon Dash Button to order you a Domino's pizza. (Food-related projects)
README
![Pizza Dash](http://i.imgur.com/DD944Cz.jpg)
PizzaDash
====
[![Join the chat at https://gitter.im/bhberson/pizzadash](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/bhberson/pizzadash?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)This is a node.js application that "hacks" your [Amazon Dash Button](http://www.amazon.com/dashbutton) to order you a [Domino](https://www.dominos.com/)'s pizza!
I was inspired by [this article by Edward Bensen](https://medium.com/@edwardbenson/how-i-hacked-amazon-s-5-wifi-button-to-track-baby-data-794214b0bdd8).
I am using a few npm modules to listen for the button press and place the order: [RIAEvangelist](https://github.com/RIAEvangelist)'s [dominos](https://github.com/RIAEvangelist/node-dominos-pizza-api) and also [hortinstein](https://github.com/hortinstein)'s [Node-Dash-Button](https://github.com/hortinstein/node-dash-button).One idea would be to have this [always running](#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](https://medium.com/@brody_berson/hacking-amazon-s-5-dash-button-to-order-domino-s-pizza-9d19c9d04646)!
Requirements
====
__pcap__
If you are running ubuntu you will need to run ` sudo apt-get install libpcap0.8-dev `Contributing
====1. Pull or Fork code.
2. Do cool stuff.
3. Submit a PR.Setup/Run
====
1. Run ` npm install ` the first time so all npm requirements will be installed.
2. Find Closest Store
- Run ` node findStore.js ` and input your 5 digit zipcode, this will return closest store info (Store ID) and their menu.
3. Find Dash Button
- Run ` sudo node node_modules/node-dash-button/bin/findbutton ` and press the button
4. Create your ` order.json ` file by copying ` exampleorder.json `
- 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
5. Run` npm start ` and press your Dash Button that you have set up and BAM pizza will be coming soon!Issues
====
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`Always Running
----
This [article](http://weworkweplay.com/play/raspberry-pi-nodejs/) shows you what you can do with a [Raspberry Pi](https://www.raspberrypi.org/) 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!Or you can view this [Gist](https://gist.github.com/bhberson/7a2847888596e67fd69b) 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!
To do
----
- Create a Web Interface to assist in creating orders easily.
- Other ideas?