Can't alter camera params from interface

Support and queries relating to all previous versions of ZoneMinder
Locked
maxs
Posts: 8
Joined: Mon Jul 28, 2003 12:38 am

Can't alter camera params from interface

Post by maxs »

Forum:
maxs
Posts: 8
Joined: Mon Jul 28, 2003 12:38 am

Re: Can't alter camera params from interface

Post by maxs »

Forum:
I was unable to change camera brightness etc. when authentication was active.
I noticed that in zm_actions.php, when zmu tries to change camera parameters,
it wasn't passing in a userid or password.

In zm_actions.php, around line 297, I changed this:
$zmu_command = ZMU_PATH." -m $mid -B$new_brightness -C$new_contrast -H$new_hue -O$new_colour";
to this:
$zmu_command = ZMU_COMMAND." -m $mid -B$new_brightness -C$new_contrast -H$new_hue -O$new_colour";

ZMU_COMMAND is defined in zm_html.php. The userid/password are tagged on if
authentication is active. I suspect this instance of ZMU_PATHEwas just missed when
authentication was added.

thanks
Tom
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Re: Can't alter camera params from interface

Post by zoneminder »

Hi Tom,

Thanks for spotting this and diagnosing it. I'll put a fix into the next version.

Cheers,

Phil,
Locked