- 积分
- 832
- 金钱
- 700
- 威望
- 0
- 贡献
- 0
- HASS币
- 0
高级会员
- 积分
- 832
- 金钱
- 700
- HASS币
- 0
|
楼主 |
发表于 2021-5-1 13:00:32
|
显示全部楼层
能否帮我看看,我用curl 抓回来的数据
Last login: Sat May 1 12:26:59 on ttys000
xzf@xzfsMBP ~ % curl -v 192.168.50.1341
* Could not resolve host: 192.168.50.1341
* Closing connection 0
curl: (6) Could not resolve host: 192.168.50.1341
xzf@xzfsMBP ~ % curl -v 192.168.50.131
* Trying 192.168.50.131...
* TCP_NODELAY set
* Connected to 192.168.50.131 (192.168.50.131) port 80 (#0)
> GET / HTTP/1.1
> Host: 192.168.50.131
> User-Agent: curl/7.64.1
> Accept: */*
>
< HTTP/1.1 200 OK
< Connection: close
< Content-Type: text/html
< Cache-Control: no-cache
<
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 STRICT//EN" "DTD/xhtml1-strict.dtd">
<html>
<head>
<title>PS Audio Power Center - Control Panel</title>
<link href="/style.css" rel="stylesheet" type="text/css" />
<script src="/mchp.js" type="text/javascript"></script>
</head>
<body onLoad="allowAJAX=true;" onUnload="allowAJAX=false;">
<div id="shadow-one"><div id="shadow-two"><div id="shadow-three"><div id="shadow-four">
<div id="page">
<div style="padding:0 0 5px 5px"><img src="/logo.gif" /></div>
<div id="title"><div class="right">PS Audio Power Center - Control Panel</div></div>
<div id="menu">
<a href="/index.htm" onclick="allowAJAX=false;">System Status</a>
<a href="/setup.htm" onclick="allowAJAX=false;">Configuration</a>
<a href="/config.htm" onclick="allowAJAX=false;">Network</a>
</div>
<div id="content">
<h1>Unit: PS Audio P5</h1>
<div id="status">
<div id="loading" style="display:none">Error: Connection to power center lost.</div>
<div id="display">
<div>
<strong>System Power:</strong><br />
<div style="padding:3px;"><a id="power" class="unit" onclick="newAJAXCommand('zones.cgi?zone=0');"></a></div>
</div><br />
<div style="display:block;width:400px;margin-left: auto;margin-right: auto;">
<strong>Zone Power:</strong><br />
<a id="zone1" onclick="newAJAXCommand('zones.cgi?zone=1');" onmouseover="hideLayer('zndsp'); showLayer('zAdsp');" onmouseout="hideAll();"></a>
<a id="zone2" onclick="newAJAXCommand('zones.cgi?zone=2');" onmouseover="hideLayer('zndsp'); showLayer('zBdsp');" onmouseout="hideAll();"></a>
<a id="zone3" onclick="newAJAXCommand('zones.cgi?zone=3');" onmouseover="hideLayer('zndsp'); showLayer('zCdsp');" onmouseout="hideAll();"></a>
<a id="zone4" onclick="newAJAXCommand('zones.cgi?zone=4');" onmouseover="hideLayer('zndsp'); showLayer('zDdsp');" onmouseout="hideAll();"></a>
<a id="zone5" onclick="newAJAXCommand('zones.cgi?zone=5');" onmouseover="hideLayer('zndsp'); showLayer('zEdsp');" onmouseout="hideAll();" style="display:none;"></a>
<br style="clear:both;" /><br />
<div id="zndsp">Zone Details: No Zone Selected</div>
<div id="zAdsp" style="display:none">Zone A Outlets: Amplifier mc-205 / OUTLET 6</div>
<div id="zBdsp" style="display:none">Zone B Outlets: Classe ssp-800 / OUTLET 7</div>
<div id="zCdsp" style="display:none">Zone C Outlets: Dune HD / OUTLET 8</div>
<div id="zDdsp" style="display:none">Zone D Outlets: SUB15&HDMI / OUTLET 9</div>
<div id="zEdsp" style="display:none">Zone E Outlets: OUTLET 5 / OUTLET 10</div>
</div>
</div>
</div>
<p>For additional help, please contact your custom installer or <a href="http://www.psaudio.com">www.psaudio.com</a>.</p>
</div>
<script type="text/javascript">
<!--
// Parses the xmlResponse from status.xml and updates the status box
function updateStatus(xmlData) {
var mainstat = document.getElementById('display').style.display;
var loadstat = document.getElementById('loading').style.display;
// Check if a timeout occurred
if (!xmlData) {
mainstat = 'none';
loadstat = 'inline';
return;
}
// Make sure we're displaying the status display
mainstat = 'inline';
loadstat = 'none';
//unit power status
if (getXMLValue(xmlData, 'power') == '1')
document.getElementById('power').style.background = '#3399ff';
else
document.getElementById('power').style.background = '#cc0000';
//loop over all the zoness
for (i = 1; i <= 5; i++) {
if (getXMLValue(xmlData, 'zone' + i) == '1') {
document.getElementById('zone' + i).style.background = '#33cc00';
}
else if (getXMLValue(xmlData, 'zone' + i) == '0') {
document.getElementById('zone' + i).style.background = '#cc0000';
}
else
document.getElementById('zone' + i).style.background = '#ffff00';
}
}
setTimeout("newAJAXCommand('status.xml', updateStatus, true)",500);
// show or hide the layers
function showLayer(layerName){document.getElementById(layerName).style.display="block";}
function hideLayer(layerName){document.getElementById(layerName).style.display="none";}
function hideAll()
{
hideLayer('zAdsp');
hideLayer('zBdsp');
hideLayer('zCdsp');
hideLayer('zDdsp');
hideLayer('zEdsp');
showLayer('zndsp');
}
//-->
</script>
<div class="spacer"> </div>
<div id="footer">Copyright © 2010 PS Audio</div>
</div></div></div></div></div>
</body>
</html>
* Closing connection 0
|
|