{ "info": { "author": "Adafruit Industries", "author_email": "circuitpython@adafruit.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Topic :: Software Development :: Libraries", "Topic :: System :: Hardware" ], "description": "Introduction\n============\n\n.. image:: https://readthedocs.org/projects/adafruit-circuitpython-hue/badge/?version=latest\n :target: https://circuitpython.readthedocs.io/projects/hue/en/latest/\n :alt: Documentation Status\n\n.. image:: https://img.shields.io/discord/327254708534116352.svg\n :target: https://discord.gg/nBQh6qu\n :alt: Discord\n\n.. image:: https://travis-ci.com/adafruit/Adafruit_CircuitPython_Hue.svg?branch=master\n :target: https://travis-ci.com/adafruit/Adafruit_CircuitPython_Hue\n :alt: Build Status\n\nCircuitPython helper library for Philips Hue Lights.\n\nDependencies\n=============\nThis driver depends on:\n\n* `Adafruit CircuitPython `_\n\nPlease ensure all dependencies are available on the CircuitPython filesystem.\nThis is easily achieved by downloading\n`the Adafruit library and driver bundle `_.\n\nInstalling from PyPI\n--------------------\nOn supported GNU/Linux systems like the Raspberry Pi, you can install the driver locally `from\nPyPI `_. To install for current user:\n\n.. code-block:: shell\n\n pip3 install adafruit-circuitpython-hue\n\nTo install system-wide (this may be required in some cases):\n\n.. code-block:: shell\n\n sudo pip3 install adafruit-circuitpython-hue\n\nTo install in a virtual environment in your current project:\n\n.. code-block:: shell\n\n mkdir project-name && cd project-name\n python3 -m venv .env\n source .env/bin/activate\n pip3 install adafruit-circuitpython-hue\n\nUsage Example\n=============\n\nLoad bridge username and IP Address from secrets.py file:\n\n.. code-block:: python\n\n username = secrets['hue_username']\n bridge_ip = secrets['bridge_ip']\n my_bridge = Bridge(wifi, bridge_ip, username)\n\nEnumerate all lights on the bridge\n\n.. code-block:: python\n\n lights = my_bridge.get_lights()\n\nTurn on a light\n\n.. code-block:: python\n\n my_bridge.set_light(1, on=True)\n\nTurn off a light\n\n.. code-block:: python\n\n my_bridge.set_light(1, on=False)\n\nSet a light to the color yellow (RGB)\n\n.. code-block:: python\n\n color = my_bridge.rgb_to_hsb([255, 255, 0])\n my_bridge.set_light(1, hue=int(color[0]), sat=int(color[1]), bri=int(color[2]))\n\nSet a group of lights to a predefined scene\n\n.. code-block:: python\n\n my_bridge.set_group(1, scene='AB34EF5')\n\nSet a group of lights to a predefined color\n\n.. code-block:: python\n\n my_bridge.set_group(1, color)\n\nContributing\n============\n\nContributions are welcome! Please read our `Code of Conduct\n`_\nbefore contributing to help this project stay welcoming.\n\nBuilding locally\n================\n\nZip release files\n-----------------\n\nTo build this library locally you'll need to install the\n`circuitpython-build-tools `_ package.\n\n.. code-block:: shell\n\n python3 -m venv .env\n source .env/bin/activate\n pip install circuitpython-build-tools\n\nOnce installed, make sure you are in the virtual environment:\n\n.. code-block:: shell\n\n source .env/bin/activate\n\nThen run the build:\n\n.. code-block:: shell\n\n circuitpython-build-bundles --filename_prefix adafruit-circuitpython-hue --library_location .\n\nSphinx documentation\n-----------------------\n\nSphinx is used to build the documentation based on rST files and comments in the code. First,\ninstall dependencies (feel free to reuse the virtual environment from above):\n\n.. code-block:: shell\n\n python3 -m venv .env\n source .env/bin/activate\n pip install Sphinx sphinx-rtd-theme\n\nNow, once you have the virtual environment activated:\n\n.. code-block:: shell\n\n cd docs\n sphinx-build -E -W -b html . _build/html\n\nThis will output the documentation to ``docs/_build/html``. Open the index.html in your browser to\nview them. It will also (due to -W) error out on any warning like Travis will. This is a good way to\nlocally verify it will pass.", "description_content_type": "text/x-rst", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/adafruit/Adafruit_CircuitPython_Hue", "keywords": "adafruit blinka circuitpython micropython hue philips bulb light bridge", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "adafruit-circuitpython-hue", "package_url": "https://pypi.org/project/adafruit-circuitpython-hue/", "platform": "", "project_url": "https://pypi.org/project/adafruit-circuitpython-hue/", "project_urls": { "Homepage": "https://github.com/adafruit/Adafruit_CircuitPython_Hue" }, "release_url": "https://pypi.org/project/adafruit-circuitpython-hue/1.0.1/", "requires_dist": null, "requires_python": "", "summary": "CircuitPython helper library for the Philips Hue", "version": "1.0.1" }, "last_serial": 5541459, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "d0a501368cd197f6d4ddcb1dbbeacf5f", "sha256": "da34ce2a90da81a74ff2a27141f594f882c5dc5564ea3c6763f3fe4b4e46e371" }, "downloads": -1, "filename": "adafruit-circuitpython-hue-1.0.0.tar.gz", "has_sig": false, "md5_digest": "d0a501368cd197f6d4ddcb1dbbeacf5f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22927, "upload_time": "2019-04-16T22:00:13", "url": "https://files.pythonhosted.org/packages/97/a9/d53aa120ad6ed3df56200b345f18d890bcba67fb96a6e710ecb82c2d9861/adafruit-circuitpython-hue-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "24eb0cdb167a16119fdfe3fef4d14452", "sha256": "b2a668692994567b9c9ea5176fcaef9028f9859f6349437ea98d0017dd53412e" }, "downloads": -1, "filename": "adafruit-circuitpython-hue-1.0.1.tar.gz", "has_sig": false, "md5_digest": "24eb0cdb167a16119fdfe3fef4d14452", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22919, "upload_time": "2019-07-16T16:11:26", "url": "https://files.pythonhosted.org/packages/3b/de/8bcddd2d15e3c36d87b851705c1ce57528ff343c74ae9357ca156c06a3cc/adafruit-circuitpython-hue-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "24eb0cdb167a16119fdfe3fef4d14452", "sha256": "b2a668692994567b9c9ea5176fcaef9028f9859f6349437ea98d0017dd53412e" }, "downloads": -1, "filename": "adafruit-circuitpython-hue-1.0.1.tar.gz", "has_sig": false, "md5_digest": "24eb0cdb167a16119fdfe3fef4d14452", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 22919, "upload_time": "2019-07-16T16:11:26", "url": "https://files.pythonhosted.org/packages/3b/de/8bcddd2d15e3c36d87b851705c1ce57528ff343c74ae9357ca156c06a3cc/adafruit-circuitpython-hue-1.0.1.tar.gz" } ] }