飞利浦色调照明系统api的python模块。

BeautifulHue的Python项目详细描述


安装

使用pip:

pip install beautifulhue

使用设置工具:

easy_install beautifulhue

使用source

python setup.py install

示例

"""Update light #3's state."""

from beautifulhue.api import Bridge

# Connect to a Philips Hue bridge.
bridge = Bridge(device={'ip':'bridge_ip_address'}, user={'name':'your_username'})
# Define the target resource, and its new related states.
resource = {
    'which':3,
    'data':{
        'state':{'on':True, 'ct':222}
    }
}
# Signal the bridge to execute your command when appropriate.
bridge.light.update(resource)

功能

  • 完整的飞利浦色调API v1.0覆盖范围。
  • 方法名一致。
  • 旨在完成任务。
  • json/pyton字典资源表示。
  • 默认响应结构与Philips Hue API的官方响应结构紧密一致。
  • 可扩展设计。
  • 细粒度系统状态控制。
  • Complete Documentation

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
面向批处理的java非阻塞队列   java如何基于HttpComponent获取html内容   java为什么我的程序会显示此错误?   java spring控制器如何处理应用程序/octetstream请求?   尝试将数据插入数据库时出现java常规错误   无法在java多线程处理中维护生产者任务的顺序   java为什么JSON数据无法访问ViewPager?   java获取Maven中特定分支的SVN buildnumber   java客户端无法从服务器接收信息   java等轴测地图绘制,生成   java无法调试ProcessBuilder   java热点JVM阵列分配   在数组中存储“inputdialog”数据的java   saml Java Inflater引发DataFormatException“无效代码长度集”   从集合(爬虫、Jsoup、Java)写入文件