{"id":13586752,"url":"https://github.com/tchellomello/python-amcrest","last_synced_at":"2025-05-15T10:07:01.531Z","repository":{"id":12331238,"uuid":"71618898","full_name":"tchellomello/python-amcrest","owner":"tchellomello","description":"A Python 2.7/3.x module for Amcrest and Dahua Cameras using the SDK HTTP API.","archived":false,"fork":false,"pushed_at":"2024-06-01T14:02:26.000Z","size":872,"stargazers_count":220,"open_issues_count":48,"forks_count":82,"subscribers_count":18,"default_branch":"master","last_synced_at":"2025-05-15T10:06:19.292Z","etag":null,"topics":["amcrest","camera","homeautomation","ip-camera","python","python-amcrest"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tchellomello.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"COPYING","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":"AUTHORS","dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2016-10-22T05:29:43.000Z","updated_at":"2025-04-15T20:12:27.000Z","dependencies_parsed_at":"2024-06-18T18:12:12.739Z","dependency_job_id":null,"html_url":"https://github.com/tchellomello/python-amcrest","commit_stats":{"total_commits":391,"total_committers":33,"mean_commits":"11.848484848484848","dds":0.6675191815856778,"last_synced_commit":"3c3fa5855b24a3692ae3bd3a9a335f81cecc999c"},"previous_names":[],"tags_count":42,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tchellomello%2Fpython-amcrest","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tchellomello%2Fpython-amcrest/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tchellomello%2Fpython-amcrest/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tchellomello%2Fpython-amcrest/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tchellomello","download_url":"https://codeload.github.com/tchellomello/python-amcrest/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254319720,"owners_count":22051073,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["amcrest","camera","homeautomation","ip-camera","python","python-amcrest"],"created_at":"2024-08-01T15:05:47.314Z","updated_at":"2025-05-15T10:06:56.512Z","avatar_url":"https://github.com/tchellomello.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"==============\nPython Amcrest\n==============\n\n.. image:: https://badge.fury.io/py/amcrest.svg\n    :target: https://badge.fury.io/py/amcrest\n\n.. image:: https://travis-ci.org/tchellomello/python-amcrest.svg?branch=master\n    :target: https://travis-ci.org/tchellomello/python-amcrest\n\n.. image:: https://coveralls.io/repos/github/tchellomello/python-amcrest/badge.svg\n    :target: https://coveralls.io/github/tchellomello/python-amcrest\n\n.. image:: https://img.shields.io/pypi/pyversions/amcrest.svg\n    :target: https://pypi.python.org/pypi/amcrest\n\nA Python 2.7/3.x module for `Amcrest Cameras \u003chttps://www.amcrest.com/\u003e`_ using the SDK HTTP API. Amcrest and Dahua devices share similar firmwares. Dahua Cameras and NVRs also work with this module.\n\nDocumentation: `http://python-amcrest.readthedocs.io/ \u003chttp://python-amcrest.readthedocs.io/\u003e`_\n\n------------\nInstallation\n------------\n\nPyPI\n----\n\n.. code-block:: bash\n\n    $ pip install amcrest --upgrade\n    $ eval \"$(register-python-argcomplete amcrest-cli)\"\n\n    # To enable amcrest-cli autocomplete in the system:\n    $ echo 'eval \"$(register-python-argcomplete amcrest-cli)\"' \u003e  /etc/profile.d/amcrest-cli-autocomplete.sh\n\nRPM\n---\n\n.. code-block:: bash\n\n    $ git clone git@github.com:tchellomello/python-amcrest.git\n    $ ./autogen.sh\n    $ make rpm\n    $ dnf/yum install amcrest-cli-NVR.rpm pythonX-amcrest-NVR.rpm\n\n\n-----\nUsage\n-----\n\n.. code-block:: python\n\n    from amcrest import AmcrestCamera\n    camera = AmcrestCamera('192.168.0.1', 80, 'admin', 'password').camera\n\n    #Check software information\n    camera.software_information\n    'version=2.420.AC00.15.R\\r\\nBuildDate=2016-09-08'\n\n    #Capture snapshot\n    camera.snapshot(0, \"/home/user/Desktop/snapshot00.jpeg\")\n    \u003crequests.packages.urllib3.response.HTTPResponse object at 0x7f84945083c8\u003e\n\n    #Capture audio\n    camera.audio_stream_capture(httptype=\"singlepart\", channel=1, path_file=\"/home/user/Desktop/audio.aac\")\n    CTRL-C to stop the continuous audio flow or use a timer\n\n    #Move camera down\n    camera.ptz_control_command(action=\"start\", code=\"Down\", arg1=0, arg2=0, arg3=0)\n\n    #Record realtime stream into a file\n    camera.realtime_stream(path_file=\"/home/user/Desktop/myvideo\")\n    CTRL-C to stop the continuous video flow or use a timer\n\nCommand Line\n------------\n\n.. code-block:: bash\n\n    $ man amcrest-cli\n    or\n    $ amcrest-cli --help\n\n    # Saving credentials to file.\n    $ vim ~/.config/amcrest.conf\n    [patio]\n    hostname: 192.168.0.20\n    username: admin\n    password: 123456\n    port: 80\n\n    [living_room]\n    hostname: 192.168.0.21\n    username: admin\n    password: secret\n    port: 80\n\n    $ amcrest-cli --camera living_room --version-http-api\n    version=1.40\n\nText User Interface (TUI)\n-------------------------\nConfigure amcrest.conf and trigger amcrest-tui, make sure the user\ntriggering amcrest-tui have access to framebuffer device or use sudo.\n\n*NOTE:*\nExecute it from console logins, like /dev/ttyX (Non X Window).\nPseudo-terminals like xterm, ssh, screen and others WONT WORK.\n\n.. code-block:: bash\n\n    $ vim ~/.config/amcrest.conf\n    [patio]\n    hostname: 192.168.0.20\n    username: admin\n    password: 123456\n    port: 80\n\n    [living_room]\n    hostname: 192.168.0.21\n    username: admin\n    password: secret\n    port: 80\n\n    $ amcrest-tui\n\n\n---------------------\nSupportability Matrix\n---------------------\n\nCameras\n-------\n\n+-------------------------+---------------+----------+-----------------+\n| Model                   |     Tested    | Status   | Results/Issues  |\n+=========================+===============+==========+=================+\n| IPM-721                 | Yes           |  working |                 |\n+-------------------------+---------------+----------+-----------------+\n| IPM-HX1                 | Yes           |  working |                 |\n+-------------------------+---------------+----------+-----------------+\n| IP2M-841                | Yes           |  working |                 |\n+-------------------------+---------------+----------+-----------------+\n| IP2M-842                | Yes           |  working |                 |\n+-------------------------+---------------+----------+-----------------+\n| IP3M-941                | Yes           |  working |                 |\n+-------------------------+---------------+----------+-----------------+\n| IP3M-943                | Yes           |  working |                 |\n+-------------------------+---------------+----------+-----------------+\n| IP3M-956                | Yes           |  working |                 |\n+-------------------------+---------------+----------+-----------------+\n| IP3M-956E               | Yes           |  working |                 |\n+-------------------------+---------------+----------+-----------------+\n| IP3M-HX2                | Yes           |  working |                 |\n+-------------------------+---------------+----------+-----------------+\n| IP4M-1026B              | Yes           |  working |                 |\n+-------------------------+---------------+----------+-----------------+\n| IP4M-1041B              | Yes           |  working |                 |\n+-------------------------+---------------+----------+-----------------+\n| IP4M-1051B              | Yes           |  working |                 |\n+-------------------------+---------------+----------+-----------------+\n| IP5M-1176EB             | Yes           |  working |                 |\n+-------------------------+---------------+----------+-----------------+\n| IP8M-2496EB             | Yes           |  working |                 |\n+-------------------------+---------------+----------+-----------------+\n| IP8M-T2499EW-28M        | Yes           |  working |                 |\n+-------------------------+---------------+----------+-----------------+\n\n\nNetwork Video Recorders (NVR)\n-----------------------------\n\n+-------------------------+---------------+----------+-----------------+\n| Model                   |     Tested    | Status   | Results/Issues  |\n+=========================+===============+==========+=================+\n| XVR DAHUA 5104S         | Yes           |  working |                 |\n+-------------------------+---------------+----------+-----------------+\n\n\nIf you have different model, feel fee to contribute and report your results.\n\n\n----\nHelp\n----\nIf you need any help, please join our community on the Gitter channels available at `Gitter \u003chttps://gitter.im/python-amcrest\u003e`_.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftchellomello%2Fpython-amcrest","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftchellomello%2Fpython-amcrest","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftchellomello%2Fpython-amcrest/lists"}