{ "info": { "author": "Albin Kauffmann", "author_email": "albin@kauff.org", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "License :: OSI Approved :: GNU General Public License v3 or later (GPLv3+)", "Operating System :: POSIX :: Linux", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.4", "Programming Language :: Python :: 3.5", "Programming Language :: Python :: 3.6", "Programming Language :: Python :: 3.7", "Programming Language :: Python :: 3 :: Only", "Topic :: Home Automation" ], "description": "# Sleep360\n\nThis project allows to control the Holi SleepCompanion from a Linux computer.\n\nThe SleepCompanion is nice LED bulb that offers a lot of features to improve your sleep and your waking up.\nIt is manufactured by Holi, a French company.\nA product description can be found by following these links:\n\n- [Official Website (French)](https://www.holi.io/?portfolio=sleepcompanion-lampoule-qui-vous-reveille-les-neurones)\n- [An English overview](https://www.hobbr.com/holi-sleep-companion)\n\nThis Sleep360 project is written in Python and can be used:\n\n- as a library by creating a `sleep360.Bulb()` object\n- as a command line utility (coming soon)\n\n## Requirements\n\n- D-BUS\n- bluez >= 5.46 (dependency on the GATT D-BUS API)\n\n## Installation\n\n### From PyPI\n\n pip install [--user] sleep360\n\n### From the sources\n\n cd python-sleep360\n pip install [--user] .\n\n## Command line usage\n\n`pip install` installs a `sleep360` binary.\nRunning it gives a prompt like this one:\n\n Sleep360 shell (version x.y.z).\n Type help or ? to list commands.\n\n [sleep360] connect Bulb\n Connecting to the Bulb...\n [sleep360] set_color 0xff0000 0x00 0x00\n [sleep360] disconnect\n Disconnecting from the Bulb...\n [sleep360] exit\n\n## Library usage\n\n bulb = Bulb(name=\"Bulb\")\n bulb.connect()\n\n # Play with bulb commands\n [...]\n\n bulb.disconnect()\n\nExamples are available in the [tests](tests) directory.\n\n## Supported features\n\nThe SleepCompanion bulb offers a lot of features.\nAmong them, the following ones are currently supported by Sleep360:\n\n- Setting colors (RGB + warm and cold value)\n- Powering off the light\n- Getting the temperatures measured by the bulb\n\n## Reverse-engineering\n\nThis project has been developed by carefully studying the Bluetooth LE messages.\nThe file [BLE-protocol.md](BLE-protocol.md) describes my understanding of these messages.", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://gitlab.com/albinou/python-sleep360", "keywords": "sleepcompanion bluetooth ble bulb led light", "license": "", "maintainer": "", "maintainer_email": "", "name": "sleep360", "package_url": "https://pypi.org/project/sleep360/", "platform": "", "project_url": "https://pypi.org/project/sleep360/", "project_urls": { "Bug Reports": "https://gitlab.com/albinou/python-sleep360/issues", "Homepage": "https://gitlab.com/albinou/python-sleep360", "Source": "https://gitlab.com/albinou/python-sleep360" }, "release_url": "https://pypi.org/project/sleep360/0.2.0/", "requires_dist": null, "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4", "summary": "A library and command-line tool to control the Holi SleepCompanion", "version": "0.2.0" }, "last_serial": 5254143, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "6440f3689d68b044a8ac361c4e11d51e", "sha256": "a60e44277de587919c5b9a67d1f9ac3f11d7d5cb44b1f2747a2c79b7ac17c9ee" }, "downloads": -1, "filename": "sleep360-0.1.0.tar.gz", "has_sig": false, "md5_digest": "6440f3689d68b044a8ac361c4e11d51e", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4", "size": 6715, "upload_time": "2019-05-07T13:22:09", "url": "https://files.pythonhosted.org/packages/98/b4/242882062a0b8f9d9b2c6811610e87e15169136afc6cf754017545890923/sleep360-0.1.0.tar.gz" } ], "0.2.0": [ { "comment_text": "", "digests": { "md5": "7476efe85ff2bb7db2630f6f5b233925", "sha256": "77a65f84d1db531898cd7d504653fc96950c84d134161d18daf0a2598761821b" }, "downloads": -1, "filename": "sleep360-0.2.0.tar.gz", "has_sig": false, "md5_digest": "7476efe85ff2bb7db2630f6f5b233925", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4", "size": 9938, "upload_time": "2019-05-10T21:16:49", "url": "https://files.pythonhosted.org/packages/4c/63/5bb76532d0048be47d635ef16062f365a32f069e142779bac070b032cbd4/sleep360-0.2.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "7476efe85ff2bb7db2630f6f5b233925", "sha256": "77a65f84d1db531898cd7d504653fc96950c84d134161d18daf0a2598761821b" }, "downloads": -1, "filename": "sleep360-0.2.0.tar.gz", "has_sig": false, "md5_digest": "7476efe85ff2bb7db2630f6f5b233925", "packagetype": "sdist", "python_version": "source", "requires_python": ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*, <4", "size": 9938, "upload_time": "2019-05-10T21:16:49", "url": "https://files.pythonhosted.org/packages/4c/63/5bb76532d0048be47d635ef16062f365a32f069e142779bac070b032cbd4/sleep360-0.2.0.tar.gz" } ] }