Git Product home page Git Product logo

pizzadash's Introduction

Pizza Dash PizzaDash

Join the chat at https://gitter.im/bhberson/pizzadash

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!

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.
  1. Find Dash Button
  • Run sudo node node_modules/node-dash-button/bin/findbutton and press the button
  1. 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
  1. Runnpm 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 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!

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!

To do

  • Create a Web Interface to assist in creating orders easily.
  • Other ideas?

pizzadash's People

Contributors

dangothemango avatar joeiaquinto avatar riaevangelist avatar mynamebrody avatar jaredpetersen avatar gitter-badger avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.