{ "info": { "author": "Helpful Scripts", "author_email": "helpfulscripts@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# Web Cam Access via HTTP REST-API\n\nA Python3 library that unified acess to various web cams with integrated HTTP servers.\n\n## Installation\n### libhttpcam\n pip3 install libhttpcam\nor as update:\n\n pip3 install --upgrade libhttpcam \n\n## Usage\nUse `createCam` to create a camera instance.\n\n from libhttpcam import createCam\n\n model = 'foscam'\n ip = '10.0.0.30'\n cam, port = createCam('foscam', ip) # use model's default port\n\nNext, you might want to set credentials for the camera:\n\n user = 'me'\n password = 'youllneverguess'\n cam.set_credentials(user, password)\n\n## Support\nCurrently, only `Foscam` and `Wansview` cameras are supported.\n- Foscam C1\n- Wansview K2\n- Wansview Q3S (X Series)\n\n## API\n#### createCam(brand:str, ip:str, port:int=None) -> (HttpCam, int)\ncreates a HttpCam instance for the supplied `brand`, `ip` address, and `port`.\nIf `port` is omitted, the camera brand's default port will be used.\n\nreturns the camera instance and the port used as a tuple\n\n### Device API\n#### Cam(brand, host, port)\nConstructor; typically does not get called directly but via the `createCam` function\n\n\n### Device Properties\n#### brand\nreturns the camera instance's brand\n\n#### model:\nreturns the camera instance's model\nNote: for `Wansview` cameras this call returns `'unknown'`\n\n#### host\nreturns the camera instance's ip address\n\n#### port\nreturns the camera instance's port\n\n\n### Device Configuration\n#### set_credentials(user='', password='')\nsets the credentials used to access the camera. \n\n#### set_sensitivities(motion=0, audio=0)\nSets the sensitivities for motion detection and audio detection. Both take values between 0 (off) and 100 (sensitive).\n\n#### async_reboot(self) -> Response:\nreboots the camera. \n\n#### async_set_system_time(self) -> Response:\nsets the current local time on the camera. This is used for overlays in the snapshots and feeds.\n\n#### async_set_irled(self, status: Status) -> Response:\nsets the status of the active infrared light on the camera. Valid settings are `Status.ON', `Status.OFF`, and `Status.AUTO`\n\n#### async_set_night_mode(self, status: Status) -> Response:\nsets the status of the passive infrered sensor. Valid settings are `Status.ON', `Status.OFF`, and `Status.AUTO`\n\n#### async_set_ftp_config(self, server, port, user, passwd) -> Response:\nconfigures the ftp client to allow snapshots and recordings to be stored on a server via FTP.\n\n#### async_set_audio_volumes(self, audio_in=50, audio_out=50) -> Response:\nconfigures audio volumes for the camera:\n- audio_in: microphone volume\n- audio_out: speaker and alert volume\n\n### Device Queries\n#### async_get_model(self) -> str:\nqueries and returns the brand's model number as a string\n\n#### async_get_night_mode(self) -> IRmode:\nqueries and returns the sensor night mode setting:\n- bool result.LED\n- bool result.Sensor\n\n#### async_get_alarm_trigger(self) -> Trigger:\nqueries and returns the alarm trigger setting:\n- bool result.motion\n- bool result.audio\n\n#### async_get_alarm_action(self) -> Action:\nqueries and returns the alarm action setting:\n- bool result.audio - sound the siren\n- bool result.ftp_snap - store snapshots to FTP server\n- bool result.ftp_rec - store recordings to FTP server\n\n#### async_get_alarm_triggered(self) -> bool:\nqueries and returns `True` if an alram was detected.\n\n*Currently not implemented, returns `False`*\n\n#### async_get_ftp_config(self):\nqueries and returns the current FTP configuration\n\n\n### Device Actions\n#### async_snap_picture(self):\nsnaps a picture and returns the byte array\n\n#### async_mjpeg_stream(self, request):\nrequests and returns a motion JPEG stream\n\n#### async_set_alarm(self, trigger: Trigger, action: Action) -> Response:\nArms or disarms the camera by7 setting the `trigger` and `action` settings \n\n#### async_ptz_preset(self, preset_pos:int):\nmoves the camera to the specified preprogrammed position if PTX is available\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/HelpfulScripts/libhttpcam", "keywords": "http camera foscam wansview", "license": "", "maintainer": "", "maintainer_email": "", "name": "libhttpcam", "package_url": "https://pypi.org/project/libhttpcam/", "platform": "", "project_url": "https://pypi.org/project/libhttpcam/", "project_urls": { "Homepage": "https://github.com/HelpfulScripts/libhttpcam" }, "release_url": "https://pypi.org/project/libhttpcam/0.1.1/", "requires_dist": null, "requires_python": ">=3.6", "summary": "Accessing webcams via REST API", "version": "0.1.1" }, "last_serial": 5902825, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "84ef13f05e9fe60cb93cb9aba299c12e", "sha256": "90107e4c10ac9983e462cff80048ac34fc6ba051358cfe6d46165478aa07d6c5" }, "downloads": -1, "filename": "libhttpcam-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "84ef13f05e9fe60cb93cb9aba299c12e", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": null, "size": 10856, "upload_time": "2019-03-24T17:56:28", "url": "https://files.pythonhosted.org/packages/5a/ab/e42ce16b7a51f7742f181ad8079aea166b4a61183da173261ab3ca81f934/libhttpcam-0.0.1-py3-none-any.whl" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "4b00f1e027453b3c003557ce4be89f88", "sha256": "a669af718f6dfb115fffea73dba5bb42706775426c89a2bdcd4c8a50f930add6" }, "downloads": -1, "filename": "libhttpcam-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "4b00f1e027453b3c003557ce4be89f88", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 10902, "upload_time": "2019-03-24T17:56:30", "url": "https://files.pythonhosted.org/packages/01/6e/877d3883fa88bc771dcc1682824e3805696e1901fc8dacc01b847748ada4/libhttpcam-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "fe258cc4d563c05660007d18fc48d92a", "sha256": "34e8914bc85eae1d631ee805f0ce356663841650ec7a49bfe7a1177f3ce1838a" }, "downloads": -1, "filename": "libhttpcam-0.0.2.tar.gz", "has_sig": false, "md5_digest": "fe258cc4d563c05660007d18fc48d92a", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 7577, "upload_time": "2019-03-24T17:59:54", "url": "https://files.pythonhosted.org/packages/e7/23/c4810c84f8132f46337574ec2032850fd44b0e6ae4b5b47472be4ac2d7e1/libhttpcam-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "8e04cc7c31b99b01882544dc3f6fdc79", "sha256": "7d3312173d1ebe94b811a53d22dd485054c55cc57fceafcc223d93a91515aa96" }, "downloads": -1, "filename": "libhttpcam-0.0.3-py3-none-any.whl", "has_sig": false, "md5_digest": "8e04cc7c31b99b01882544dc3f6fdc79", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 10953, "upload_time": "2019-03-24T18:07:10", "url": "https://files.pythonhosted.org/packages/73/f6/40ac60f415e135f48d486b4b0f561db40f732a6c1fe742f2061506889b50/libhttpcam-0.0.3-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "c500de83a1217df625f4d3d61c0ffbe2", "sha256": "39d9f19dd606ca0cff596bf00ffae33b032804d54ca8492eaf70167feade5843" }, "downloads": -1, "filename": "libhttpcam-0.0.3.tar.gz", "has_sig": false, "md5_digest": "c500de83a1217df625f4d3d61c0ffbe2", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 7908, "upload_time": "2019-03-24T18:07:12", "url": "https://files.pythonhosted.org/packages/2d/65/6abdf90e44356e79162c837ccf18a214e1b9527fae27c12b2c71fe89de70/libhttpcam-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "bac57badb907cd2ccfb721d20a0d9362", "sha256": "cdab3fd8b4d5541b7b769a8d40bde6b2d550a52b245e443235c6f508374cc1db" }, "downloads": -1, "filename": "libhttpcam-0.0.4-py3-none-any.whl", "has_sig": false, "md5_digest": "bac57badb907cd2ccfb721d20a0d9362", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 10954, "upload_time": "2019-03-24T18:08:39", "url": "https://files.pythonhosted.org/packages/1d/9f/ff1caa0040ccd3f43975f2bbb0415bc979213aa3c92e6fcc42dc08b412df/libhttpcam-0.0.4-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "d16389b47a4e4b9086c3377e87a0b833", "sha256": "234bee784ea5699773b0b66c975732c5c49105f3942fbb9fc06697f1d716ec4e" }, "downloads": -1, "filename": "libhttpcam-0.0.4.tar.gz", "has_sig": false, "md5_digest": "d16389b47a4e4b9086c3377e87a0b833", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 7905, "upload_time": "2019-03-24T18:08:40", "url": "https://files.pythonhosted.org/packages/78/3b/df52158d115cc6ebd10aafbd97b588ca7070286c5ba9bd78d3ad63d7636a/libhttpcam-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "0438d26bd179203c175b6414caec8e9b", "sha256": "7d5c45f5fbf445d5e26eb33f0dc6bdc303a126d3535bca6fb79d668d925a27a0" }, "downloads": -1, "filename": "libhttpcam-0.0.5-py3-none-any.whl", "has_sig": false, "md5_digest": "0438d26bd179203c175b6414caec8e9b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 11083, "upload_time": "2019-03-24T19:22:53", "url": "https://files.pythonhosted.org/packages/2f/02/094fd4aac18505e34040ccd62a80f836bdea9a23eb0f30935610db0dea9a/libhttpcam-0.0.5-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "3ace845b09cecb325c68696f5f8b1759", "sha256": "9533af58db6eda61b1e5762679ed2ef1c1d12c31f75837b93a1e69d3b41645e1" }, "downloads": -1, "filename": "libhttpcam-0.0.5.tar.gz", "has_sig": false, "md5_digest": "3ace845b09cecb325c68696f5f8b1759", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 8501, "upload_time": "2019-03-24T19:22:55", "url": "https://files.pythonhosted.org/packages/51/81/47cdee9ec9add587622009a3c832e1d41d1e4f61d98728476b889b8c50b4/libhttpcam-0.0.5.tar.gz" } ], "0.0.6": [ { "comment_text": "", "digests": { "md5": "d4b7bc9e353157385d70b74b905fb5bf", "sha256": "f8d0dd610bfe582b7f8b3cb0d7d74404fb17eae99c61a37540a510a8c59ef903" }, "downloads": -1, "filename": "libhttpcam-0.0.6-py3-none-any.whl", "has_sig": false, "md5_digest": "d4b7bc9e353157385d70b74b905fb5bf", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 12632, "upload_time": "2019-03-24T22:18:31", "url": "https://files.pythonhosted.org/packages/3e/12/35943c65d44843be7c56bb9f0c605d832cce41107c341fe72ca76a046b62/libhttpcam-0.0.6-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "02dee5cabe31e12d7ae59fe457ce78b6", "sha256": "3b3731d1c88aa8838d32f59edd966cfd8d13986fca0275a4a009f3ddd2825ece" }, "downloads": -1, "filename": "libhttpcam-0.0.6.tar.gz", "has_sig": false, "md5_digest": "02dee5cabe31e12d7ae59fe457ce78b6", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 10874, "upload_time": "2019-03-24T22:18:32", "url": "https://files.pythonhosted.org/packages/85/9b/84be1075b58f751b8cbcd16bcd6041b7b9c6c849180d703cee2384b9d64d/libhttpcam-0.0.6.tar.gz" } ], "0.0.7": [ { "comment_text": "", "digests": { "md5": "394047f603e1afc7d340932d4f42ba4b", "sha256": "ed6fd4dc635ef885e71f2af933411d44aad51b556055b1a5934a0fca5b004170" }, "downloads": -1, "filename": "libhttpcam-0.0.7-py3-none-any.whl", "has_sig": false, "md5_digest": "394047f603e1afc7d340932d4f42ba4b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 12621, "upload_time": "2019-03-24T22:32:00", "url": "https://files.pythonhosted.org/packages/5b/b2/100ffd9af9fdf9b7b073ca0dc164f612d11df3234bcc351afd55e3a6e391/libhttpcam-0.0.7-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "b61ddad78e7e4d2fee2db4425b2f84ab", "sha256": "365df82be52a41251f23fef216cdecb061788582ed726735bbab7c6686d301c5" }, "downloads": -1, "filename": "libhttpcam-0.0.7.tar.gz", "has_sig": false, "md5_digest": "b61ddad78e7e4d2fee2db4425b2f84ab", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 10879, "upload_time": "2019-03-24T22:32:01", "url": "https://files.pythonhosted.org/packages/1a/d5/7aed82e476e6a43ed9cf7239c242abb3b065e35a7e90c64b1745abb2d621/libhttpcam-0.0.7.tar.gz" } ], "0.0.8": [ { "comment_text": "", "digests": { "md5": "3f04e876e18965a8b65c7d3ddde6b372", "sha256": "89a651ea69a762ce157446413bdc48141cd118ef5c96b24d01daed7795dcacdf" }, "downloads": -1, "filename": "libhttpcam-0.0.8-py3-none-any.whl", "has_sig": false, "md5_digest": "3f04e876e18965a8b65c7d3ddde6b372", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 12627, "upload_time": "2019-03-25T03:30:14", "url": "https://files.pythonhosted.org/packages/1e/2e/672bcf591f04c2e3a95e694b98aa78207977d30aa585ea2c09e61f05f6dc/libhttpcam-0.0.8-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "2c12dffcbc257241e28cd5dbbdb64765", "sha256": "859d2199454de6166edf0bccd7f1c4c250526f27a320253a251c97702e617260" }, "downloads": -1, "filename": "libhttpcam-0.0.8.tar.gz", "has_sig": false, "md5_digest": "2c12dffcbc257241e28cd5dbbdb64765", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 10880, "upload_time": "2019-03-25T03:30:16", "url": "https://files.pythonhosted.org/packages/2e/61/dd1ca8c7d3916656e0bedba537c20f38e344295d0bb1b4ca6bfa624394d3/libhttpcam-0.0.8.tar.gz" } ], "0.0.9": [ { "comment_text": "", "digests": { "md5": "9f955f0a45f9c0823bbb84475c2e9bfb", "sha256": "e5d2071bc6ac47de10a4d72584848583ef316f8b51f845afc64790b047910600" }, "downloads": -1, "filename": "libhttpcam-0.0.9-py3-none-any.whl", "has_sig": false, "md5_digest": "9f955f0a45f9c0823bbb84475c2e9bfb", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 12546, "upload_time": "2019-03-25T03:37:02", "url": "https://files.pythonhosted.org/packages/11/bc/7145abce02863fd0c50f2c6606c8ee0416c9ac8b1b25c8994eb224b50170/libhttpcam-0.0.9-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "a0559d77794d58fdc1fe7a78dcda6c08", "sha256": "e76130d243d92bb42fb201d1ba81c755fc00cea241aa3b8644c59eac5371a150" }, "downloads": -1, "filename": "libhttpcam-0.0.9.tar.gz", "has_sig": false, "md5_digest": "a0559d77794d58fdc1fe7a78dcda6c08", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 10832, "upload_time": "2019-03-25T03:37:03", "url": "https://files.pythonhosted.org/packages/58/73/8799bac7899526c51aa6d429dd5861d1c9036c46837463d286526a614ae2/libhttpcam-0.0.9.tar.gz" } ], "0.1.0": [ { "comment_text": "", "digests": { "md5": "01167224ba0e1b3d98b9e4eb66363c04", "sha256": "7cdfdbef6b6f245c58885caa15b3f3fb82519740a097e4accbb1fd30de630264" }, "downloads": -1, "filename": "libhttpcam-0.1.0-py3-none-any.whl", "has_sig": false, "md5_digest": "01167224ba0e1b3d98b9e4eb66363c04", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 12608, "upload_time": "2019-04-15T13:31:51", "url": "https://files.pythonhosted.org/packages/e5/ee/fd9ae19edb0992cc714fa1e18f124783ef7739baac766f7a456a3b030e40/libhttpcam-0.1.0-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "eb2991d85f6d2de55f82046c828cf26a", "sha256": "ad324c0dee2166615d8b10f20125c185aee76d394bf4ed2d1b8d57dcf689eab8" }, "downloads": -1, "filename": "libhttpcam-0.1.0.tar.gz", "has_sig": false, "md5_digest": "eb2991d85f6d2de55f82046c828cf26a", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 10874, "upload_time": "2019-04-15T13:31:52", "url": "https://files.pythonhosted.org/packages/24/a9/f3c52644c3053ddc1b2b426d3cd5f5772a03e6a4ba3a0ad0ee98fed98b3f/libhttpcam-0.1.0.tar.gz" } ], "0.1.1": [ { "comment_text": "", "digests": { "md5": "64c87b0a5ca731eb72bfa3c4bec5338b", "sha256": "e910c424e1ee0fe061668d1480bf5dfe7f4ec4afe24804bc5363da2ee353d6bb" }, "downloads": -1, "filename": "libhttpcam-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "64c87b0a5ca731eb72bfa3c4bec5338b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 22031, "upload_time": "2019-09-29T15:03:34", "url": "https://files.pythonhosted.org/packages/15/20/470c3381cb3e1dacd4e39d7e31bc3496d9713e358aff18ebe5a6850573a4/libhttpcam-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "557d3de4ff6423cca6888c7eafb0f1fe", "sha256": "60760f31b98342a7b36ffd30e1007c0c6034729b9a10e9a8fe28a4ac11989680" }, "downloads": -1, "filename": "libhttpcam-0.1.1.tar.gz", "has_sig": false, "md5_digest": "557d3de4ff6423cca6888c7eafb0f1fe", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 11814, "upload_time": "2019-09-29T15:03:45", "url": "https://files.pythonhosted.org/packages/fe/66/bcfd7bee199be401d091c2ff9d337d76799bd1d67dcdfad61ae9c371d4f7/libhttpcam-0.1.1.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "64c87b0a5ca731eb72bfa3c4bec5338b", "sha256": "e910c424e1ee0fe061668d1480bf5dfe7f4ec4afe24804bc5363da2ee353d6bb" }, "downloads": -1, "filename": "libhttpcam-0.1.1-py3-none-any.whl", "has_sig": false, "md5_digest": "64c87b0a5ca731eb72bfa3c4bec5338b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 22031, "upload_time": "2019-09-29T15:03:34", "url": "https://files.pythonhosted.org/packages/15/20/470c3381cb3e1dacd4e39d7e31bc3496d9713e358aff18ebe5a6850573a4/libhttpcam-0.1.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "557d3de4ff6423cca6888c7eafb0f1fe", "sha256": "60760f31b98342a7b36ffd30e1007c0c6034729b9a10e9a8fe28a4ac11989680" }, "downloads": -1, "filename": "libhttpcam-0.1.1.tar.gz", "has_sig": false, "md5_digest": "557d3de4ff6423cca6888c7eafb0f1fe", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 11814, "upload_time": "2019-09-29T15:03:45", "url": "https://files.pythonhosted.org/packages/fe/66/bcfd7bee199be401d091c2ff9d337d76799bd1d67dcdfad61ae9c371d4f7/libhttpcam-0.1.1.tar.gz" } ] }