API call to force alarm
Posted: Wed Oct 17, 2018 10:35 am
I was fiddling with an API call to force an alarm on a monitor and noticed something odd. After issuing the API call:
I expected to see one event on monitor 201 but what I got was a half dozen 5 second long events before I cancelled the forced alarm state.
This is on a Scientific Linux 7.5 system running zoneminder-1.32.1
Tried the same thing on a different monitor that is configured identically and only got one event that lasted until I cancelled the forced alarm.
Code: Select all
curl -b /root/cookies.txt --silent --insecure https://server/zm/api/monitors/alarm/id:201/command:on.json
This is on a Scientific Linux 7.5 system running zoneminder-1.32.1
Tried the same thing on a different monitor that is configured identically and only got one event that lasted until I cancelled the forced alarm.