AVTECH-AVI202 with HomeSeer Pro

Forum All about Webcams, IP Camera's & Camera's (hardware, software, pan tilt zoom etc).

Moderator: Esteban

Post Reply
User avatar
Faizal
Starting Member
Starting Member
Posts: 38
Joined: Wed Dec 29, 2010 10:00 am
Location: The Hague, The Netherlands

AVTECH-AVI202 with HomeSeer Pro

Post by Faizal »

I have 3 IP cams AVTECH-AVI202, they work good when I connect to them through the web (http://xxx.xxx.xxx.xxx) and with a application I can view 4 in on 1 screen.

When I open the cam through explorer I have to accept a ActiveX control.
I like to use the camera´s with HomeSeer Pro, I tried a lot but I´m not able to configure them, I tried NETCAM, but then I need a URL to the camera.
I googled a lot and tried URL´s with thinks as snapshot.jpg but nothing worked.

See attachments for the screen of the cams webpage

I tried to read the source of the webpage, bt I can´t find any URL

-------

Code: Select all

<html>
<head>
<title>IP CAMERA</title>
<META HTTP-EQUIV="Pragma" CONTENT="no-cache"> 
<META HTTP-EQUIV="Cache-Control" CONTENT="no-cache"> 
<META HTTP-EQUIV="Expires" CONTENT="0"> 
<META http-equiv=Content-Language content=zh-tw>
<META http-equiv=Content-Type content="text/html; charset=big5">
<META content="MSHTML 6.00.2800.1561" name=GENERATOR>
<script language="JavaScript" src="js/lgSource.js"></script>
<script language="JavaScript" src="js/data_init.js"></script>
<script language="javascript" src="js/AVUtility.js"></script>

<script language="JavaScript">
var d = document ;
d.write( "<frameset frameSpacing=0 rows='35,*' frameBorder='no' >" ) ;
d.write( "<frame name='ban' src='./top_201.htm' scrolling='no'>" ) ;
d.write( "<frameset frameSpacing=0 frameBorder='no' cols='228,*'>" ) ;
d.write( "<frame name='left' src='' noResize scrolling='auto'>" ) ;
d.write( "<frame name='main' frameBorder=0 src='' scrolling='auto'>" ) ;
d.write( "</frameset>" ) ;
d.write( "</frameset>" ) ;
d.write( "<noframes><body><p>no frame</p></body></noframes>" ) ;

top.dt.account.NotifySys = false;
top.dt.user.dvrCh = 2;

loadSupportLanguage();

function loadSupportLanguage() 
{	
	httpObj = createHttpRequestObj();
	requestData = "http://"+getURL()+"/cgi-bin/nobody/Machine.cgi?action=get_capability";
	httpObj.onreadystatechange = updSL;
	requestCgiParam(httpObj, requestData);
}

function updSL() 
{
	if (httpObj.readyState == 4 && httpObj.status == 200) 
	{
		var objStr    = new Object();
		objStr.strSrc = httpObj.responseText;
		
		if (GetCgiParam(objStr,"Language.Support=") == 1)
			if (objStr.strGet != "")
			    top.dt.user.SupportLG = objStr.strGet;

        loadStreamFormat();
	}
}

function loadWebPage() 
{	
	httpObj = createHttpRequestObj();
	requestData = "http://"+getURL()+"/cgi-bin/guest/UserInfo.cgi?action=query";	
	httpObj.onreadystatechange = updateStatus;
	requestCgiParam(httpObj, requestData);

	httpObj2 = createHttpRequestObj();
	requestData2 = "http://"+getURL()+"/cgi-bin/guest/Login.cgi?rnd="+Math.random();
	httpObj2.onreadystatechange = updateStatus2;
	httpObj2.open("get", requestData2, true);
	httpObj2.send(null);
}

function loadStreamFormat()
{
    httpObj4 = createHttpRequestObj();
	var requestData4 = "http://"+getURL()+"/cgi-bin/user/Config.cgi?action=get&category=Video.I0.*";
	httpObj4.onreadystatechange = updStreamFormat;
	requestCgiParam(httpObj4, requestData4);
}

function updStreamFormat()
{
	if (httpObj4.readyState == 4 && httpObj4.status == 200) 
	{
		var objStr 				= new Object();
		objStr.strSrc 			= httpObj4.responseText;
		
		if (GetCgiParam(objStr,"StreamFormat=") == 1){
            if(objStr.strGet == "MJPG")
                top.dt.user.StreamFormat = "MJPG";
            else
                top.dt.user.StreamFormat = "MPEG4";
		}
		if(browser == "IE")
		    mainSrc = "./home.htm";
		else
		    mainSrc = "./homeQT.htm";
		top.main.location.replace(mainSrc);
		loadWebPage();
	}
}

function updateStatus2() 
{
	if (httpObj2.readyState == 4 && httpObj2.status == 200) 
	{
		var objStr 			= new Object();
		objStr.strSrc 		= httpObj2.responseText;
		
		if (GetCgiParam(objStr,"Server-Language=") == 1)
		{
			for(i=0; i< top.LanguageArr.length; i++){
			    if(objStr.strGet.toUpperCase() == top.LanguageArr[i]){
				    top.dt.user.language = (i+1);
				    break;
				}
			}
		}

		if (GetCgiParam(objStr, "User-Level=") == 1)
		{
			top.dt.user.ulevel = objStr.strGet;
		}
		
		if (GetCgiParam(objStr, "Video-System=") == 1)
		{
			top.dt.user.VideoSystem = objStr.strGet;
		}
		
		if (GetCgiParam(objStr, "Product-ID-Minor=") == 1)
		{
    		//top.multi.location.replace("./multi_language.htm");
			top.dt.user.ProductID = objStr.strGet;
			top.left.location.replace("./left_home.htm");
		}
	}
}

function updateStatus() 
{
	if (httpObj.readyState == 4 && httpObj.status == 200) 
	{
		var objStr 			= new Object();
		objStr.strSrc 		= httpObj.responseText;
		
		if (GetCgiParam(objStr, "Username=") == 1)
		{
			top.dt.user.username = objStr.strGet;
		}

		if (GetCgiParam(objStr, "Password=") == 1)
		{
			top.dt.user.password = objStr.strGet;
		}
	}
}
</script>
Attachments
camera
camera
camera.jpg (162.43 KiB) Viewed 19307 times
Groeten, regards,
Faizal Walidin

HomeSeer Pro 2
Esteban
Forum Moderator
Forum Moderator
Posts: 677
Joined: Sun Jan 13, 2008 6:39 pm
Location: Netherlands

Re: AVTECH-AVI202 with HomeSeer Pro

Post by Esteban »

In order to use a camera with NetCam or HStouch directly it needs to be able to output single images on demand (e.g. through a special URL). It could well be that your camera doesn't support this. It is a common problem with a lot of 'cheaper' Chinese/Taiwanese etc IP cameras, they're just not able to do that.

There are however programs that can capture the mjpeg stream of some cameras and then save an image for you. This however can be quite CPU intensive depending on how many cameras, resolution etc you have it process and it also makes the camera setup less self-sufficient. After a quick google search I came across the following software for example, which seems to support your model of camera:
http://www.deskshare.com/video-surveill ... tware.aspx
(note: I have no experience with this software)

One possible workaround:
You could have a look if there is some sort of FTP upload option available in the camera.

Camera -> FTP server upload to the HS html directory -> Use the HS html URL of that image in NetCam.

And have the camera FTP upload overwrite this image constantly or at regular intervals.

Good luck
User avatar
Faizal
Starting Member
Starting Member
Posts: 38
Joined: Wed Dec 29, 2010 10:00 am
Location: The Hague, The Netherlands

Re: AVTECH-AVI202 with HomeSeer Pro

Post by Faizal »

Esteban, thanks for your reply
Ik have the possibility to upload images with FTP (on motion) but the filename is everytime different (timestamp)
Groeten, regards,
Faizal Walidin

HomeSeer Pro 2
drmacchi
Advanced Member
Advanced Member
Posts: 827
Joined: Wed Aug 08, 2007 5:48 pm
Location: Italy

Re: AVTECH-AVI202 with HomeSeer Pro

Post by drmacchi »

I think it's not possible. I have an AVTECH DVR with 9 connections for 9 cams. the DVR itself has a lan port to post LIVE VIDEO over INTERNET (explorer + active-X + java) or HOME LAN (standalone Avtech software).
You need a player able to manage JAVA language and a reference Http address , that you can not get.
Now i see them on pc (as described above) , and IPOD (iphone same) using a free APP from Avtech.
Cheers,
Lorenzo
User avatar
Faizal
Starting Member
Starting Member
Posts: 38
Joined: Wed Dec 29, 2010 10:00 am
Location: The Hague, The Netherlands

Re: AVTECH-AVI202 with HomeSeer Pro

Post by Faizal »

Lorenzeo,

Thanks for your info, I think I have to buy new camera´s.
Groeten, regards,
Faizal Walidin

HomeSeer Pro 2
AshaiRey
Senior Member
Senior Member
Posts: 1310
Joined: Mon Feb 02, 2009 5:27 pm
Location: Netherlands
Contact:

Re: AVTECH-AVI202 with HomeSeer Pro

Post by AshaiRey »

If it is only images that you need then try this.

Get with FTP all the files and drop them in a folder as Estaban suggested.
Set the sort attribute of this folder to newest files on top.
use a litle script to rename the top file to a known name lime image.jpg (and overwrite the existing one)
Remove all other files from form and from FTP locattion.

Repeat cycle.

You can do this probaly with xcopy also or even with irfanview and commandline switches
Bram
User avatar
Faizal
Starting Member
Starting Member
Posts: 38
Joined: Wed Dec 29, 2010 10:00 am
Location: The Hague, The Netherlands

Re: AVTECH-AVI202 with HomeSeer Pro

Post by Faizal »

Thnaks AshaiRey, I´ll try.
Groeten, regards,
Faizal Walidin

HomeSeer Pro 2
Post Reply

Return to “Webcams & Camera Stuff Forum”