{ "info": { "author": "Dan Smith", "author_email": "dsmith+mficlient@danplanet.com", "bugtrack_url": null, "classifiers": [], "description": "Client for Ubiquiti's mFi system\n================================\n\n.. image:: https://travis-ci.org/kk7ds/mficlient.svg?branch=master\n :target: https://travis-ci.org/kk7ds/mficlient\n\nThe APIs in this library (and tool) should not be considered stable!\n\nTo install::\n\n $ pip install mficlient\n\nTo get started, set your connection information like this::\n\n $ export MFI=\"https://user:password@192.168.1.123:6443\"\n\nThen you can run the client, doing something like::\n\n $ mfi dump_sensors\n Model | Label | Tag | Value | Extra\n -------------------------------------------------------------------------------\n Output 12v | Relay Control | output | 0 | 0.0\n Output 24v | Relay | output | 0 | 0.0\n Ubiquiti mFi-THS | Temp | temperature | 14.3 | None\n Input Digital | Garage Door | input | 1 | None\n Outlet | Heater Control | active_pwr | 5.810242 | 1.0\n Ubiquiti mFi-CS | Furnace | amps | 1.0539 | None\n Ubiquiti mFi-CS | Water Heater | amps | 0.0 | None\n\n $ mfi control_device --device 'Heater Control' --state on\n\nClient API example::\n\n >>> c = mficlient.MFiClient('192.168.1.123', 'admin', 'password')\n >>> p = c.get_port(label='Water Heater Control')\n >>> p.model\n 'Outlet'\n >>> p.value\n 5.746462\n >>> p.tag\n 'active_pwr'\n >>> p.data\n {'rpt_time': 1456258144771, 'mac': 'redacted', 'locked': False, 'label': 'Water Heater Control', 'wattHours': 8001.875, 'y': 222.18320610687024, 'map_id': 'redacted', 'output': 1.0, 'fovrotation': 0, 'active_pwr': 5.746462, 'pf': 0.678653, 'reported_val': 1.0, '_id': 'redacted', 'i_rms': 0.069931, 'fovradius': 10, 'v_rms': 121.082737, 'val_time': 1456258144000, 'port': '1', 'energy_sum': 8001.875, 'wattHoursBase': 0.0, 'tag': 'active_pwr', 'val': 5.746462, 'wh_rpt_time': 1456258144761, 'model': 'Outlet', 'x': 564.8839694656489, 'fovangle': 1.5707963267948966, 'output_val': 1.0}\n >>> p.control(False)\n", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://github.org/kk7ds/mficlient", "keywords": null, "license": "UNKNOWN", "maintainer": null, "maintainer_email": null, "name": "mficlient", "package_url": "https://pypi.org/project/mficlient/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/mficlient/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://github.org/kk7ds/mficlient" }, "release_url": "https://pypi.org/project/mficlient/0.3.0/", "requires_dist": null, "requires_python": null, "summary": "A remote control client for Ubiquiti's mFi system", "version": "0.3.0" }, "last_serial": 1983142, "releases": { "0.1": [ { "comment_text": "", "digests": { "md5": "b3838babe99a77511d670bca070f3b3b", "sha256": "074b8f3d14bcb2b5b526397472ecd164e1badb499bee0cadd4d212e9ae5afc54" }, "downloads": -1, "filename": "mficlient-0.1.tar.gz", "has_sig": false, "md5_digest": "b3838babe99a77511d670bca070f3b3b", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4060, "upload_time": "2016-02-06T16:33:20", "url": "https://files.pythonhosted.org/packages/2c/eb/8a8172f66baa82012ded5284879053e181e8d8c38df197c2b4eb8a7f0712/mficlient-0.1.tar.gz" } ], "0.2": [ { "comment_text": "", "digests": { "md5": "ec05444396ffcc4feb4ca486f64e3b73", "sha256": "2b221271366fddc6b64d4b3d221c83040e1cd9f09514c98bdd9068c7eae8ed72" }, "downloads": -1, "filename": "mficlient-0.2.tar.gz", "has_sig": false, "md5_digest": "ec05444396ffcc4feb4ca486f64e3b73", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4711, "upload_time": "2016-02-06T21:30:18", "url": "https://files.pythonhosted.org/packages/45/6a/2cb346c9cf3abbb99002000f9966ff640b311f56289ab82fbe9d40f74b79/mficlient-0.2.tar.gz" } ], "0.2.1": [ { "comment_text": "", "digests": { "md5": "e10df4de910722907878555df5aa852e", "sha256": "2cec3e056648fcc98f4659cbb162d608f3990584db05b75b9c27daec4e3c9193" }, "downloads": -1, "filename": "mficlient-0.2.1.tar.gz", "has_sig": false, "md5_digest": "e10df4de910722907878555df5aa852e", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4734, "upload_time": "2016-02-07T19:17:37", "url": "https://files.pythonhosted.org/packages/1d/61/995e731ebfa59db31b2eda5a62a1eb14aba005e24a33ebf64e14cef6d976/mficlient-0.2.1.tar.gz" } ], "0.2.2": [ { "comment_text": "", "digests": { "md5": "a5b5bf8732ef0ca4596086a90d14452f", "sha256": "4cdf76b9626296d950cc56f606fc32acd9d16a8fc27b85d9676ac3d12e77433f" }, "downloads": -1, "filename": "mficlient-0.2.2.tar.gz", "has_sig": false, "md5_digest": "a5b5bf8732ef0ca4596086a90d14452f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 4793, "upload_time": "2016-02-07T20:41:06", "url": "https://files.pythonhosted.org/packages/28/52/6a5b453ed5b658424bdbe8f42b8e6948580fd433a9ccda3ff09e83a73560/mficlient-0.2.2.tar.gz" } ], "0.3.0": [ { "comment_text": "", "digests": { "md5": "98b1f89d207db6223ac7870905042f9f", "sha256": "aecb7f1eb6b8d8b62582c36496a055174c1038557d7a30d7ee8a144182e8ef9b" }, "downloads": -1, "filename": "mficlient-0.3.0.tar.gz", "has_sig": false, "md5_digest": "98b1f89d207db6223ac7870905042f9f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8537, "upload_time": "2016-03-01T01:25:23", "url": "https://files.pythonhosted.org/packages/25/05/7548e733c049bff3448fcce646ca28f33afe7bc28fce9d8f8ff430e2fe20/mficlient-0.3.0.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "98b1f89d207db6223ac7870905042f9f", "sha256": "aecb7f1eb6b8d8b62582c36496a055174c1038557d7a30d7ee8a144182e8ef9b" }, "downloads": -1, "filename": "mficlient-0.3.0.tar.gz", "has_sig": false, "md5_digest": "98b1f89d207db6223ac7870905042f9f", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 8537, "upload_time": "2016-03-01T01:25:23", "url": "https://files.pythonhosted.org/packages/25/05/7548e733c049bff3448fcce646ca28f33afe7bc28fce9d8f8ff430e2fe20/mficlient-0.3.0.tar.gz" } ] }