csburton/hive_control
Composer 安装命令:
composer require csburton/hive_control
包简介
API interface to control British Gas Hive Heating
关键字:
README 文档
README
This repository provides the ability to interact with a RESTful API provided by British Gas to control your Hive home heating system. (http://www.hivehome.com)
Note: This API is in no way endorsed by British Gas, and is subject to change at any time.
The API Credentials are the same as used to login to the web interface to manage your Hive.
Sample Code
Get Current Temperature
<?php $api = new \Hive\Api\Api('<username>', '<password>') $status = new \Hive\Control\Status($api); echo $status->getCurrentTemperature();
Set Target Temperature
<?php $api = new \Hive\Api\Api('<username>', '<password>'); $temperature = new \Hive\Control\Temperature($api); $temperature->setTargetTemperature(20);
Currently I can't re-engineer the methods to set the heating schedule but, its something I'm working on.
This is most definitely a work in progress
统计信息
- 总下载量: 33
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 20
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-06-02