zmcontrol.pl syntax

Discussions related to the 1.36.x series of ZoneMinder
Post Reply
BiloxiGeek
Posts: 271
Joined: Tue Feb 11, 2014 2:04 pm

zmcontrol.pl syntax

Post by BiloxiGeek »

Trying to run a script to change which preset a Reolink PTZ camera is set to.

Code: Select all

[root@host ~]# zmcontrol.pl --id 306 --preset 2
09/01/2023 08:40:57.186233 zmcontrol_306[3849581].INF [main:116] [Starting control server 306/Reolink]
09/01/2023 08:40:57.187146 zmcontrol_306[3849581].INF [main:127] [Control server 306/Reolink starting at 23/09/01 08:40:57]
Doesn't do anything, it just hangs at that point. I need to ctrl-c to get back to a prompt. The man page doesn't have much to help me figure out where I'm missing something.
BiloxiGeek
Posts: 271
Joined: Tue Feb 11, 2014 2:04 pm

Re: zmcontrol.pl syntax

Post by BiloxiGeek »

Okay, problem was with the zmcontrol socket file, it had disappeared for some reason. Restarted zoneminder and got control again. But I now see one other glitch. How do tell zmcontrol to move the camera to it's home position? I'm not sure what slot # that's saved to in the camera.
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: zmcontrol.pl syntax

Post by Magic919 »

Have you tried 0?
-
BiloxiGeek
Posts: 271
Joined: Tue Feb 11, 2014 2:04 pm

Re: zmcontrol.pl syntax

Post by BiloxiGeek »

Yep, tried 0.
Magic919
Posts: 1381
Joined: Wed Sep 18, 2013 6:56 am

Re: zmcontrol.pl syntax

Post by Magic919 »

I presume it goes to home when you click the button in the ZM UI. Maybe you can find out what that sends.
-
BiloxiGeek
Posts: 271
Joined: Tue Feb 11, 2014 2:04 pm

Re: zmcontrol.pl syntax

Post by BiloxiGeek »

Clicking "Home" does nothing right now. Ran tcpdump and I see packets going to/from the camera when I click on the preset buttons but I get nothing when clicking home.

This is a ReoLink Trackmix POE camera. I selected the RLC-423 control setting and it seems to be working. But I can for sure say it's a good or complete setup for the camera. Tried asking Reolink support but haven't heard anything back from them over the last week.

For the moment I've defined one of the slots to be Home and using it that way. Have a couple local scripts that adjust which zones are active/inactive and move the camera to different presets. Working on setting those up to be executed from another computer running an OpenHAB home automation setup.
Post Reply