Last updated:
0 purchases
BeautifulHue 0.1.2
Installation
Using pip:
pip install beautifulhue
Using setuptools:
easy_install beautifulhue
Using source
python setup.py install
Example
"""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)
Features
Complete Philips Hue API v1.0 coverage.
Consistent method names.
Designed to get things done.
JSON/Pyton dictionary resource representation.
Default response structures are closely aligned with the official Philips Hue API response structures.
Extensible design.
Fine-grained system state control.
Complete Documentation
For personal and professional use. You cannot resell or redistribute these repositories in their original state.
There are no reviews.