Skip to content
This repository has been archived by the owner on Dec 29, 2017. It is now read-only.

A python script running on a UNIX system that listens for the Amazon Dash Button press.

Notifications You must be signed in to change notification settings

JulianKahnert/amazon-dashbutton

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Amazon Dashbutton Hack with Python daemon

Sources & Inspiration:

Installation

git clone https://github.com/JulianKahnert/amazon-dashbutton.git
cd amazon-dashbutton
python3 -m venv .venv
source .venv/bin/activate
pip install -r requirements.txt

Now you have everything you need to run this daemon. Some changes in config.json (compatible with Maddox Dasher config) should do the rest.

More requirements:

# macOS
brew install libnet

# linux
apt install libnet1-dev

# FreeBSD
pkg install libnet

Test setup

Test your workflow with the find_button.py sniffing script.

source .venv/bin/activate
python find_button.py

Run the daemon

source .venv/bin/activate
python button.py

Stop the daemon

ps aux | grep "button.py"

# find process ID (pid)
ps aux | grep "button.py"

# kill the process
sudo kill 52324

Start after reboot

... add a crontab

crontab -e

# add the following line as a cronjob (change "/PATH/TO/REPO/")
@reboot   source /PATH/TO/REPO/.venv/bin/activate && python /PATH/TO/REPO/button.py

Blocking Amazon Dash Phone Notifications

You'll probably receive annoying notifications on your phone asking you to complete the setup process. To prevent these notifications, you'll need to block the Amazon Dash Button from reaching the Internet by tweaking your router settings.

About

A python script running on a UNIX system that listens for the Amazon Dash Button press.

Topics

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 100.0%