Remove tweets from Amazon dash button.
Switch branches/tags
Clone or download
Latest commit e704356 Jul 11, 2017
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
lib Remove async/await Jul 10, 2017
.dockerignore Update dockerfile Jul 10, 2017
.gitignore Initial commit Jul 10, 2017
Dockerfile Update dockerfile Jul 10, 2017
LICENSE Initial commit Jul 10, 2017
README.md Fix readme Jul 11, 2017
example.env First release Jul 10, 2017
index.js First release Jul 10, 2017
package.json First release Jul 10, 2017
yarn.lock First release Jul 10, 2017

README.md

tweets-remove-button

Remove tweets from Amazon dash button.

Setup

Using Docker, you replace sudo with docker exec

Preare

If you use with Docker, unnecessary it.

# Ubuntu and Debian
sudo apt-get install libpcap-dev
# Fedora and CentOS
sudo yum install libpcap-devel

Get MAC Address of Your amazon dash button

# manual
sudo npm run scan

# Docker
docker run --rm --net=host sunya/tweets-remove-button npm run scan

Write .env

Require Twitter's API Key. Please use a tool like TwiTokenGetter and get Access token and Access token secret. If you would like to set PROTECT_* to false, need empty.

e.g.

DASH_BUTTON_MAC_ADDRESS=
CONSUMER_KEY=
CONSUMER_SECRET=
ACCESS_TOKEN=
ACCESS_TOKEN_SECRET=
PROTECT_FAVORITE=true
PROTECT_RETWEET=true
PROTECT_REPLY=

Run

# manual
sudo npm start

# Docker
docker run --env-file=.env --restart=always --net=host -d sunya/tweets-remove-button