govee-H613-BTcontroller


Namegovee-H613-BTcontroller JSON
Version 1.0.2 PyPI version JSON
download
home_pagehttps://github.com/Xample33/govee_H613_BTcontroller
SummaryA Python library for controlling Govee H613 Bluetooth LED strip.
upload_time2023-11-23 16:28:08
maintainerXample33
docs_urlNone
authorXample33
requires_python>=3.9
licenseMIT
keywords govee bluetooth led strip h613
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            <h1 align="center"> Control govee lights with python </h1>

<h3 align="center"> Simple python package to control govee H613B (and technically more) led strip with python <h3>

<p align="center">  
  <a href="https://github.com/astral-sh/ruff"><img alt="Ruff" src="https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json"></a>
  <a href="https://pypi.org/project/govee-H613-BTcontroller"><img alt="PyPI - Version" src="https://badgen.net/pypi/v/govee-H613-BTcontroller"></a>
  <a href="https://pypi.org/project/govee-H613-BTcontroller"><img alt="PyPI - Python Version" src="https://badgen.net/pypi/python/govee-H613-BTcontroller"></a>
  <a href="https://pypi.org/project/govee-H613-BTcontroller"><img alt="PyPI - Downloads" src="https://badgen.net/pypi/dm/govee-H613-BTcontroller"></a>
  <img src="https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2FXample33%2Fgovee_H613_BTcontroller&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=false">
</p>

## Installation

```
pip3 install govee_H613_BTcontroller
```

## Example

```python
import asyncio
from govee_H613_BTcontroller import GoveeController

async def main():
    device = GoveeController('A4:C1:38:35:97:24')
    device = await device.connect()
    
    await device.turn_on()
    
    await device.set_color('red')
    await device.set_brightness(255)
    await asyncio.sleep(3)
    await device.set_color('green')
    
    await device.turn_off(smooth=True)
    await device.disconnect()
    
if __name__ == '__main__':
    asyncio.run(main())
```

## Contributing
Contributions are welcome! Feel free to open a PR.


## License
This project is licensed under the MIT License.


> ☆ If you like the project, please leave a star, is free!

            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/Xample33/govee_H613_BTcontroller",
    "name": "govee-H613-BTcontroller",
    "maintainer": "Xample33",
    "docs_url": null,
    "requires_python": ">=3.9",
    "maintainer_email": "",
    "keywords": "govee bluetooth led strip H613",
    "author": "Xample33",
    "author_email": "",
    "download_url": "https://files.pythonhosted.org/packages/dc/94/d5f846314ba2774d30825cdd2c73147401d3834873f48ffec48ab2194cb9/govee_H613_BTcontroller-1.0.2.tar.gz",
    "platform": null,
    "description": "<h1 align=\"center\"> Control govee lights with python </h1>\n\n<h3 align=\"center\"> Simple python package to control govee H613B (and technically more) led strip with python <h3>\n\n<p align=\"center\">  \n  <a href=\"https://github.com/astral-sh/ruff\"><img alt=\"Ruff\" src=\"https://img.shields.io/endpoint?url=https://raw.githubusercontent.com/astral-sh/ruff/main/assets/badge/v2.json\"></a>\n  <a href=\"https://pypi.org/project/govee-H613-BTcontroller\"><img alt=\"PyPI - Version\" src=\"https://badgen.net/pypi/v/govee-H613-BTcontroller\"></a>\n  <a href=\"https://pypi.org/project/govee-H613-BTcontroller\"><img alt=\"PyPI - Python Version\" src=\"https://badgen.net/pypi/python/govee-H613-BTcontroller\"></a>\n  <a href=\"https://pypi.org/project/govee-H613-BTcontroller\"><img alt=\"PyPI - Downloads\" src=\"https://badgen.net/pypi/dm/govee-H613-BTcontroller\"></a>\n  <img src=\"https://hits.seeyoufarm.com/api/count/incr/badge.svg?url=https%3A%2F%2Fgithub.com%2FXample33%2Fgovee_H613_BTcontroller&count_bg=%2379C83D&title_bg=%23555555&icon=&icon_color=%23E7E7E7&title=hits&edge_flat=false\">\n</p>\n\n## Installation\n\n```\npip3 install govee_H613_BTcontroller\n```\n\n## Example\n\n```python\nimport asyncio\nfrom govee_H613_BTcontroller import GoveeController\n\nasync def main():\n    device = GoveeController('A4:C1:38:35:97:24')\n    device = await device.connect()\n    \n    await device.turn_on()\n    \n    await device.set_color('red')\n    await device.set_brightness(255)\n    await asyncio.sleep(3)\n    await device.set_color('green')\n    \n    await device.turn_off(smooth=True)\n    await device.disconnect()\n    \nif __name__ == '__main__':\n    asyncio.run(main())\n```\n\n## Contributing\nContributions are welcome! Feel free to open a PR.\n\n\n## License\nThis project is licensed under the MIT License.\n\n\n> \u2606 If you like the project, please leave a star, is free!\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "A Python library for controlling Govee H613 Bluetooth LED strip.",
    "version": "1.0.2",
    "project_urls": {
        "Homepage": "https://github.com/Xample33/govee_H613_BTcontroller"
    },
    "split_keywords": [
        "govee",
        "bluetooth",
        "led",
        "strip",
        "h613"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "2ac3582d084f44b38235011721b27131faf24d147c4c4e8ccc6d46730ebdfc9c",
                "md5": "f535d4d2c98ccc42f2444e7e8d074c3e",
                "sha256": "eada8d6c701667ebfcb485b306f1fcce99f23d241be01f61315dc6c904d4eb81"
            },
            "downloads": -1,
            "filename": "govee_H613_BTcontroller-1.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "f535d4d2c98ccc42f2444e7e8d074c3e",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.9",
            "size": 6864,
            "upload_time": "2023-11-23T16:28:05",
            "upload_time_iso_8601": "2023-11-23T16:28:05.814244Z",
            "url": "https://files.pythonhosted.org/packages/2a/c3/582d084f44b38235011721b27131faf24d147c4c4e8ccc6d46730ebdfc9c/govee_H613_BTcontroller-1.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "dc94d5f846314ba2774d30825cdd2c73147401d3834873f48ffec48ab2194cb9",
                "md5": "b0710d23820967c4ccfd12c64f706165",
                "sha256": "850d6cddeaa418dfdf036008a5ce35c366cec334296f9cbe055e0a3acfecb19a"
            },
            "downloads": -1,
            "filename": "govee_H613_BTcontroller-1.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "b0710d23820967c4ccfd12c64f706165",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.9",
            "size": 6383,
            "upload_time": "2023-11-23T16:28:08",
            "upload_time_iso_8601": "2023-11-23T16:28:08.281565Z",
            "url": "https://files.pythonhosted.org/packages/dc/94/d5f846314ba2774d30825cdd2c73147401d3834873f48ffec48ab2194cb9/govee_H613_BTcontroller-1.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2023-11-23 16:28:08",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "Xample33",
    "github_project": "govee_H613_BTcontroller",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "lcname": "govee-h613-btcontroller"
}
        
Elapsed time: 0.15459s