Docker image to detect AmazonDash with Node.js
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Github, DockerHub

Please use hisashin/node-dash-button if it's not Raspberry Pi.

Based on node-dash-button. Great work! The MIT License (MIT) Copyright (c) 2016 Alex Hortin

  • First time Dash Setup
  • Run Docker on Raspberry Pi
  • Run This Image
  • Get MAC address of your Dash
  • Customize script
  • Restart

First time Dash Setup

As described here

"Follow Amazon's instructions to configure your button to send messages when you push them but not actually order anything. When you get a Dash button, Amazon gives you a list of setup instructions to get going. Just follow this list of instructions, but don’t complete the final step. Do not select a product, just exit the app."

Run Docker on Raspberry Pi

Skip if you already done. Easiest way is to install Hypriot Docker Image for Raspberry Pi with flash.

I hit minor error with Raspberry Pi Zero W but this post solved.

Simply after sticking micro SD card to your computer, run these commands. You will download OS image, add user, setup wifi and burn image into card.

curl -o user-data.yml
curl -o boot-config.txt
vi user-data.yml (To change <like-this> sections like SSID)
flash --bootconf ./boot-config.txt --userdata ./user-data.yml --hostname <hostname>

Run This Image

docker run -it --net host --name rpi-node-dash-button hisashin/rpi-node-dash-button

Get MAC address of your Dash

# /node_modules/node-dash-button/bin/findbutton
Watching for arp & udp requests on your local network, please try to press your dash now
Dash buttons should appear as manufactured by 'Amazon Technologies Inc.' 

Then press Dash. Messages will be added like this.

Possible dash hardware address detected: 11:22:33:44:55:66 Manufacturer: unknown Protocol: udp
Possible dash hardware address detected: 11:22:33:44:55:66 Manufacturer: unknown Protocol: arp

In this case, 11:22:33:44:55:66 is MAC address of your Dash.

Customize script

vi /dash.js

dash_button('aa:bb:cc:dd:ee:ff', null, null, 'all').on('detected', function() {
//  https_get('', '/foo/bar');	// for example to GET
//  http_get('', '/foo/bar');	// for example to GET

Edit around this section as you want with the MAC address you got.

dash_button('11:22:33:44:55:66', null, null, 'all').on('detected', function() {
  https_get('', '/trigger/{your IFTTT event}/with/key/{your IFTTT secret key}');

If you want to call IFTTT webhook, it will be like this.


forever stop /dash.js

Ctrl+P, Ctrl+Q to escape. To autostart, add following line to /etc/rc.local

docker start rpi-node-dash-button