Aller au contenu

Changement De Direction Ip651Wi Trendnet


Dyscus

Messages recommandés

Bonjour à  tous,

 

J'ai installé la caméra sur le HC2, celle-ci fonctionne bien.

 

Je voudrais cependant configurer les flèches de directions.

 

Il faut mettre une URL, mais impossible de la trouver, les flèches de l'interface de la camré fonctionne avec (je pense) un javascript donc impossible pour moi de le déchiffrer.

 

Je rajoute le code HTML au cas où :

<html>
<head>
<title>TRENDnet | Maison(TV-IP651WI)</title>
<meta http-equiv="X-UA-Compatible" content="requiresActiveX=true">
<meta http-equiv=Content-Type content="text/html; charset=windows-1252">
<link rel="stylesheet" href="style.css?cidx=1.062014-03-11" type="text/css">
<style type=text/css>
A:link {FONT-WEIGHT: bold; FONT-SIZE: 14px; COLOR: ff6600; FONT-FAMILY: arial,geneva,sans-serif}
A:visited {FONT-WEIGHT: bold; FONT-SIZE: 14px; COLOR: ff6600; FONT-FAMILY: arial,geneva,sans-serif}
.org-news {FONT-WEIGHT: bold; FONT-SIZE: 12px; COLOR: ff6600; FONT-FAMILY: arial,geneva,sans-serif}
</style>
<script language="Javascript" SRC="function.js?cidx=1.062014-03-11"></script>
<script language="Javascript">
<!--
function MM_preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

function MM_swapImgRestore() { //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

var tInterval = "";
var fInterval = "";

function Stop() {
	window.clearInterval(tInterval);
	window.clearInterval(fInterval);
}

function ShowRunningString() {
    tInterval = window.setInterval("GetTrigger()", 1000);
    fInterval = window.setInterval("ShowFrameRate()", 1000);
}

function Init() {
    window.setTimeout("ShowRunningString()", 3000);
    
    if (0 == 1) {
       document.forms[0].nightmodeon.disabled = false;
       document.forms[0].nightmodeoff.disabled = false;
       document.forms[0].nightmodeon.className="ButtonSmall";
       document.forms[0].nightmodeoff.className="ButtonSmall";
    } else {
       document.forms[0].nightmodeon.disabled = true;
       document.forms[0].nightmodeoff.disabled = true;
       document.forms[0].nightmodeon.className="ButtonSmallOff";
       document.forms[0].nightmodeoff.className="ButtonSmallOff";
    }
}

function ShowFrameRate() {
    var fFrameRate;
    if ((1) || (0))
    {
       fFrameRate = cvcs.GetFrameRate();
    }
    if (1)
    {
       window.status = "Frame:" + fFrameRate.toString() + " fps";
    }
    if (0)
    {
       CurrentFrame.innerHTML = "Frame:" + fFrameRate.toString() + " fps";
    }
    cvcs.GetRealTimeData();
    CurrentTime.innerHTML = cvcs.GetTimeString();
}

function SubmitAudioOn()
{
     cvcs.SetSound(1);
     javascript:document.forms[1].submit();
}

function SubmitAudioOff()
{
     cvcs.SetSound(0);
     javascript:document.forms[2].submit();
}

function SubmitUploadOn()
{
    javascript:document.forms[3].submit();
}
 
function SubmitUploadOff()
{
    javascript:document.forms[4].submit();
}

function SubmitEmailOn()
{
    javascript:document.forms[5].submit();
}
 
function SubmitEmailOff()
{
    javascript:document.forms[6].submit();
}
function SubmitNightModeOn()
{
    javascript:document.forms[7].submit();
}
function SubmitNightModeOff()
{
    javascript:document.forms[8].submit();
}

function GetTrigger() {
    HPos.innerHTML = cvcs.GetHorizontalPosition();
    VPos.innerHTML = cvcs.GetVerticalPosition();
    if (cvcs.GetImageUpload() == 1) {
       ImageUpload.innerHTML = "[ON]";
    }
    else {
       ImageUpload.innerHTML = "[OFF]";
    }
    if (cvcs.GetImageEmail() == 1) {
       EmailImage.innerHTML = "[ON]";
    }
    else {
       EmailImage.innerHTML = "[OFF]";
    }
}

function SubmitSingleMove(i)
{
    document.forms[9].PanSingleMoveDegree.value=document.forms[0].PanDegree.selectedIndex+1;
    document.forms[9].TiltSingleMoveDegree.value=document.forms[0].TiltDegree.selectedIndex+1;
    document.forms[9].PanTiltSingleMove.value=i;
    javascript:document.forms[9].submit();
}

function SubmitClearPosition()
{
    if (1)
    {
        var i = document.forms[0].PresetList.selectedIndex;
        if (i > 0)
        {
           document.forms[11].ClearPosition.value=i;
           javascript:document.forms[11].submit();
           document.forms[0].PresetList.options[i].text = i;
           SubmitPresetList(document.forms[0].PresetList);
        }
    }
}

function SubmitPresetList(selObj)
{
  for (var i=0; i < selObj.options.length; i++)
    if (selObj.options[i].selected)
      break;
  var sel=selObj[i].text;
  var a=sel.indexOf(' ');
  var b=sel.lastIndexOf(' ');
  if (a < 
     document.forms[0].PresetName.value=sel.substring(a+1,;
  else
     document.forms[0].PresetName.value="";
  if (i == 0)
     document.forms[0].PresetName.disabled = true;
  else
     document.forms[0].PresetName.disabled = false;
}

function SubmitSetPosition()
{
    if (1)
    {
        var i=document.forms[0].PresetList.selectedIndex;
        if (i > 0)
        {
            var sel=document.forms[0].PresetName.value;
            var hp=cvcs.GetHorizontalPosition();
            var vp=cvcs.GetVerticalPosition();
            
            document.forms[0].PresetList.options[i].text = i+" "+sel+" ("+hp+","+vp+")";
            
            document.forms[10].PanTiltHorizontal.value=hp;
            document.forms[10].PanTiltVertical.value=vp;
            document.forms[10].SetName.value=sel;
            document.forms[10].SetPosition.value=i;
            javascript:document.forms[10].submit();
        }
    }
}

function SubmitGoToPosition()
{
    var i=document.forms[0].PresetList.selectedIndex;
    if (i > 0)
    {
        document.forms[12].PanTiltPresetPositionMove.value=i;
        javascript:document.forms[12].submit();
    }
}

function SubmitSwingMode(i)
{
    document.forms[13].PanTiltSwingMode.value=i;
    javascript:document.forms[13].submit();
}
//-->
</script>
</head>

<body bgcolor=white onload="Init();MM_preloadImages('btthome1.gif?cidx=1.062014-03-110','bttadmn1.gif?cidx=1.062014-03-110','bttatvx1.gif?cidx=1.062014-03-110','bttjava1.gif?cidx=1.062014-03-110')" onunload="Stop()">
<table width="750" border="0" cellpadding="0" cellspacing="0">
<tr>
  <td width="21"><img src="c1_tl.gif" width="21" height="21" id="Image1"></td>
  <td width="758" background="bg1_t.gif"><img src="top_1.gif" width="390" height="21"></td>
  <td width="21"><img src="c1_tr.gif" width="21" height="21"></td>
</tr>
<tr>
  <td valign="top" background="bg1_l.gif"><img src="top_2.gif" width="21" height="69"></td>
  <td background="bg.gif">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td width="13%"><img src="logo.gif" width="270" height="69"></td>
      <td width="87%" align="right" valign="top"><img src="descript.gif?cidx=TV-IP651WI1.062014-03-11"></td>
    </tr>
    <tr><td colspan="2"><img src="spacer.gif" width="15" height="2"></td></tr>
    </table>
    <table width="100%" border="0" cellpadding="0" cellspacing="0" background="c3_bg.gif">
    <tr>
      <td width="10"><img src="c3_tl.gif" width="6" height="6"></td>
      <td width="100%"><img src="spacer.gif" width="6" height="6"></td>
      <td width="10"><img src="c3_tr.gif" width="6" height="6"></td>
    </tr>
    <tr>
      <td width="10"><img src="spacer.gif" width="6" height="6"></td>
      <td>
        <table border="0" cellpadding="3" cellspacing="0">
        <tr><!-- Start of Title -->
          <td><img src="spacer.gif" width="8" height="8"></td>
          <td><a href="home.htm"><img src="btthome0.gif?cidx=1.062014-03-110" name="bhome1" width="161" height="28" border="0" id="bhome1" onMouseOver="MM_swapImage('bhome1','','btthome1.gif?cidx=1.062014-03-110',1)" onMouseOut="MM_swapImgRestore()"></a></td>
          <td><a href="stssys.htm"><img src="bttadmn0.gif?cidx=1.062014-03-110" name="badmin1" width="161" height="28" border="0" id="badmin1" onMouseOver="MM_swapImage('badmin1','','bttadmn1.gif?cidx=1.062014-03-110',1)" onMouseOut="MM_swapImgRestore()"></a></td>
          <td><a href="aview.htm"><img src="bttatvx0.gif?cidx=1.062014-03-110" name="bactivex1" width="161" height="28" border="0" id="bactivex1" onMouseOver="MM_swapImage('bactivex1','','bttatvx1.gif?cidx=1.062014-03-110',1)" onMouseOut="MM_swapImgRestore()"></a></td>
          <td><a href="jview.htm"><img src="bttjava1.gif?cidx=1.062014-03-110" name="bjava1" width="161" height="28" border="0" id="bjava1" onMouseOver="MM_swapImage('bjava1','','bttjava1.gif?cidx=1.062014-03-110',1)" onMouseOut="MM_swapImgRestore()"></a></td>
        </tr><!-- End of Title -->
        </table>
      </td>
      <td><img src="spacer.gif" width="6" height="6"></td>
    </tr>
    <tr>
      <td width="10"><img src="c3_bl.gif" width="6" height="6"></td>
      <td width="100%"><img src="spacer.gif" width="6" height="6"></td>
      <td><img src="c3_br.gif" width="6" height="6"></td>
    </tr>
    </table><img src="spacer.gif" width="15" height="12">
    <table width="100%" border="0" cellpadding="0" cellspacing="0">
    <tr>
      <td valign="top">
        <table width="100%" border="0" cellpadding="0" cellspacing="0" bgcolor="black">
        <tr>
          <td><img src="spacer.gif" width="8" height="8"></td>
          <td width="750"><img src="spacer.gif" width="10" height="10"></td>
          <td><img src="spacer.gif" width="8" height="8"></td>
        </tr>
        <tr>
          <td><img src="spacer.gif" width="10" height="10"></td>
          <td align="center" bgcolor="#FFFFFF"><!-- Start of Contenet -->
            <form action="/jview.htm" METHOD="POST" autocomplete="off">
              <table width="100%" border="0" cellpadding="3" cellspacing="0">
              <tr><td class="headerbg">View Video - Java Mode</td></tr>
              </table>
              <table width="100%" border="0" cellpadding="5" cellspacing="1">
              <tr><td>
              <table width="100%" border="0" cellpadding="3" cellspacing="1" bgcolor="#FFFFFF" class="box_tn">
              <tr><td colspan="2">
                <table width="100%" border="0" cellpadding="1" cellspacing="1">
                <tr>
                  <td width="59%">
                      Maison<br>
                      Salon<br>
                      <SPAN ID="CurrentTime"></SPAN>
                    <SPAN ID="CurrentFrame"></SPAN>
                  </td>
                  <td width="41%">
                    <table width="100%" border="0" cellpadding="3" cellspacing="1">
                    <tr>
                      <td align="right" nowrap><font class=bluetextbold><span style="width:90px">Upload Image:</span></font></td>
                      <td nowrap>
	                <INPUT type="button" style="width:40px" class="ButtonSmall" onClick="SubmitUploadOn()" value=' ON '>
        	         <INPUT type="button" style="width:40px" class="ButtonSmall" onClick="SubmitUploadOff()" value='OFF'>
	                <SPAN ID="ImageUpload"></SPAN>
                      </td>
                    </tr>
                    <tr>
                      <td align="right" nowrap><font class=bluetextbold><span style="width:90px">E-mail Image:</span></font></td>
                      <td nowrap>
                	<INPUT type="button" style="width:40px" class="ButtonSmall" onClick="SubmitEmailOn()" value=' ON '>
        	         <INPUT type="button" style="width:40px" class="ButtonSmall" onClick="SubmitEmailOff()" value='OFF'>
                	<SPAN ID="EmailImage"></SPAN>
                      </td>
                    </tr>
                    </table>
                  </td>
                </tr>
                </table>
                </td></tr>
                <tr><td colspan="2"><hr size="1"></td></tr>
                <tr>
                  <td width="190" valign="top">
                    <table width="190" border="0" cellpadding="3" cellspacing="2" bgcolor="#F0F0F0" class="box_subtn">
                    <tr>
                      <td colspan=3>Zoom :
                        <INPUT type="button" class="ButtonSmall" style="width:25px" onClick="cvcs.Zoom(1)" value='x1'>
                        <INPUT type="button" class="ButtonSmall" style="width:25px" onClick="cvcs.Zoom(2)" value='x2'>
                        <INPUT type="button" class="ButtonSmall" style="width:25px" onClick="cvcs.Zoom(3)" value='x3'>
                        <INPUT type="button" class="ButtonSmall" style="width:25px" onClick="cvcs.Zoom(4)" value='x4'>
                      </td>
                    </tr>
                    <tr>
                      <td colspan=3>Audio :
                        <INPUT type="button" style="width:40px" class="ButtonSmall" onClick="SubmitAudioOn()" value=' ON '>
                        <INPUT type="button" style="width:40px" class="ButtonSmall" onClick="SubmitAudioOff()" value='OFF'>
                      </td>
                    </tr>
                    <tr>
                      <td colspan=3>Night Mode :
          	    	    <INPUT id="nightmodeon" type="button" class="ButtonSmall" style="width:40px" value='ON'  onClick="SubmitNightModeOn()">
          	    	    <INPUT id="nightmodeoff" type="button" class="ButtonSmall" style="width:40px" value='OFF' onClick="SubmitNightModeOff()">
                      </td>
                    </tr>
                    <tr>
                      <td colspan=2>Pan Degree</td>
                      <td><SELECT id="PanDegree" name="PanDegree" size="1""><OPTION selected>1</OPTION>
<OPTION>2</OPTION>
<OPTION>3</OPTION>
<OPTION>4</OPTION>
<OPTION>5</OPTION>
<OPTION>6</OPTION>
<OPTION>7</OPTION>
<OPTION>8</OPTION>
<OPTION>9</OPTION>
<OPTION>10</OPTION>
</SELECT></td>
                    </tr>
                    <tr>
                      <td colspan=2>Tilt Degree</td>
                      <td><SELECT id="TiltDegree" name="TiltDegree"  size="1""><OPTION selected>1</OPTION>
<OPTION>2</OPTION>
<OPTION>3</OPTION>
<OPTION>4</OPTION>
<OPTION>5</OPTION>
<OPTION>6</OPTION>
<OPTION>7</OPTION>
<OPTION>8</OPTION>
<OPTION>9</OPTION>
<OPTION>10</OPTION>
</SELECT></td>
                    </tr>
                    <tr><td colspan=3 height="10"></td></tr>
                    <tr>
                      <td colspan="3">
                        <table width="100%" border="0" cellpadding="1" cellspacing="1" bgcolor="#999999">
                        <tr><td height="25" align="center" bgcolor="#CCCCCC">(<SPAN ID="HPos"></SPAN>,<SPAN ID="VPos"></SPAN>)</td></tr>
                        </table>
                      </td>
                    </tr>
                    <tr>
                      <td></td>
                      <td><INPUT type="button" class="ButtonSmall" style="width:50px" onClick="SubmitSingleMove(1)" value='Up'></td>
                      <td></td>
                    </tr>
                    <tr>
                      <td><INPUT type="button" class="ButtonSmall" style="width:50px" onClick="SubmitSingleMove(3)" value='Left'></td>
                      <td><INPUT type="button" class="ButtonSmall" style="width:50px" onClick="SubmitSingleMove(4)" value='Home'></td>
                      <td><INPUT type="button" class="ButtonSmall" style="width:50px" onClick="SubmitSingleMove(5)" value='Right'></td>
                    </tr>
                    <tr>
                      <td></td>
                      <td><INPUT type="button" class="ButtonSmall" style="width:50px" onClick="SubmitSingleMove(7)" value='Down'></td>
                      <td></td>
                    </tr>
                    <tr><td colspan=3 height="10"></td></tr>
                    <tr><td colspan=3>Preset Position</td></tr>
                    <tr><td colspan=3><SELECT id="PresetList" name="PresetList" size="1" onChange="SubmitPresetList(this)"><OPTION>0 Home (170,30)</OPTION>
<OPTION>1</OPTION>
<OPTION>2</OPTION>
<OPTION>3</OPTION>
<OPTION>4  (141,24)</OPTION>
<OPTION>5</OPTION>
<OPTION>6</OPTION>
<OPTION>7</OPTION>
<OPTION>8</OPTION>
<OPTION>9</OPTION>
<OPTION>10</OPTION>
<OPTION>11</OPTION>
<OPTION>12</OPTION>
<OPTION>13</OPTION>
<OPTION>14</OPTION>
<OPTION>15</OPTION>
<OPTION>16</OPTION>
<OPTION>17</OPTION>
<OPTION>18</OPTION>
<OPTION>19</OPTION>
<OPTION>20</OPTION>
<OPTION>21</OPTION>
<OPTION>22</OPTION>
<OPTION>23</OPTION>
<OPTION>24</OPTION>
</SELECT></td></tr>
                    <tr><td colspan=3><INPUT type="text" size=18 maxlength=12 id="PresetName" name="PresetName"></td></tr>
                    <tr>
                      <td><INPUT type="button" class="ButtonSmall" style="width:50px" onClick="SubmitSetPosition()" value='Set'></td>
                      <td><INPUT type="button" class="ButtonSmall" style="width:50px" onClick="SubmitClearPosition()" value='Clear'></td>
                      <td></td>
                    </tr>
                    <tr>
                      <td><INPUT type="button" class="ButtonSmall" style="width:50px" onclick="SubmitGoToPosition()" value='Go To'></td>
                      <td></td>
                      <td></td>
                    </tr>
                    <tr>
                      <td><INPUT type="button" class="ButtonSmall" style="width:50px" onclick="SubmitSwingMode(2)" value='Swing'></td>
                      <td><INPUT type="button" class="ButtonSmall" style="width:50px" onclick="SubmitSwingMode(0)" value='Stop'></td>
                      <td></td>
                    </tr>
                    </table>
                  </td>
                  <td align="left" valign="top">
                    <table border="0" cellpadding="3" cellspacing="2">
                    <tr><td><img src="text.png"></td></tr>
                    <tr><td style="padding: 0px 0px 0px 3px;">
                      <applet name="cvcs" codeBase="http://192.168.1.10:5001" archive="aplug.jar" code="aplug.class" width=640 height=480>
                      <param name="RemotePort" value=5001>
                      <param name="Timeout" value=5000>
                      <param name="RotateAngle" value=0>
                      <param name="PreviewFrameRate" value=2>
                      <param name="Algorithm" value=2>
                      <param name="DeviceSerialNo" value="YWRtaW46RHlzY3VzMjA=">
                      </applet>
                    </td></tr>
                    </table>
                  </td>
                </tr>
                </table>
                </td></tr></table>
            </form>
          </td><!-- End of Contenet -->
          <td><img src="spacer.gif" width="8" height="8"></td>
        </tr>
        <tr>
          <td><img src="spacer.gif" width="8" height="8"></td>
          <td><img src="spacer.gif" width="10" height="10"></td>
          <td><img src="spacer.gif" width="8" height="8"></td>
        </tr>
        </table>
      </td>
    </tr>
    </table>
  </td>
  <td background="bg1_r.gif"> </td>
</tr>
<tr>
  <td><img src="c1_bl.gif" width="21" height="20"></td>
  <td align="right" background="bg1_b.gif"><img src="cpright.gif?cidx=1.062014-03-110" width="264" height="20"></td>
  <td><img src="c1_br.gif" width="21" height="20"></td>
</tr>
</table>
</body>

<form action="/audiocontrol.cgi" METHOD="POST" autocomplete="off">
<INPUT type="hidden" name="AudioMute" value="0">
</form>

<form action="/audiocontrol.cgi" METHOD="POST" autocomplete="off">
<INPUT type="hidden" name="AudioMute" value="1">
</form>

<form action="/iocontrol.cgi" METHOD="POST" autocomplete="off">
<INPUT type="hidden" name="ImageUpload" value="1">
</form>

<form action="/iocontrol.cgi" METHOD="POST" autocomplete="off">
<INPUT type="hidden" name="ImageUpload" value="0">
</form>

<form action="/iocontrol.cgi" METHOD="POST" autocomplete="off">
<INPUT type="hidden" name="ImageEmail" value="1">
</form>

<form action="/iocontrol.cgi" METHOD="POST" autocomplete="off">
<INPUT type="hidden" name="ImageEmail" value="0">
</form>

<form action="/nightmodecontrol.cgi" METHOD="POST" autocomplete="off">
<INPUT type="hidden" name="IRLed" value="1">
</form>
 
<form action="/nightmodecontrol.cgi" METHOD="POST" autocomplete="off">
<INPUT type="hidden" name="IRLed" value="0">
</form>

<form action="/pantiltcontrol.cgi" METHOD="POST" autocomplete="off">
<INPUT type="hidden" name="PanSingleMoveDegree">
<INPUT type="hidden" name="TiltSingleMoveDegree">
<INPUT type="hidden" name="PanTiltSingleMove">
</form>

<form action="/pantiltcontrol.cgi" METHOD="POST" autocomplete="off">
<INPUT type="hidden" name="PanTiltHorizontal">
<INPUT type="hidden" name="PanTiltVertical">
<INPUT type="hidden" name="SetName">
<INPUT type="hidden" name="SetPosition">
</form>

<form action="/pantiltcontrol.cgi" METHOD="POST" autocomplete="off">
<INPUT type="hidden" name="ClearPosition">
</form>

<form action="/pantiltcontrol.cgi" METHOD="POST" autocomplete="off">
<INPUT type="hidden" name="PanTiltPresetPositionMove" value="0">
</form>

<form action="/pantiltcontrol.cgi" METHOD="POST" autocomplete="off">
<INPUT type="hidden" name="PanTiltSwingMode" value="0">
</form>

</html>

Quelqu'un aurait des pistes ?

 

Merci par avance.

Lien vers le commentaire
Partager sur d’autres sites

selon moi tu dois juste rentrer les url dans le panneau de config de la caméra.

Maintenant, si tu veux piloter via des script lua, c'est autre chose. Si tes caméras sont connectées àun Syno, vois le tuto de Lazer

Lien vers le commentaire
Partager sur d’autres sites

  • 4 mois après...
×
×
  • Créer...