承接 bronsonquick/lifx 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

bronsonquick/lifx

Composer 安装命令:

composer require bronsonquick/lifx

包简介

Adds the ability to control your LIFX lights from WordPress.

README 文档

README

This plugin provides a way to control your LIFX smart lights using WordPress.

Currently this is done using the command line and WP-CLI.

Installation

  1. Download the plugin zip from Github.
  2. Upload the zip through the 'Plugins' menu in WordPress
  3. Activate the plugin.

Usage

You can type wp help lifx to see all the commands. Here are some common ones:

  • wp lifx get_token - This will print your LIFX personal access token on the command line.
  • wp lifx check_token - This checks to see if your LIFX person token authenticates correctly.
  • wp lifx list_lights - This will list your the LIFX smart lights.
  • wp lifx toggle - This will toggle the power state of all lights.
  • wp lifx power on - This will turn all lights on.
  • wp lifx power off - This will turn all lights off.
  • wp lifx toggle --selector=label:"I Love Lamp" - This will toggle the state of a light with a label of "I Love Lamp".
  • wp lifx toggle --selector=id:d073d56e1d85 - This will toggle the state of a light with an id of d073d56e1d85
  • wp lifx colour_list - This will list all the colour names you can use with our plugin.
  • wp lifx validate_colour "darkorchid" - See if this is a valid colour and if it use output it's hex code.
  • wp lifx colour rebeccapurple - This will set all your smart lights to #663399
  • wp lifx colour rebeccapurple --selector=label:"I Love Lamp" --fast=true - Set the "I Love Lamp" to #663399
  • wp lifx colour random - Set's all lights to a random colour.
  • wp lifx colour random --selector=label:"I Love Lamp" - Set the "I Love Lamp" to a random colour.
  • wp lifx colour random --selector=label:"I Love Lamp" --zones=0-9 - Set the "I Love Lamp" to a random colour in zones 0-9.
  • wp lifx brightness 0.5 - Set all lights to 50% brightness.
  • wp lifx brightness 0.5 --zones=0-9 - Set the brightness to 50% in zones 0-9 for all lights that support zones.
  • wp lifx brightness 0.5 --zones=10-19|31-40 - Set the brightness to 50% in zones 0-9 and 31-40 for all lights that support zones.
  • wp lifx brightness 1.0 --fast=true - Set all lights to 100% brightness and don't receive a response payload.
  • wp lifx brightness 1.0 --duration=5 - Set all lights to 100% brightness over 5 seconds.
  • wp lifx brightness 0.75 --selector=group:Bedroom - Set all lights to 75% brightness in the Bedroom group.
  • wp lifx brightness 0.75 --selector=label:'I Love Lamp' - Set all the device called I Love Lamp to 75% brightness.
  • wp lifx breathe rebeccapurple - Use the breath effect with the colour rebeccapurple.
  • wp lifx breathe rebeccapurple --from_colour=deeppink --selector=group:Bedroom - Use the breath effect with the colour rebeccapurple.
  • wp lifx flame - Use the flame effect on any products that support it i.e. LIFX Tiles.
  • wp lifx flame --selector=label:"Tiles" --cycles=2 --period=2 - Use the flame effect.
  • wp lifx flame --selector=label:"Tiles" --cycles=2 --period=2 --power_on=false --fast=true - Use the flame effect.
  • wp lifx pulse rebeccapurple - Use the pulse effect with the colour rebeccapurple.
  • wp lifx pulse deeppink --from_colour=darkblue --cycles=3 - Use the pulse effect with the colour deeppink and darkblue 3 times.
  • wp lifx pulse deeppink --from_colour=darkblue --cycles=3 --period=5 - Use the pulse effect with the colour deeppink and darkblue 3 times over 5 seconds.
  • wp lifx pulse deeppink --from_colour=rebeccapurple --cycles=3 --period=5 --power_on=false - Use the pulse effect with the colour deeppink and rebeccapurple 3 times over 5 seconds but only if the light is already on.
  • wp lifx pulse deeppink --from_colour=rebeccapurple --cycles=3 --period=5 --power_on=false --persist=true - Use the pulse effect with the colour deeppink and rebeccapurple 3 times over 5 seconds but only if the light is already on and leave the light on the starting colour.
  • wp lifx move forward - Perform a move effect on any lights that can do that effect.
  • wp lifx move forward --cycles=3 --period=5 - Perform a move effect on any lights that can do that effect, three times over five seconds.
  • wp lifx move backward --cycles=10 --period=10 --power_on=false - Perform a move effect on any lights that can do that effect, ten times over 10 seconds but only if the light is already on.
  • wp lifx move backward --selector=group:"Music Room" - Perform a move effect on any lights that can do that effect in the group "Music Room".
  • wp lifx move backward --selector=group:"Music Room" --fast=true - Perform a move effect on any lights that can do that effect in the group "Music Room" but don't return a payload response so it's faster.
  • wp lifx get_multizones - Determine if any lights on the network support multizones.
  • wp lifx get_multizones --selector=label:"Beam Me Up!" - Determine if the "I Love Lamp" light supports multizone.

bronsonquick/lifx 适用场景与选型建议

bronsonquick/lifx 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 0 次下载、GitHub Stars 达 1, 最近一次更新时间为 2022 年 12 月 27 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「plugin」 「wordpress」 「lifx」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 bronsonquick/lifx 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 bronsonquick/lifx 我们能提供哪些服务?
定制开发 / 二次开发

基于 bronsonquick/lifx 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 6
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: GPL-2.0-or-later
  • 更新时间: 2022-12-27