{ "info": { "author": "Chris Jowett", "author_email": "cryptk@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 4 - Beta", "Intended Audience :: Developers", "License :: OSI Approved :: MIT License", "Programming Language :: Python :: 2", "Programming Language :: Python :: 2.7", "Topic :: Home Automation", "Topic :: System :: Hardware :: Hardware Drivers" ], "description": "pyqlight\n=======\n\nA python interface for Q-Light warning light towers. Includes both a module\nwhich can be included as well as a command line utility suitable for one-shot\ncontrols.\n\nBefore submutting a Pull request\n================================\nMake sure that your code meets the style and quality guidelines within the\nHACKING file.\n\nLIMITATIONS\n===========\n\nThis code may or may not work on a Mac... if you can verify this, or provide a\nmethod to get it working on a Mac, please let me know.\nIt has only ever been tested on Ubuntu (15.04).\n\nIf more than one lamp is connected to the system, there is no way to determine\nwhich one you are addressing. Without a second lamp to test with, I cannot\nreliably add this functionality.\n\nThere is no way to poll the light for it's current state that I can determine.\nThis appears to be a limitation of the Q-Lights themselves.\n\nThe code must be run as root to access the USB devices. The exception is\nsystems that use udev. For those, you can place the included\nudev/80-q-light.rules into /etc/udev/rules.d and then replug the device. As\nlong as your user account is in the plugdev group, you will then be able to\ncontrol the light as a non-root user.\n\nUSAGE\n=====\n```\nusage: pyqlight [-h] [-r [STATE]] [-y [STATE]] [-g [STATE]] [-b [STATE]]\n [-w [STATE]] [-a [STATE]] [-t [TONE]] [-d [DURATION]]\n\ncontrol a Q-Light warning tower. All lamps should have red, yellow and green\nlights available. Blue and white lights may or may not be available depending\non exact model.\n\noptional arguments:\n -h, --help show this help message and exit\n\nLight Controls:\n Valid states are \"off\", \"on\", \"blink\", \"pass\"\n\n -r [STATE], --red [STATE]\n Desired state of red lamp. (default: pass)\n -y [STATE], --yellow [STATE]\n Desired state of yellow lamp. (default: pass)\n -g [STATE], --green [STATE]\n Desired state of green lamp. (default: pass)\n -b [STATE], --blue [STATE]\n Desired state of blue lamp. (default: pass)\n -w [STATE], --white [STATE]\n Desired state of white lamp. (default: pass)\n -a [STATE], --all-lights [STATE]\n State of all lamps. (default: None)\n\nTone Controls:\n valid tone options are \"off\", \"tone_1\", \"tone_2\", \"tone_3\", \"tone_4\",\n \"tone_5\", \"pass\"\n\n -t [TONE], --tone [TONE]\n Desired tone to play. (default: pass)\n -d [DURATION], --duration [DURATION]\n Duration to play tone (in ms). (default: 0)\n\nWritten by Chris Jowett, cryptk@gmail.com\n```", "description_content_type": null, "docs_url": null, "download_url": null, "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/cryptk/pyqlight", "keywords": "Q-Light warning light", "license": "MIT", "maintainer": null, "maintainer_email": null, "name": "pyqlight", "package_url": "https://pypi.org/project/pyqlight/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/pyqlight/", "project_urls": { "Homepage": "https://github.com/cryptk/pyqlight" }, "release_url": "https://pypi.org/project/pyqlight/1.0.1/", "requires_dist": [ "hid", "argparse" ], "requires_python": null, "summary": "A python module to interact with Q-Light warning lights", "version": "1.0.1" }, "last_serial": 1653870, "releases": { "1.0.0": [ { "comment_text": "", "digests": { "md5": "719ad092bb4d97faba7906e7c7c28f65", "sha256": "d02eeaa9493eb9ec64dbd0446b17584f51c8cbd29ba725c3cb69a20d9f370cac" }, "downloads": -1, "filename": "pyqlight-1.0.0-py2-none-any.whl", "has_sig": false, "md5_digest": "719ad092bb4d97faba7906e7c7c28f65", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 8620, "upload_time": "2015-07-28T16:18:01", "url": "https://files.pythonhosted.org/packages/43/65/67af7ffc012283eded24e8cdee11e59889b2997b8a76f150e7073cb8316f/pyqlight-1.0.0-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "47a4bbde44d7b2b8a2c3fc713d66aed7", "sha256": "23b8931c15d7bbb6d011f3216aa7d778a04081585fbe20a383f54c76e2a3d57e" }, "downloads": -1, "filename": "pyqlight-1.0.0.tar.gz", "has_sig": false, "md5_digest": "47a4bbde44d7b2b8a2c3fc713d66aed7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6064, "upload_time": "2015-07-28T16:18:04", "url": "https://files.pythonhosted.org/packages/1d/6b/8e7b093f1db44a7d6655a956491615adf7e2b957a40bc168ba94ec91ad66/pyqlight-1.0.0.tar.gz" } ], "1.0.1": [ { "comment_text": "", "digests": { "md5": "831ba97b73a91f159a5a355fdf6b29ef", "sha256": "2933b6f729a3fa68e09c2682834373938107bd11eb9a2fdad18643767ad5d414" }, "downloads": -1, "filename": "pyqlight-1.0.1-py2-none-any.whl", "has_sig": false, "md5_digest": "831ba97b73a91f159a5a355fdf6b29ef", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 8618, "upload_time": "2015-07-28T19:19:13", "url": "https://files.pythonhosted.org/packages/6c/0f/c2aa1530b9acb51ebc5fc1a497e4b1f4f7ebb29a735adc0677f3b4e17da8/pyqlight-1.0.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6dd9dcc73dfe212a7bb5c0bec02f41d2", "sha256": "8eedcf6b69623991afa05b14a5a7fade86bcf4ae3e0662a1fdd353812dc9a7ae" }, "downloads": -1, "filename": "pyqlight-1.0.1.tar.gz", "has_sig": false, "md5_digest": "6dd9dcc73dfe212a7bb5c0bec02f41d2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6123, "upload_time": "2015-07-28T19:19:16", "url": "https://files.pythonhosted.org/packages/bf/db/9ec8c3f50cc1a48eb3cdb392744fa5bf2dca8eb3b1a034333507501257d7/pyqlight-1.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "831ba97b73a91f159a5a355fdf6b29ef", "sha256": "2933b6f729a3fa68e09c2682834373938107bd11eb9a2fdad18643767ad5d414" }, "downloads": -1, "filename": "pyqlight-1.0.1-py2-none-any.whl", "has_sig": false, "md5_digest": "831ba97b73a91f159a5a355fdf6b29ef", "packagetype": "bdist_wheel", "python_version": "py2", "requires_python": null, "size": 8618, "upload_time": "2015-07-28T19:19:13", "url": "https://files.pythonhosted.org/packages/6c/0f/c2aa1530b9acb51ebc5fc1a497e4b1f4f7ebb29a735adc0677f3b4e17da8/pyqlight-1.0.1-py2-none-any.whl" }, { "comment_text": "", "digests": { "md5": "6dd9dcc73dfe212a7bb5c0bec02f41d2", "sha256": "8eedcf6b69623991afa05b14a5a7fade86bcf4ae3e0662a1fdd353812dc9a7ae" }, "downloads": -1, "filename": "pyqlight-1.0.1.tar.gz", "has_sig": false, "md5_digest": "6dd9dcc73dfe212a7bb5c0bec02f41d2", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 6123, "upload_time": "2015-07-28T19:19:16", "url": "https://files.pythonhosted.org/packages/bf/db/9ec8c3f50cc1a48eb3cdb392744fa5bf2dca8eb3b1a034333507501257d7/pyqlight-1.0.1.tar.gz" } ] }