{ "info": { "author": "Barry Quiel", "author_email": "barry.quiel@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: GNU General Public License v3 (GPLv3)", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# Modern Forms smart fan interface\n[Modern Forms](http://moderforms.com/fan/) has a collection of cloud connected Wi-Fi smart fans. They can be controlled via their app, but they also support local control. This project is an interface to control their fans locally via the REST API on the fan.\n\nAll aspects of the fan and option light kit can be controlled.\n\nThe REST API of the fan is unpublished. It was mapped out using a packet capture and interactions with their app. Since the manufacturer was unwilling to publish the API it is subject to change and break at any time.\n\n## Invocation\nImport into your code and create a `ModernFormsFan` object\n\n```python\nimport modernforms\nfan = moderforms.ModernFormsFan('192.168.1.10', 5)\n```\nConstructor takes 2 arguments. The IP or hostname (if you DNS registered your fan) and the timeout for communicating with the fan.\n\nThe timeout is optional and has a default value of 5.\n\n### Fan Control\nThe fan has 3 attributes to control:\n* fan_on\n* fan_speed\n* fan_direction\n```python\n>>> fan.fan_on\nFalse\n>>> fan.fan_on = True\n>>> fan.fan_on\nTrue\n```\n\n### Light Control\nThe light kit has two attributes to control:\n* light_on\n* light_brightness\n```python\n>>> fan.light_on\nFalse\n>>> fan.light_on = True\n>>> fan.light_on\nTrue\n```\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/quielb/pypi", "keywords": "", "license": "GPL", "maintainer": "", "maintainer_email": "", "name": "modernforms", "package_url": "https://pypi.org/project/modernforms/", "platform": "", "project_url": "https://pypi.org/project/modernforms/", "project_urls": { "Homepage": "https://github.com/quielb/pypi" }, "release_url": "https://pypi.org/project/modernforms/0.1.5/", "requires_dist": [ "requests" ], "requires_python": "", "summary": "An interface to control ModerForms smart fans", "version": "0.1.5" }, "last_serial": 5734160, "releases": { "0.1.5": [ { "comment_text": "", "digests": { "md5": "69fdba9a22ca89f3b995df4e014a37ed", "sha256": "57ff4e042e51ba9078bcc5d2d582d0ead03cc7d88911eefebe0ec47887479236" }, "downloads": -1, "filename": "modernforms-0.1.5-py3-none-any.whl", "has_sig": false, "md5_digest": "69fdba9a22ca89f3b995df4e014a37ed", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 16564, "upload_time": "2019-08-27T03:12:06", "url": "https://files.pythonhosted.org/packages/8d/ad/fddab692bb33fbca59dc01efcbb6e27da61adba0b2ccbc7344853a0ff23f/modernforms-0.1.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bc002f6701fb0b9fb3500ea488217440", "sha256": "a1e3ff480cd954779a1c5e2c0b2a75e28b1e2d7332c0b148063de040e9f1b35c" }, "downloads": -1, "filename": "modernforms-0.1.5.tar.gz", "has_sig": false, "md5_digest": "bc002f6701fb0b9fb3500ea488217440", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3643, "upload_time": "2019-08-27T03:12:09", "url": "https://files.pythonhosted.org/packages/e1/4a/1666385e230e006f06921d694c9993af26dd74cf29a97bccaaa1eb715081/modernforms-0.1.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "69fdba9a22ca89f3b995df4e014a37ed", "sha256": "57ff4e042e51ba9078bcc5d2d582d0ead03cc7d88911eefebe0ec47887479236" }, "downloads": -1, "filename": "modernforms-0.1.5-py3-none-any.whl", "has_sig": false, "md5_digest": "69fdba9a22ca89f3b995df4e014a37ed", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 16564, "upload_time": "2019-08-27T03:12:06", "url": "https://files.pythonhosted.org/packages/8d/ad/fddab692bb33fbca59dc01efcbb6e27da61adba0b2ccbc7344853a0ff23f/modernforms-0.1.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "bc002f6701fb0b9fb3500ea488217440", "sha256": "a1e3ff480cd954779a1c5e2c0b2a75e28b1e2d7332c0b148063de040e9f1b35c" }, "downloads": -1, "filename": "modernforms-0.1.5.tar.gz", "has_sig": false, "md5_digest": "bc002f6701fb0b9fb3500ea488217440", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 3643, "upload_time": "2019-08-27T03:12:09", "url": "https://files.pythonhosted.org/packages/e1/4a/1666385e230e006f06921d694c9993af26dd74cf29a97bccaaa1eb715081/modernforms-0.1.5.tar.gz" } ] }