Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/sontek/bulby
Python library for managing the phillips hue lightbulb
https://github.com/sontek/bulby
Last synced: about 1 month ago
JSON representation
Python library for managing the phillips hue lightbulb
- Host: GitHub
- URL: https://github.com/sontek/bulby
- Owner: sontek
- License: mit
- Created: 2015-03-30T17:01:27.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-14T07:11:26.000Z (over 9 years ago)
- Last Synced: 2024-10-22T20:21:00.861Z (about 2 months ago)
- Language: Python
- Size: 126 KB
- Stars: 121
- Watchers: 9
- Forks: 10
- Open Issues: 3
-
Metadata Files:
- Readme: README.rst
- Changelog: CHANGES.rst
- License: LICENSE
Awesome Lists containing this project
README
bulby
=================
Python library for managing the phillips hue lightbulbGetting Started
=================
To get started you can get a list of your lights and work with them:.. code-block:: python
from bulby.client import HueBridgeClient
client = HueBridgeClient()
light = client.get_lights()[0]
client.set_color(light.light_id, '00ff00')and now your light should be green! You can also reference lights by name:
.. code-block:: python
from bulby.client import HueBridgeClient
client = HueBridgeClient()
client.set_color('Office 1', '00ff00')Tips
====
To get the bridge IP go here:https://www.meethue.com/api/nupnp
Once you get the IP you can debug the base here:
http:///debug/clip.html
Development
================
API Documentation for the Phillips Hue is here:http://www.developers.meethue.com/
You can test the API of your phillips hue by going to ``/debug/clip.html``.
Running tests
=================
To run the tests you can do the following:.. code-block:: bash
tox -e py34
The first time you run the tests you will need to hold the link button.
Credits
==================
- SSDP Module originally developed by Dan Krause here:
https://gist.github.com/dankrause/6000248- Hex -> XY originally developed by Ben Knight here:
https://github.com/benknight/hue-python-rgb-converter