{"id":19946744,"url":"https://github.com/bourgeoisbear/amdacli","last_synced_at":"2026-03-09T22:31:06.651Z","repository":{"id":172332349,"uuid":"649151120","full_name":"BourgeoisBear/amdacli","owner":"BourgeoisBear","description":"Amcrest / Dahua HTTP API Client","archived":false,"fork":false,"pushed_at":"2023-06-13T01:48:19.000Z","size":35,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-05-03T17:43:56.145Z","etag":null,"topics":["amcrest","dahua","dahua-cameras","golang-application","http","http-api-client","ipcam","ipcamera"],"latest_commit_sha":null,"homepage":"","language":"Go","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/BourgeoisBear.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-06-04T00:15:13.000Z","updated_at":"2025-04-05T23:25:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"102e3517-afde-4c1b-92c7-fd92f237f1c1","html_url":"https://github.com/BourgeoisBear/amdacli","commit_stats":null,"previous_names":["bourgeoisbear/amdacli"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/BourgeoisBear/amdacli","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BourgeoisBear%2Famdacli","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BourgeoisBear%2Famdacli/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BourgeoisBear%2Famdacli/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BourgeoisBear%2Famdacli/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/BourgeoisBear","download_url":"https://codeload.github.com/BourgeoisBear/amdacli/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/BourgeoisBear%2Famdacli/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30314627,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-09T20:05:46.299Z","status":"ssl_error","status_checked_at":"2026-03-09T19:57:04.425Z","response_time":61,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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","dahua","dahua-cameras","golang-application","http","http-api-client","ipcam","ipcamera"],"created_at":"2024-11-13T00:32:13.124Z","updated_at":"2026-03-09T22:31:06.607Z","avatar_url":"https://github.com/BourgeoisBear.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# amdacli: Amcrest / Dahua Command CLI\n\nRun HTTP configuration commands across Amcrest or Dahua IP camera(s).\n\nInteract with a single camera, or several in one command!\n\n## Installation\n\n1. Download the latest Go compiler from https://golang.org/dl/.\n2. Follow the instructions for your operating system (https://go.dev/doc/install).\n3. Install the program:\n\n```sh\ngo install github.com/BourgeoisBear/amdacli@latest\n```\n\n## Help\n```\nUSAGE\n  amdacli [OPTION].. HOSTS [COMMAND]...\n\nBatch API access to Amcrest \u0026 Dahua IP cameras.\n\nIf COMMAND(s) are given, runs each command against each HOST (i.e. camera),\nthen terminates. If no commands are provided, starts in interactive mode, where\ncommands can be supplied from the console.  Ctrl-d exits interactive mode.\n\nOPTION\n  -a    always prepend hostname to results (even when there is only one host)\n  -c    force colors (even in pipelines)\n\nHOSTS\n  Comma-separated list of camera hosts to interact with, where each host takes\n  the format 'http(s)://username:password@hostname'.  If the protocol is left\n  unspecified, 'http://' is assumed.\n\n  Example: \"admin:mypass1@doorcam,https://admin:mypass2@192.168.1.50\"\n\nCOMMAND\n  PropertyName\n    Get current value of PropertyName via configManager.cgi.\n    Example: Multicast.TS[0]\n\n  PropertyName=NewValue\n    Set value of PropertyName to NewValue via configManager.cgi.\n    Example: Multicast.TS[0].TTL=1\n\n  /RequestURL\n    Forward raw request URL to camera API.\n    Does not URL-encode parameters like other commands.\n    URL parameters must be encoded manually.\n    Example: /cgi-bin/global.cgi?action=setCurrentTime\u0026time=2011-7-3%2021:02:32\n\nPUTTING IT TOGETHER\n  Interactive Mode:\n    amdacli 'user:userpass@mycam'\n\n  Command Mode:\n    amdacli 'user:userpass@mycam' 'Multicast.TS[0]' 'AlarmServer.Enable=false'\n\n```\n\n## Useful API Calls\n\n### Query\n\n| Action                          | Call                                                                  |\n| ------                          | ----                                                                  |\n| Fetch current settings          | `All`                                                                 |\n| Get system info                 | `/cgi-bin/magicBox.cgi?action=getSystemInfo`                          |\n| Get software version            | `/cgi-bin/magicBox.cgi?action=getSoftwareVersion`                     |\n| Get device class                | `/cgi-bin/magicBox.cgi?action=getDeviceClass`                         |\n| Get machine name                | `/cgi-bin/magicBox.cgi?action=getMachineName`                         |\n| Get vendor                      | `/cgi-bin/magicBox.cgi?action=getVendor`                              |\n| Get language capabilities       | `/cgi-bin/magicBox.cgi?action=getLanguageCaps`                        |\n| Get current time                | `/cgi-bin/global.cgi?action=getCurrentTime`                           |\n| Get encode config capability    | `/cgi-bin/encode.cgi?action=getConfigCaps[\u0026channel=\u003cchan_num\u003e]`       |\n| Get recording capability        | `/cgi-bin/recordManager.cgi?action=getCaps`                           |\n| Get event management capability | `/cgi-bin/eventManager.cgi?action=getCaps`                            |\n| Get PTZ capability              | `/cgi-bin/ptz.cgi?action=getCurrentProtocolCaps[\u0026channel=\u003cchan_num\u003e]` |\n\n### Alter\n\n| Action           | Call                                                                 |\n| ------           | ----                                                                 |\n| Reboot           | `/cgi-bin/magicBox.cgi?action=reboot`                                |\n| Shutdown         | `/cgi-bin/magicBox.cgi?action=shutdown`                              |\n| Set current time | `/cgi-bin/global.cgi?action=setCurrentTime\u0026time=YYYY-M-D%20H:m:s` |\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbourgeoisbear%2Famdacli","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbourgeoisbear%2Famdacli","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbourgeoisbear%2Famdacli/lists"}