Broken Buttons

From LVL1
Revision as of 12:08, 11 January 2016 by Nrarmen (talk | contribs) (→‎Setup)
Jump to navigation Jump to search

What's going on here?

  • Problem: People don't email every time something breaks.
  • Why?: My guess, no quick access to email/computer to email the group.
  • Solution: Deploy a number of Amazon Dash Buttons around equipment. If something breaks or we're out of stock of something, instruct patrons to press the corresponding button.


As of January 11, 2016:


  • Raspberry Pi B+
  • 4GB+ SD Card
  • Dash Button
  • Monitor & Keyboard
  • Step 1: Download Raspbian Jessie Lite
  • Step 2: Install image to SD card using Win32DiskImager
  • Step 3: Insert SD card to Raspberry Pi, connect monitor & keyboard, boot Raspberry Pi
  • Step 4: Configure wifi
  • Step 5: Update & Upgrade
    • sudo apt-get update
    • sudo apt-get upgrade
  • Step 6: Install Node 4.0.0
  • Step 7: Install git and libpcap-dev
    • sudo apt-get install git libpcap-dev
  • Step 8: Create directory ~/dash and cd there
    • mkdir ~/dash
    • cd ~/dash
  • Step 9: Install nodemailer (version 0.7.1, 1.0.0 (default) is broken at time of writing)
    • npm install nodemailer@0.7.1
  • Step 10: Install dash button library
  • Step 11: Run node-dash-button's findbutton app
    • cd ~/dash/node_modules/node-dash-button
    • sudo node bin/findbutton
  • Step 12: Configure Amazon Dash Button
    • Follow the instructions given to you in the box BUT STOP BEFORE YOU SELECT A PRODUCT TO ORDER (hit the back button on your phone, exit the app, etc)
  • Step 13: Press the Amazon Dash button once, watch raspberry pi terminal for the button's MAC address
  • Step 14: Create application
    • nano dash.js
    • Enter this code: