{
"info": {
"author": "Steven Hiscocks",
"author_email": "steven@hiscocks.me.uk",
"bugtrack_url": null,
"classifiers": [
"Development Status :: 4 - Beta",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.4",
"Programming Language :: Python :: 3.5"
],
"description": "=========================\nYI Dashcam python library\n=========================\nAn unofficial python library for interfacing with the Xiaomi YI Dash Cam.\n\nDisclaimer\n==========\nUSE AT YOUR OWN RISK! This is an unofficial software library which may cause\npermanent damage to your dash camera and permanent loss of data.\n\nRequirements\n============\nThe main library requires:\n\n* `Python >= 3.4 `_\n* `Requests `_\n\n\nThe web application requires (optional):\n\n* Flask-Bootstrap_\n\n\n.. _Flask-Bootstrap: https://pythonhosted.org/Flask-Bootstrap/\n\nInstallation\n============\nThis library can be installed from PyPI by simply using:\n\n.. code-block:: bash\n\n python -m pip install yidashcam\n\n\nUsage\n=====\nTo use any of the below, you must connect to your dash camera via WiFi first.\n\nWeb Application\n---------------\nTo use the web application, run: ``python -m yidashcam webapp`` (requires\nFlask-Bootstrap_). This hosts a local web app accessible via your web browser,\nallowing browsing of the dashcam's stored video and modification of the\ndashcam's settings.\n\n.. figure:: doc/file_list.png\n :width: 80 %\n :align: center\n\n Sample screenshot of file list page\n\n\n.. figure:: doc/settings.png\n :width: 80 %\n :align: center\n\n Sample screenshot of settings page\n\n\nCommand Line\n------------\nThere are three command line based tools:\n\n* ``python -m yidashcam config`` displays the current dashcam settings and\n allows changing of these settings.\n* ``python -m yidashcam stream`` puts the dashcam in a mode to allow live\n streaming from the dash camera.\n* ``python -m yidashcam snapshot`` takes a photo with the dashcam and saves it\n in current directory or specified file.\n\n\nLibrary\n-------\nAn example of using `yidashcam` (sync emergency clips to current folder):\n\n.. code-block:: python\n\n import os\n import yidashcam\n\n with yidashcam.YIDashcam() as yi:\n print(\"Serial number: {}\".format(yi.serial_number))\n for emr_file in yi.emergency_list:\n if not os.path.exists(emr_file.name):\n print(\"Fetching {}...\".format(emr_file.path))\n with open(emr_file.name, 'wb') as local_file:\n for data in yi.get_file(emr_file):\n local_file.write(data)\n\nAnother example (setting a config value, taking a photo and downloading it to\nthe current folder):\n\n.. code-block:: python\n\n import yidashcam\n\n with yidashcam.YIDashcam() as yi:\n yi.set_config(yidashcam.config.Option.photo_resolution,\n yidashcam.config.PhotoResolution.r1920x1080)\n yi.take_photo()\n photo = sorted(yi.photo_list)[-1]\n with open(photo.name, 'wb') as local_file:\n for data in yi.get_file(photo):\n local_file.write(data)\n\n\nLicense\n=======\nMIT License\n\nCopyright (c) 2016 Steven Hiscocks\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.\n",
"description_content_type": null,
"docs_url": null,
"download_url": "",
"downloads": {
"last_day": -1,
"last_month": -1,
"last_week": -1
},
"home_page": "https://github.com/kwirk/yidashcam",
"keywords": "xiaomi yi dashcam",
"license": "MIT",
"maintainer": "",
"maintainer_email": "",
"name": "yidashcam",
"package_url": "https://pypi.org/project/yidashcam/",
"platform": "",
"project_url": "https://pypi.org/project/yidashcam/",
"project_urls": {
"Homepage": "https://github.com/kwirk/yidashcam"
},
"release_url": "https://pypi.org/project/yidashcam/0.8/",
"requires_dist": null,
"requires_python": "",
"summary": "An unofficial python library for interfacing with the Xiaomi YI Dash Cam.",
"version": "0.8"
},
"last_serial": 2667618,
"releases": {
"0.6.2": [
{
"comment_text": "",
"digests": {
"md5": "d305da047054bc6f0269c56b23a5b645",
"sha256": "93a8a0e8eb2aee687359567b1df01df3c6ac57b4808c011a369812b8e3733843"
},
"downloads": -1,
"filename": "yidashcam-0.6.2.tar.gz",
"has_sig": false,
"md5_digest": "d305da047054bc6f0269c56b23a5b645",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 638833,
"upload_time": "2016-09-24T16:38:37",
"url": "https://files.pythonhosted.org/packages/38/38/724d37fa0b933e690d0d8802b3acdb952d734c96ee81570fec4fffd19277/yidashcam-0.6.2.tar.gz"
}
],
"0.7": [
{
"comment_text": "",
"digests": {
"md5": "395f40ce4afbfddcf42061419869c35c",
"sha256": "f90a7993dc817465ad154309cf42487065117fb38291654491444982275075e3"
},
"downloads": -1,
"filename": "yidashcam-0.7.tar.gz",
"has_sig": false,
"md5_digest": "395f40ce4afbfddcf42061419869c35c",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 638894,
"upload_time": "2016-10-20T19:23:16",
"url": "https://files.pythonhosted.org/packages/cd/28/7c8dd47de2787fe35a34620df2c152d4aa786adcaccc8ced1225acea2c42/yidashcam-0.7.tar.gz"
}
],
"0.8": [
{
"comment_text": "",
"digests": {
"md5": "afc8ef5923d8164b55515441f143c019",
"sha256": "d472318265b850f2c77c69f813c3557ad7c7d04db10aaa193ea3183187764a34"
},
"downloads": -1,
"filename": "yidashcam-0.8.tar.gz",
"has_sig": false,
"md5_digest": "afc8ef5923d8164b55515441f143c019",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 639096,
"upload_time": "2017-02-25T13:23:01",
"url": "https://files.pythonhosted.org/packages/e5/64/8c210ef9faa756b484d9411f1b17dd50675e45ef6ff43ebe8570ef99a29c/yidashcam-0.8.tar.gz"
}
]
},
"urls": [
{
"comment_text": "",
"digests": {
"md5": "afc8ef5923d8164b55515441f143c019",
"sha256": "d472318265b850f2c77c69f813c3557ad7c7d04db10aaa193ea3183187764a34"
},
"downloads": -1,
"filename": "yidashcam-0.8.tar.gz",
"has_sig": false,
"md5_digest": "afc8ef5923d8164b55515441f143c019",
"packagetype": "sdist",
"python_version": "source",
"requires_python": null,
"size": 639096,
"upload_time": "2017-02-25T13:23:01",
"url": "https://files.pythonhosted.org/packages/e5/64/8c210ef9faa756b484d9411f1b17dd50675e45ef6ff43ebe8570ef99a29c/yidashcam-0.8.tar.gz"
}
]
}