{"id":16991766,"url":"https://github.com/soif/phpcameraalarmgateway","last_synced_at":"2025-10-13T02:05:09.241Z","repository":{"id":147611091,"uuid":"91976268","full_name":"soif/PhpCameraAlarmGateway","owner":"soif","description":"Alarm Gateway Server for IP Cameras running as Daemon, converting IPC alarm messages into Zoneminder, Domoticz, URLs, etc...","archived":false,"fork":false,"pushed_at":"2017-06-05T18:34:04.000Z","size":33,"stargazers_count":7,"open_issues_count":1,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-13T02:03:15.033Z","etag":null,"topics":["alarm","camera","chinese","daemon","domoticz","events","gateway","ip","ip-camera","php","server","service","zoneminder"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/soif.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"zenodo":null}},"created_at":"2017-05-21T17:45:28.000Z","updated_at":"2024-08-03T00:28:39.000Z","dependencies_parsed_at":"2023-05-31T19:00:33.354Z","dependency_job_id":null,"html_url":"https://github.com/soif/PhpCameraAlarmGateway","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/soif/PhpCameraAlarmGateway","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soif%2FPhpCameraAlarmGateway","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soif%2FPhpCameraAlarmGateway/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soif%2FPhpCameraAlarmGateway/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soif%2FPhpCameraAlarmGateway/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/soif","download_url":"https://codeload.github.com/soif/PhpCameraAlarmGateway/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/soif%2FPhpCameraAlarmGateway/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279014002,"owners_count":26085343,"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","status":"online","status_checked_at":"2025-10-13T02:00:06.723Z","response_time":61,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["alarm","camera","chinese","daemon","domoticz","events","gateway","ip","ip-camera","php","server","service","zoneminder"],"created_at":"2024-10-14T03:27:11.613Z","updated_at":"2025-10-13T02:05:09.223Z","avatar_url":"https://github.com/soif.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Php Camera Alarm Gateway\nThis script (running as a Server Daemon) listen to IP Camera Alarm messages, decodes messages and send triggers to ZoneMinder, Domoticz, Custom URLs....\n\nThis allows to offload the motion detection work to each camera.\n\n\n## Features\n\n- Parse Hivision based (chinese cheap camera) IP Camera messages\n- Can trigger :\n    - ZoneMinder API\n    - ZoneMinder Triggers\n    - Domoticz Switches\n    - Custom URL\n- Modular design : easely implements others messages types or actions\n- Run as unix daemon\n\n## Installation\n#### 1) PEAR modules needed\nUnder Debian, install by:\n```\napt-get install php-pear\npear install System_Daemon\npear install Log\n```\n\n#### 2) Set Configuration\nCopy *config.default.php* to *config.php*, and set your configuration\n\n#### 3) Setting in each Hivision IP Cameras\nIn the Device Setting (access via CMS, or via InternetExporer):\n- **Alarm** page / Video Motion :\n    - set sensivity to 'Highest' (or lower)\n    - set the region\n    - Check \"Enable\"\n    - Check \"Alarm Output\"\n    - You may Check \"Write Log\" to verify that event are set as you wish\n- **System** page / NetServices / AlarmServer :\n    - Check \"Enable\"\n    - Check \"Alarm Report\"\n    - Server Address (the IP/hostname where PCAG is installed)\n    - Port (same as set in PCAG config, ie 15000)\n\n#### 4) Daemon \u0026 Log file\n- Launch Daemon :`./pcag.php`\n- Kill Daemon : `killall -9 pcag.php`\n- View Logfile: `tail -f /var/log/pcag.php.log`\n- Create /etc/init.d script: `./pcag.php --write-initd`\n\n\n## License\n\nThis program is free software. You can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.\n\nThis program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more details.\n\nYou should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoif%2Fphpcameraalarmgateway","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsoif%2Fphpcameraalarmgateway","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsoif%2Fphpcameraalarmgateway/lists"}