Can't alter camera params from interface
Re: Can't alter camera params from interface
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
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
- 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
Hi Tom,
Thanks for spotting this and diagnosing it. I'll put a fix into the next version.
Cheers,
Phil,
Thanks for spotting this and diagnosing it. I'll put a fix into the next version.
Cheers,
Phil,