{ "info": { "author": "Michael Dubno", "author_email": "michael@dubno.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# pyv6m Package\n\nPackage to control a V6M ethernet relay boards using Python.\nI can't read Chinese on the controller, but the unit operates\nnicely and can be configured using HTTP and controlled on port\n1234. It theoretically supports MQTT protocol, but I haven't\nreceived that documentation yet.\n\nThe underlying command structure sent to the board is simple.\nThe following example would turn on relay 1, and turn off relay 3.\nThe remaining relays are left unchanged:\n setr=1x0xxxxxx\n\nThe board supports other controls:\n* '0' - off\n* '1' - on\n* '2' - pulse (on, delay, off)\n* '3' - toggle\n* '4' - group 2 relays adjacent relays. On if '4x', off if 'x4'.\n\nThis package only supports turning relays on and off through the\nV6M.set_relay method.\n\nThe board also supports 8 inputs. As a default from the factory,\nthe inputs directly control the relays. This can be disabled through\nthe web interface. The state of the inputs can be read using the V6M.get_sensor\ninterface, or by setting the sensor_callback.\n\nThe board will not send immediate feedback when input levels changed,\nso the board is polled every second.\n\n# Example:\n\n from time import sleep\n from pyv6m import V6M\n\n hub = V6M( 'host.test.com', 1234 )\n\n # Turn the first relay on\n hub.set_relay( 0, True )\n\n # Pause for a second\n sleep(1.)\n\n # Turn the first relay off\n hub.set_relay( 0, False )\n\n # Close the interface\n hub.close()\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/dubnom/pyvm6", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "pyvm6", "package_url": "https://pypi.org/project/pyvm6/", "platform": "", "project_url": "https://pypi.org/project/pyvm6/", "project_urls": { "Homepage": "https://github.com/dubnom/pyvm6" }, "release_url": "https://pypi.org/project/pyvm6/0.0.1/", "requires_dist": null, "requires_python": "", "summary": "VM6 relay controller over Ethernet", "version": "0.0.1" }, "last_serial": 4455234, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "cc7362238687035a8c59f54cf7a2f79b", "sha256": "e03db9d2d87cf018934f4cb10833818e6f0a7d412bbca11afae54fd7f82d9793" }, "downloads": -1, "filename": "pyvm6-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "cc7362238687035a8c59f54cf7a2f79b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7865, "upload_time": "2018-11-05T23:32:42", "url": "https://files.pythonhosted.org/packages/e3/47/25415e2bce467a78f8489099f3f6a9b67a09797c41839121aecb993f4868/pyvm6-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3f1f90f39d81c4b81133999cf25c18ce", "sha256": "643a6353dea303a82ba022ece9ffc77a233f7ccee317a819da7820fd62d9bcba" }, "downloads": -1, "filename": "pyvm6-0.0.1.tar.gz", "has_sig": false, "md5_digest": "3f1f90f39d81c4b81133999cf25c18ce", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4881, "upload_time": "2018-11-05T23:32:45", "url": "https://files.pythonhosted.org/packages/e0/29/7fcb9705ce2478447ea1e2392da71f66d8f416488696b684becd5a2db752/pyvm6-0.0.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "cc7362238687035a8c59f54cf7a2f79b", "sha256": "e03db9d2d87cf018934f4cb10833818e6f0a7d412bbca11afae54fd7f82d9793" }, "downloads": -1, "filename": "pyvm6-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "cc7362238687035a8c59f54cf7a2f79b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 7865, "upload_time": "2018-11-05T23:32:42", "url": "https://files.pythonhosted.org/packages/e3/47/25415e2bce467a78f8489099f3f6a9b67a09797c41839121aecb993f4868/pyvm6-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3f1f90f39d81c4b81133999cf25c18ce", "sha256": "643a6353dea303a82ba022ece9ffc77a233f7ccee317a819da7820fd62d9bcba" }, "downloads": -1, "filename": "pyvm6-0.0.1.tar.gz", "has_sig": false, "md5_digest": "3f1f90f39d81c4b81133999cf25c18ce", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4881, "upload_time": "2018-11-05T23:32:45", "url": "https://files.pythonhosted.org/packages/e0/29/7fcb9705ce2478447ea1e2392da71f66d8f416488696b684becd5a2db752/pyvm6-0.0.1.tar.gz" } ] }