Repository navigation
docs: API v2 records the alarm cause where zmu has --cause - #65
Merged
SteveGilvarry merged 1 commit intoOct 27, 2026
Merged
Conversation
ZoneMinder's monitors alarm API now passes the cause to zmu --cause (the ZoneMinder change that adds zmu --cause), so trigger_alarm's cause is recorded on API v2 too. Older versions still record "Forced Web". The library already sends the cause; only the docstring, the README table and the live test change: on v2 test_alarm accepts the cause sent or "Forced Web".
This was referenced Oct 26, 2026
nabbi
marked this pull request as ready for review
October 26, 2026 02:28
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
TL;DR
feat: record the cause given to the monitors alarm API zoneminder#5349 passes the
causethis library already sends tozmu --cause, so v2records it too on ZoneMinder versions that have the change.
LegacyClient.trigger_alarmdocstring and the README table say when the cause isrecorded;
tests/live/test_write.py::test_alarmaccepts the cause sent or "Forced Web" on v2 (itcan't tell the server's version). No library code changes. 4 files, +15/-8.
tests/live/test_write.py -k test_alarmon v2 with writes: 3 passed, the event's Causeaiozm-live.🤖 Generated with Claude Code