Giter Club home page Giter Club logo

php-tado-api's Introduction

UNOFFICIAL TADO API CLIENT LIBRARY FOR PHP

Create .env file in the root by copying .env.default and fill in your credentials.

Username and password are the credentials you use when logging in to the Tado app.

You can find your client_secret on https://my.tado.com/webapp/env.js

USAGE

$tado = new TadoClient();
$generalInfo = $tado->getGeneralInfo();  // You can find your home Id(s) here
$homeDetails = $tado->getHome($homeId); // You can find your zone (room) Id(s) here
$tado->setTemperature(123456, 3, false); // Turn off heating for zone 3
$tado->setTemperature(123456, 3, true); // Turn on heating for zone 3
$tado->setTemperature(123456, 3, true, 22); // Set zone 3 to 22 Celcius degrees
$tado->setTemperature(123456, 2, true, 23, 45); // Set zone 2 to 23 Celcius degrees for 45 minutes

It is recommended to use a secure way when creating your URLs. e.g: IP based restriction, unique hashed URL (home id, zone id, etc)

ROADMAP

  • Fahrenheit support
  • Add tests

php-tado-api's People

Contributors

koraykupe avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

Forkers

axalian

php-tado-api's Issues

Typo in body array

Hi

you have a typo in the "setTemperature" function.
$body['setting']['temperature']['celcius'] = $temperature;
should be
$body['setting']['temperature']['celsius'] = $temperature;

with "celcius" you get the error:
[{"code":"temperature.missingCelsiusOrFahrenheit","title":"neither celsius nor fahrenheit temperatures provide"}]

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.