https://github.com/n8henrie/dashbutton
https://github.com/n8henrie/dashbutton
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/n8henrie/dashbutton
- Owner: n8henrie
- License: mit
- Created: 2019-05-24T15:39:53.000Z (almost 6 years ago)
- Default Branch: master
- Last Pushed: 2019-05-24T15:51:57.000Z (almost 6 years ago)
- Last Synced: 2025-01-27T19:54:23.278Z (4 months ago)
- Language: Rust
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Dashbutton
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:- https://github.com/Nekmo/amazon-dash
- https://github.com/mikeflynn/go-dash-button
- https://github.com/chrisgilbert/godash## Installation
### If you have Rust / cargo:
```console
$ git clone https://github.com/n8henrie/dashbutton
$ cd dashbutton
$ make
$ # Optionally, if on Linux with libcap installed:
$ make rootless
```## Usage
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`).## Finding mac addresses
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)`.