Brightness, Contrast settings not taking

Support and queries relating to all previous versions of ZoneMinder
Locked
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Brightness, Contrast settings not taking

Post 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
Inferno
Posts: 17
Joined: Sun Jan 30, 2005 4:26 pm
Location: Nizhny Novgorod, Russia
Contact:

Post 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! ;)
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post 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
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Thanks for spotting that, fixed in source.

Phil
Locked