Giter Site home page Giter Site logo

dash's Introduction

Dash - Starter repo for Experiments with an Amazon Dash Button.

This is just an easily cloneable repo so I can program my dash to do a bunch of things. Comes pre-installed with with maker-ifttt for configuring IoT connections without having to restart the server.

(libpcap setup/installation instructions taken from node-dash-button.)

Setup

Install Dependancies

Project uses node 5.2.0, libpcap, and optionally, python's pypcap. Assumes you have an Amazon Dash button, and have followed the setup instructions WITHOUT selecting a product.

Install node dependancies:

npm install

Install libpcap, or the python wrapper for it, pypcap. If on ubuntu, you can install the library directly:

sudo apt-get install libpcap-dev

Otherwise, use pip:

pip install pypcap

...or with brew, if you must:

brew install pypcap

Assemble config file.

The config.json contains three keys for easy project customization.

  1. address: Your dash's mac address(es)
  2. maker: IFTTT's maker channel key
  3. event: the IFTTT event name

1. Get the mac address of your dash button:

cd node_modules/node-dash-button
node bin/findbutton # Note: on OSX, you'll have to use sudo.

Depending on your home network, you may have to press the button a few times to get the right address. Save this number to dash.json, at the root level.

2. IFTTT (Optional)

If you want to use IFTTT, then create an account on ifttt.com, and add the maker channel. You'll get your key right away.

3. Event name (Optional)

Once you have the maker channel, create a new recipe. You can choose your event name here.

Running

On OS X:

sudo node start

On linux (aka, that raspberry pi you bought that's just been collecting dust):

node index

dash's People

Contributors

matthewoden avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.