dash-slacker

1.0.2 • Public • Published

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 ❤️ in NYC.

Readme

Keywords

none

Package Sidebar

Install

npm i dash-slacker

Weekly Downloads

1

Version

1.0.2

License

MIT

Last publish

Collaborators

  • nkov