1.0.2 • Published 7 years ago

dash-slacker v1.0.2

Weekly downloads
6
License
MIT
Repository
github
Last release
7 years ago

Dash Slacker

Will connect your dash button to a slack channel and post a message.

Prerequisites

  • Amazon Dash Button
  • Setup your Dash button using the Amazon mobile app
    • NOTE: do not select a product
  • libpcap-dev
    • Linux: $ sudo apt-get install libpcap-dev
    • OSX: $ pip install pypcap

Setup

Locally

  1. Clone repo and install dependencies

    $ npm install
  2. Listen for ARP Pings on your network

    $ sudo npm findbutton
  3. Press your dash button to emit an ARP ping and record its MAC address.

    • You can do it a few times to be sure you have the right one.

Globally

  1. Install Dash Slacker

    $ npm install -g dash-slacker
  2. Listen for ARP Pings on your network

    $ sudo dash-findbutton
  3. Press your dash button to emit an ARP ping and record its MAC address.

    • You can do it a few times to be sure you have the right one.

Usage

Take the config.json.sample and save it as config.json somewhere you like for use in the following command.

Note: sudo is needed to access network devices.

Locally

  $ sudo bin/dash-slacker.js --configFile=/absolute/path/to/config.json
  // Note: config.json in the project directory is used by default

Globally

  $ sudo dash-slacker --configFile=/absolute/path/to/config.json

Additional Parameters

  -m  --  Wireless listening mode (arp/udp/all) (default: arp)
  -t  --  Min timeout (seconds) between requests (default: 60)

Contributing

Pull requests are welcome!

License

MIT.

Copyright © 2017 nkov.

Made with :heart: in NYC.

1.0.2

7 years ago

1.0.1

7 years ago