retreiving data from a camera control page

Post here to ask any questions about hardware suitability, configuration in ZoneMinder, or experiences. If you just want to know if something works with ZoneMinder or not, please check the Hardware Compatibility sections in the forum, and the Wiki first. Also search this topic as well.
Post Reply
smp
Posts: 9
Joined: Wed Jun 19, 2024 7:51 pm

retreiving data from a camera control page

Post by smp »

I'm writing a perl5 control module for an SV3C ptz camera. I created a new control type named Sv3c:


I can retrieve the stored value for step with:

Code: Select all

my $step = $self->getParam($params, 'step');
my $min = $self->getParam($params, 'min');
print(">>> Iris brightness " step: $step, min: $min <<<\n");
The zmc.log shows:

Code: Select all

Iris brightness step: 10, min:  <<<
I've tried min, range, irisMin, etc. - no joy.
  • Is it possible to retrieve all settings from this camera's control settings?
  • or only a subset?
  • Where would this be defined?
Attachments
Screenshot 2024-06-23 at 12-30-26 ZM - Control Capability - Sv3c.png
Screenshot 2024-06-23 at 12-30-26 ZM - Control Capability - Sv3c.png (55.11 KiB) Viewed 2445 times
User avatar
iconnor
Posts: 3197
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: retreiving data from a camera control page

Post by iconnor »

I'm not really sure how that getParam thing is supposed to work.

You should be able to just do $self->CanTilt() or $$self{CanTilt}.
smp
Posts: 9
Joined: Wed Jun 19, 2024 7:51 pm

Re: retreiving data from a camera control page

Post by smp »

Thanx!

Code: Select all

  my $max = $self->MaxIrisRange();
  print(">>> Iris brightness " step: $step, max: $max <<<\n");

Code: Select all

>> Iris brightness 40, step: 8, max: 255 <<<
smp
Posts: 9
Joined: Wed Jun 19, 2024 7:51 pm

Re: retreiving data from a camera control page

Post by smp »

Thanx again!

Having gotten past that glitch, it took me less than 30 minutes to get iris working!!

Now a little cleanup and I'll see if I can figure out how to turn off those LEDs.
Post Reply