Giter Club home page Giter Club logo

echodash's Introduction

echodash

This project is quite simple: Whenever the Dash button configured in environment variables is pressed, play or pause is sent to Amazon via a REST service, and whatever you were listening to last restarts, or pauses.

Setup

You're going to need some information to get this running.

  • A login cookie from alexa.amazon.com in the variable COOKIE
  • Your device ID in the variable DEVICE
  • Your device serial in the variable SERIAL
  • The MAC address of your Dash button in the variable MAC
  • The CSFR token in the variable CSFR

If in doubt, just put those variables in the start.sh script, and use that to launch the server.

The first three should be easy to find. Install Postman for Chrome, go to Amazon's Alexa SPA, login and capture a few commands with Postman. (You might need the standalone version of Postman to capture the cookie, but there are other ways of getting that cookie. Google it.)

The MAC address of your Dash is a little more complicated, but (https://medium.com/@edwardbenson/how-i-hacked-amazon-s-5-wifi-button-to-track-baby-data-794214b0bdd8#.y2pjafhf2)[this article] by (https://medium.com/@edwardbenson)[Ted Benson] should be enough to get you started.

sudo

You might need to run the script as root in order to get the privileges necessary to intercept ARP probes. Fair warning: this is dumb, and the reason I want to run the server in Docker ASAP!

Docker

The Dockerfile does not currently work. It runs the script, but does not detect any ARP probes. This is probably not a networking issue, but rather an issue with the library Iโ€™m using to detect them. I will try switching to Scapy when I get the chance.

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.