Page 1 of 1

Brightness, Contrast settings not taking

Posted: Mon Jan 31, 2005 5:44 pm
by cordel
I'm trying to set the zm_html_settings.php to something other than 0 and the settings are not taking. I'm not even sure how they got set to zero to be honest. I had noticed earlier that I could not change the setting through the web page.
Although the SQL error is gone.
FC 3
php ver. 4.3.10-3.2
mysql-server 3.23.58-14
zm-1.20.2-RC2

Posted: Mon Jan 31, 2005 7:28 pm
by Inferno
in file zm-1.20.0/web/zm_actions.php (or change him on you web dir)
find this code:

Code: Select all

$zmu_command = getZmuCommand("-m $mid -B$new_brightness -C$new_contrast -H$new_hue -O$new_colour" );

and replace line to

Code: Select all

$zmu_command = getZmuCommand(" -m $mid -B$new_brightness -C$new_contrast -H$new_hue -O$new_colour" );
in original code was missing space before parameter -m

Enjoy! ;)

Posted: Mon Jan 31, 2005 8:37 pm
by cordel
After further checking I remembered that I had tried to change the settings for that cam and came to the same conclusion.
Good show :D
I am building a RC3 RPM to reflect this change.
Cheers,
Cordel

Posted: Tue Feb 01, 2005 9:52 pm
by zoneminder
Thanks for spotting that, fixed in source.

Phil