New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

node-tado

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-tado

node.js wrapper for Tado API

latest
Source
npmnpm
Version
0.0.2
Version published
Maintainers
1
Created
Source

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.

Keywords

node

FAQs

Package last updated on 13 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts