dodev34/sdk-domoticz-bundle
Composer 安装命令:
composer require dodev34/sdk-domoticz-bundle
包简介
PHP Domoticz API Bundle for symfony.
README 文档
README
Installation
with composer
$ composer require dodev34/sdk-domoticz-bundle
Configuration
in you AppKernel file app/AppKenel.php
public function registerBundles()
{
$bundles = [
// ...
new M12U\Bundle\Sdk\DomoticzBundle\M12USdkDomoticzBundle(),
// ...
];
// ...
}
in your config file app/config/config.yml
m12_u_sdk_domoticz:
username: YOU_USERNAME
password: YOU_PASSWORD
base_uri: http://<you ip domoticz address>:8080
Note :
Make sure you have entered a username and password in your Domoticz application
Services
| Client name | Method | Doc |
|---|---|---|
| command | getSunRiseSet | Get sunrise and sunset times |
| command | addLogMessage | Add a log message to the Domoticz log |
| command | getLightSwitches | Get all lights/switches |
| command | switchLight | |
| command | setColbrightnessValue | |
| device | getDevices | Return list of device(s) |
| device | getDevice | Retrieve status of specific device |
exemple with log message command
$provider = $container->get('m12u.sdk.domoticz.provider_proxy');
$command = $provider->getClient('command');
$result = $command->addLogMessage("you message here");
// result {"status":"OK","title":"AddLogMessage"}
todo: Finish creating the proxy for the rest of the api endpoints official doc for domiticz : https://www.domoticz.com/wiki/Domoticz_API/JSON_URL%27s
dodev34/sdk-domoticz-bundle 适用场景与选型建议
dodev34/sdk-domoticz-bundle 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 40 次下载、GitHub Stars 达 0, 最近一次更新时间为 2017 年 07 月 30 日, 在 PHP 生态内属于活跃度较高的组件。
我们在过去多个企业项目中使用过 dodev34/sdk-domoticz-bundle 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 dodev34/sdk-domoticz-bundle 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
统计信息
- 总下载量: 40
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2017-07-30
