Stopping alarms when PTZ camera is moving
Posted: Mon Sep 04, 2023 12:53 pm
Hi All,
I've managed to get an unbadged PTZ camera working great in zoneminder and run a script, via cron, that pans the camera every half hour at night to a new location. If I run the commands from the CLI everything works as I'd hope, but when run via the script I still get alarms.
The first command to disable the camera is :
sudo zmu -m 4 -D -U "User" -P "PASSWORD"
2nd command moves the camera:
sudo zmcontrol.pl --id=4 --command=presetGoto --preset=002 "could be 001, 002 etc"
3rd command re-enables the camera:
sudo zmu -m 4 -E -U "User" -P "PASSWORD"
I have also tried to achieve the same by switching profiles, then moving then switching back still get alarms.
Can anyone help please?
I've managed to get an unbadged PTZ camera working great in zoneminder and run a script, via cron, that pans the camera every half hour at night to a new location. If I run the commands from the CLI everything works as I'd hope, but when run via the script I still get alarms.
The first command to disable the camera is :
sudo zmu -m 4 -D -U "User" -P "PASSWORD"
2nd command moves the camera:
sudo zmcontrol.pl --id=4 --command=presetGoto --preset=002 "could be 001, 002 etc"
3rd command re-enables the camera:
sudo zmu -m 4 -E -U "User" -P "PASSWORD"
I have also tried to achieve the same by switching profiles, then moving then switching back still get alarms.
Can anyone help please?