mirror of
https://github.com/ZoneMinder/zoneminder.git
synced 2026-10-29 09:48:32 -04:00
monitors/alarm/command:on now takes an optional cause (query or POST data) and passes it to zmu --cause, so the event records it in place of "Forced Web". Without a cause nothing changes. The cause is stored as the event's Cause and in its Notes, so alarmCause() keeps it to plain text: letters, digits, spaces and plain punctuation, cut to the 31 bytes zmu stores on a character boundary, falling back to the default when nothing is left. The value is quoted with escapeshellarg() for the zmu command line. Test: tests/php/test_monitor_alarm_cause.php fixes #5348
ZoneMinder API
This is the ZoneMinder API. It should be, for now, installed under the webroot e.g. /api.
app/Config/database.php.default must be configured and copied to app/Config/database.php
In addition, Security.salt and Security.cipherSeed in app/Config/core.php should be changed.
The API can run on a dedicated / separate instance, so long as it can access the database as configured in app/Config/database.php