Giter Club home page Giter Club logo

node-tado's Introduction

Build Status

node-tado

This is a Node.js client for the Tado smart thermostat web API. It offers a promise-based API.

Please be aware that this client simply mocks the behaviour of the Tado Web-App. This means that it could stop working due to implemented restrictions by Tado at any time.

Usage

Before you can access any API methods, you must perform a login, using your Tado username and password:

import Tado from 'node-tado';

let client = new Tado();
client.login('username', 'password').then((success) => {
  // use the client now
});

api(path)

This method handles all API calls. Currently, only GET requests without any parameters are supported – hence this client is only useful for querying data, not for adjusting settings or anything like that.

client.api('/me').then((result) => {
  console.log('me', result);
});

There are a few convenience methods:

me()

Shortcut for .api('/me'). Queries data about the logged in user.

home(homeId)

Shortcut for .api('/homes/' + homeId).

zones(homeId)

Shortcut for .api('/homes/' + homeId + '/zones'). Lists available zones.

weather(homeId)

Shortcut for .api('/homes/' + homeId + '/weather'). Fetches current weather data for the location of the given home.

state(homeId, zoneId)

Shortcut for .api('/homes/' + homeId + '/zones/' + zoneId + '/state'). Fetches current metrics.

node-tado's People

Contributors

dvelopment avatar mattjgalloway avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

node-tado's Issues

Missing Object

I get
TypeError: undefined is not an object (evaluating 'data.state.sensorDataPoints.insideTemperature.celsius')
in line 109 MMM-Tado.js

running example

is there any chance that ou could provide a running example, which shows how the wrapper could be used?

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.