Page 1 of 1

AVTECH-AVI202 with HomeSeer Pro

Posted: Sun Jan 02, 2011 12:44 pm
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>

Re: AVTECH-AVI202 with HomeSeer Pro

Posted: Sun Jan 02, 2011 3:55 pm
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

Re: AVTECH-AVI202 with HomeSeer Pro

Posted: Sun Jan 02, 2011 4:03 pm
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)

Re: AVTECH-AVI202 with HomeSeer Pro

Posted: Sun Jan 02, 2011 5:38 pm
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

Re: AVTECH-AVI202 with HomeSeer Pro

Posted: Sun Jan 02, 2011 5:47 pm
by Faizal
Lorenzeo,

Thanks for your info, I think I have to buy new camera´s.

Re: AVTECH-AVI202 with HomeSeer Pro

Posted: Sun Jan 02, 2011 8:18 pm
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

Re: AVTECH-AVI202 with HomeSeer Pro

Posted: Sun Jan 02, 2011 9:24 pm
by Faizal
Thnaks AshaiRey, I´ll try.