Giter Site home page Giter Site logo

eero-js-api's Introduction

eero-js-api

JavaScript api for eero home mesh networks

This is an api for use with node or any other javascript platform to give access to the eero API. It is based on eero-client from 343max which does this in python. The sample.js cli lets you play with the api and see what the results look like. It also demonstrates how to use it.

Cookies

Eero does not authenticate with simple user/password but rather through sending and receiving of tokens via text messages. That means, any application will need to negotiate with the api to receive a token. I've taken care of this behind the scenes by storing the results in a global cookie file. That may not be the most robust way of handling storage of the token but this was a quick first pass.

The cookie file is stored in /tmp an you can find the full name of the cookie file in the code. You will need to go through the login sequence to pass in your phone number and then enter the received code. The sample.js walks you through it but with a standalone app such as an IOT device, you'll need to get that code at setup time.

Running the sample

You must have node installed along with npm.

  1. clone this repo
  2. npm install
  3. node sample.js
    • if you want some debug messages: DEBUG=* node sample js

That should be enough to get you started. This was my first node app so I welcome feedback and contributions to make it better.

eero-js-api's People

Contributors

bbernstein avatar

Watchers

 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.