samaphp/lifxlan
Composer 安装命令:
composer require samaphp/lifxlan
包简介
LIFX LAN protocol library
README 文档
README
LifxLan protocol. (Work in progress)
Note: This library is not ready for use in production. And does not cover all API capabilities. I just built it for my self to
Setting light color by name:
$light_ip = '192.168.1.x'; $Light = new Light($light_ip); $brightness = 40; $Light->setColorByName('white_warm', $brightness); // Set light power on. $Light->setPowerStatus('on'); // Set light power off. $Light->setPowerStatus('off');
Advanced use:
// Set a custom value for the connection timeout. $Light->setTimeout(2); // Custom timeout per method. $Light->setTimeout(1)->setColorByName('white_cool', 10);
统计信息
- 总下载量: 12
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-09-22