This is a simple test project for hacking your amazon dash button into something useful, like a silent doorbell for when the baby's sleeping. Many thanks to Ted Benson and his excellent article for getting me started.
This is tested on a Mac, it should work in Linux. If you're working in Windows, I encourage you to switch to one of the others for ruby development.
- Install ruby (insert link)
- Install rubygems (insert link)
- Install the bundler gem with sudo ('sudo gem install bundler')
- Install the other gems with sudo ('sudo bungle install')
Setup by following Amazon's instructions, but on the last step, don't select a product to order.
- network interface: run 'ifconfig' and find the one with 'status: active'
- phone number: 10 digit phone number
- carrier: find your carrier's value from here
- message: what you want your text to say
- arp source:
- run 'sudo ruby sniffer.rb'
- click your dash button
- use the number that shows up on your screen
- press ctrl-c to exit
- email: A gmail account to send texts from
- password: The password for the gmail account
- run 'sudo ruby baby_button.rb'
- press ctrl-c to exit
- Figure out if there's a way to do this without running everything through sudo!
- Separate dash functionality into its own gem
- Clean stuff up generally