Page 1 of 1

1.19.2 bug

Posted: Thu Apr 22, 2004 4:32 pm
by fernando
event windows pop-up with no scale rate option defined.

Posted: Fri Apr 23, 2004 1:20 am
by gneuf
Yes - I have this too - both scale and rate pulldowns look like they're using index #0 (4x size in one, 100x rate in the other).

I'm looking at the code now - artifact of altered/added WEB-constant-names and database non-upgrade?

Might know more in a few minutes...

Posted: Fri Apr 23, 2004 1:31 am
by gneuf
zm_html_view_event.php: Line 79/Line80

if ( !isset( $rate ) )
$rate = ZM_WEB_DEFAULT_RATE;
if ( !isset( $scale ) )
$scale = ZM_WEB_DEFAULT_SCALE;

These constants changed: Now they are a set.

ZM_<H,M,L>_WEB_DEFAULT_SCALE !!!

Easy to fix, right? However....

I noticed that the new set of constant names goes against the previous format

Used to be:

ZM_WEB_<H,M,L>_<blaablaablaa>

Maybe this should be fixed, or is the problem?

In any case, other possible places this is also broken:

zm_html_view_watchfeed.php, Line 36

Still fiddling...

Posted: Fri Apr 23, 2004 1:38 am
by gneuf
Yup, that works. For a temporary fix, change:
IN: zm_html_view_event.php: Line 78

if ( !isset( $rate ) )
$rate = ZM_WEB_DEFAULT_RATE;
if ( !isset( $scale ) )
$scale = ZM_WEB_DEFAULT_SCALE;

to

if ( !isset( $rate ) )
$rate = ZM_H_WEB_DEFAULT_RATE;
if ( !isset( $scale ) )
$scale = ZM_H_WEB_DEFAULT_SCALE;

Assuming that your "High" rate is Ok as a temporary default until 19.3 fixes this...

Posted: Fri Apr 23, 2004 7:04 am
by zoneminder
Aaargh, I don't know how the _H_ bits etc got transposed in zmconfig.pl.in but there are a couple ways to fix it.

Firstly, I've upload a patch here which you can use. This corrects the ZM_x_WEB to be ZM_WEB_x for the default rate and scales. You can also do this manually in zmconfig.pl.in if you prefer as it's only in 6 places.

Then do

./configure <your options>
perl zmconfig.pl -noi

and that should do it, you should not need to make or install.

Remember to undo any other changes you have made to get around this problem by the way.

Phil,

Posted: Fri Apr 23, 2004 3:40 pm
by gneuf
Excellent!

You da man!

Posted: Sat Apr 24, 2004 8:09 pm
by fernando
hi phill.. how to apply this?

like patch the kernel? i test this but send me many errors.!!

can you post the right command to use.

Posted: Sat Apr 24, 2004 8:58 pm
by fernando
phil the "type" option are missed in the patch? i include this and semms to work.
btw.. i dont fount any bug .. filters works fine. interface ok..
iam working on ttranslation
{
name => "ZM_H_WEB_DEFAULT_SCALE",
default => "100",
description => "What the default scaling factor applied to 'live' or 'event' views is (%)",
help => "Normally ZoneMinder will display 'live' or 'event' streams in their native size. However if you have monitors with large dimensions or a slow link you may prefer to reduce this size, alternatively for small monitors you can enlarge it. This options lets you specify what the default scaling factor will be. It is expressed as a percentage so 100 is normal size, 200 is double size etc.",
type => $types{integer},
category => 'highband',
},
{
name => "ZM_WEB_H_DEFAULT_SCALE",
default => "100",
description => "What the default scaling factor applied to 'live' or 'event' views is (%)",
help => "Normally ZoneMinder will display 'live' or 'event' streams in their native size. However if you have monitors with large dimensions or a slow link you may prefer to reduce this size, alternatively for small monitors you can enlarge it. This options lets you specify what the default scaling factor will be. It is expressed as a percentage so 100 is normal size, 200 is double size etc.",
type => $types{integer},
category => 'highband',
},
{
name => "ZM_H_WEB_DEFAULT_RATE",
default => "100",
description => "What the default replay rate factor applied to 'event' views is (%)",
help => "Normally ZoneMinder will display 'event' streams at their native rate, i.e. as close to real-time as possible. However if you have long events it is often convenient to replay them at a faster rate for review. This option lets you specify what the default replay rate will be. It is expressed as a percentage so 100 is normal rate, 200 is double speed etc.",
type => $types{integer},
category => 'highband',
},
{
name => "ZM_WEB_H_DEFAULT_RATE",
default => "100",
description => "What the default replay rate factor applied to 'event' views is (%)",
help => "Normally ZoneMinder will display 'event' streams at their native rate, i.e. as close to real-time as possible. However if you have long events it is often convenient to replay them at a faster rate for review. This option lets you specify what the default replay rate will be. It is expressed as a percentage so 100 is normal rate, 200 is double speed etc.",
type => $types{integer},
category => 'highband',
},
{
name => "ZM_M_WEB_DEFAULT_SCALE",
default => "100",
description => "What the default scaling factor applied to 'live' or 'event' views is (%)",
help => "Normally ZoneMinder will display 'live' or 'event' streams in their native size. However if you have monitors with large dimensions or a slow link you may prefer to reduce this size, alternatively for small monitors you can enlarge it. This options lets you specify what the default scaling factor will be. It is expressed as a percentage so 100 is normal size, 200 is double size etc.",
type => $types{integer},
category => 'medband',
},
{
name => "ZM_WEB_M_DEFAULT_SCALE",
default => "100",
description => "What the default scaling factor applied to 'live' or 'event' views is (%)",
help => "Normally ZoneMinder will display 'live' or 'event' streams in their native size. However if you have monitors with large dimensions or a slow link you may prefer to reduce this size, alternatively for small monitors you can enlarge it. This options lets you specify what the default scaling factor will be. It is expressed as a percentage so 100 is normal size, 200 is double size etc.",
type => $types{integer},
category => 'medband',
},
{
name => "ZM_M_WEB_DEFAULT_RATE",
default => "100",
description => "What the default replay rate factor applied to 'event' views is (%)",
help => "Normally ZoneMinder will display 'event' streams at their native rate, i.e. as close to real-time as possible. However if you have long events it is often convenient to replay them at a faster rate for review. This option lets you specify what the default replay rate will be. It is expressed as a percentage so 100 is normal rate, 200 is double speed etc.",
type => $types{integer},
category => 'medband',
},
{
name => "ZM_WEB_M_DEFAULT_RATE",
default => "100",
description => "What the default replay rate factor applied to 'event' views is (%)",
help => "Normally ZoneMinder will display 'event' streams at their native rate, i.e. as close to real-time as possible. However if you have long events it is often convenient to replay them at a faster rate for review. This option lets you specify what the default replay rate will be. It is expressed as a percentage so 100 is normal rate, 200 is double speed etc.",
type => $types{integer},
category => 'medband',
},
{
name => "ZM_L_WEB_DEFAULT_SCALE",
default => "100",
description => "What the default scaling factor applied to 'live' or 'event' views is (%)",
help => "Normally ZoneMinder will display 'live' or 'event' streams in their native size. However if you have monitors with large dimensions or a slow link you may prefer to reduce this size, alternatively for small monitors you can enlarge it. This options lets you specify what the default scaling factor will be. It is expressed as a percentage so 100 is normal size, 200 is double size etc.",
type => $types{integer},
category => 'lowband',
},
{
name => "ZM_WEB_L_DEFAULT_SCALE",
default => "100",
description => "What the default scaling factor applied to 'live' or 'event' views is (%)",
help => "Normally ZoneMinder will display 'live' or 'event' streams in their native size. However if you have monitors with large dimensions or a slow link you may prefer to reduce this size, alternatively for small monitors you can enlarge it. This options lets you specify what the default scaling factor will be. It is expressed as a percentage so 100 is normal size, 200 is double size etc.",
type => $types{integer},
category => 'lowband',
},
{
name => "ZM_L_WEB_DEFAULT_RATE",
default => "100",
description => "What the default replay rate factor applied to 'event' views is (%)",
help => "Normally ZoneMinder will display 'event' streams at their native rate, i.e. as close to real-time as possible. However if you have long events it is often convenient to replay them at a faster rate for review. This option lets you specify what the default replay rate will be. It is expressed as a percentage so 100 is normal rate, 200 is double speed etc.",
type => $types{integer},
category => 'lowband',
},
{
name => "ZM_WEB_L_DEFAULT_RATE",
default => "100",
description => "What the default replay rate factor applied to 'event' views is (%)",
help => "Normally ZoneMinder will display 'event' streams at their native rate, i.e. as close to real-time as possible. However if you have long events it is often convenient to replay them at a faster rate for review. This option lets you specify what the default replay rate will be. It is expressed as a percentage so 100 is normal rate, 200 is double speed etc.",
type => $types{integer},
category => 'lowband',
},

Posted: Sun Apr 25, 2004 5:09 am
by tommy
Fernando:
Put zmconfig.pl.in and the patch file are in the same directory.
From a command prompt in that directory, type:

patch < zm-1.19.2-1.patch

That's it.