Crates.io | dashbutton |
lib.rs | dashbutton |
version | 0.1.0 |
source | src |
created_at | 2019-05-24 15:52:12.757635 |
updated_at | 2019-05-24 15:52:12.757635 |
description | Monitor for Amazon Dash button presses |
homepage | |
repository | https://github.com/n8henrie/dashbutton |
max_upload_size | |
id | 136691 |
size | 5,642 |
A simple Rust project to detect button pushes from an Amazon Dash button. Work in progress.
This project is mostly just to practice using Rust. If you want a serious project to use with your Dash button, you should probably check out something like:
$ git clone https://github.com/n8henrie/dashbutton
$ cd dashbutton
$ make
$ # Optionally, if on Linux with libcap installed:
$ make rootless
Edit the included config-sample.toml
to include your Dash button's MAC
address and optionally the network device that will be detecting the pushes
(e.g. wlan0
).
After you've connected your Dash button to your network (but made sure not to
select a product, so it's not purchasing anything), you should probably be able
to find its mac address by searching the output of sudo tcpdump 'arp'
after a
button press; the Dash button may show up as (oui Unknown)
.