Skip to content

Commit

Permalink
Merge pull request ZoneMinder#257 from Phhere/patch-2
Browse files Browse the repository at this point in the history
Network Detection Support for Wansview
  • Loading branch information
mastertheknife committed Dec 2, 2013
2 parents 23ff402 + 55dadcf commit 219ada8
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions web/skins/classic/views/monitorprobe.php
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,24 @@ function probeVivotek( $ip )
return( $camera );
}

function probeWansview( $ip )
{
$camera = array(
'model' => "Wansview Camera",
'monitor' => array(
'Type' => 'Remote',
'Protocol' => 'http',
'Host' => 'admin:123456@'.$ip,
'Port' => 80,
'Path' => 'videostream.cgi',
'Width' => 640,
'Height' => 480,
'Palette' => 3
),
);
return( $camera );
}

$monitors = array();
foreach ( dbFetchAll( "select Id, Name, Host from Monitors where Type = 'Remote' order by Host" ) as $monitor )
{
Expand All @@ -264,6 +282,7 @@ function probeVivotek( $ip )
'00:80:f0' => array( 'type'=>'Panasonic','probeFunc'=>'probePana' ),
'00:0f:7c' => array( 'type'=>'ACTi','probeFunc'=>'probeACTi' ),
'00:02:d1' => array( 'type'=>'Vivotek','probeFunc'=>'probeVivotek' ),
'7c:dd:90' => array( 'type'=>'Wansview','probeFunc'=>'probeWansview' )
);

unset($output);
Expand Down

0 comments on commit 219ada8

Please sign in to comment.