Skip to content
This repository has been archived by the owner on Apr 30, 2020. It is now read-only.
/ dashbtn Public archive

Make Amazon Dash buttons do different things using dnsmasq

License

Notifications You must be signed in to change notification settings

mannkind/dashbtn

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dashbtn

Software License Travis CI Coverage Status Go Report Card

Making Amazon Dash buttons do different things using dnsmasq

Installation

  • go get github.com/mannkind/dashbtn
  • go intall github.com/mannkind/dashbtn
  • dashbtn -c /the/path/to/config.yaml

Configuration

Configuration happens in the config.yaml file. A full example might look this:

'74:75:48:C3:B1:D0':
    'add+old': [ '/usr/local/bin/mosquitto_pub', '-h', 'mosquitto', '-t', 'home/dash_btn', '-m', 'ON' ]
    'del': [ '/usr/local/bin/mosquitto_pub', '-h', 'mosquitto', '-t', 'home/dash_btn', '-m', 'ON' ]

'74:75:48:C3:B1:D1+74:75:48:C3:B1:D2':
    'add+old': [ 'say', 'Someone is at the door. Please go see who it is' ]

Tomato/OpenWRT/etc Script

#!/bin/sh
mode="$1" # "add", "del", or "old"
mac="$2"
ip="$3"
host="$4"
wget -O - "http://HOST_RUNNING_DASHBTN:PORT/dash?mode=$mode&mac=$mac&ip=$ip&host=$host" >/dev/null 2>&1 &

Notice - Unmaintained

Unmaintained. I didn't buy any more Dash buttons after my last one died. I also don't have a Tomato/OpenWRT router anymore (switched to UniFi). The repository will remain available for reference, but the code is unmaintained.

About

Make Amazon Dash buttons do different things using dnsmasq

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published