2017 © Pedro Peláez
 

library qivivo-php

Unofficial PHP client for Qivivo Thermostat API

image

bentools/qivivo-php

Unofficial PHP client for Qivivo Thermostat API

  • Thursday, December 8, 2016
  • by bpolaszek
  • Repository
  • 2 Watchers
  • 1 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

bentools/qivivo-php - Unofficial PHP client for Qivivo Thermostat API

Installation, (*1)


composer require bentools/qivivo-php, (*2)

Usage, (*3)


```php <?php $clientId = 'myClientId'; $clientSecret = 'myClientSecret'; // To obtain those credentials, please contact Qivivo support. $qivivo = new \BenTools\Qivivo\Client(new \GuzzleHttp\Client(), $clientId, $clientSecret);, (*4)

// Retrieve main thermostat UUID $thermostatId = $qivivo->execute($qivivo->device()->getThermostatId()); var_dump($thermostatId); // string "5dcb767f-d652-446a-a7d4-c8b22f77a7e8", (*5)

// Retrieve current temperature var_dump($qivivo->execute($qivivo->thermostat()->getTemperature($thermostatId))); // float 19.7, (*6)

// Change temperature $qivivo->execute($qivivo->thermostat()->setTemperature($thermostatId, 21.5, 45)); // Sets the temperature to 21.5°C for 45 minutes ```, (*7)

Contribute, (*8)


This is a very early draft to wrap the Qivivo API. Don't hesitate to contribute and add some tests., (*9)

License, (*10)


MIT, (*11)

The Versions

08/12 2016

dev-master

9999999-dev

Unofficial PHP client for Qivivo Thermostat API

  Sources   Download

MIT

The Requires

 

api php qivivo thermostat

07/12 2016

v0.1

0.1.0.0

Unofficial PHP client for Qivivo Thermostat API

  Sources   Download

MIT

The Requires

 

api php qivivo thermostat