PHP code example of csburton / hive_control
1. Go to this page and download the library: Download csburton/hive_control library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
csburton / hive_control example snippets
$api = new \Hive\Api\Api('<username>', '<password>')
$status = new \Hive\Control\Status($api);
echo $status->getCurrentTemperature();
$api = new \Hive\Api\Api('<username>', '<password>');
$temperature = new \Hive\Control\Temperature($api);
$temperature->setTargetTemperature(20);