MGMJuniorUser skrev: ↑13 okt 2019 21:48
Thanks, It works with the user:pass@ip
And thank you for you good work with the plugin - I have looked for years for something like this.
The tcnet controller 1 interface:
1.png
Status.xml:
2.png
<response>
<err0>0</err0>
<err1>0</err1>
<err2>0</err2>
<err3>0</err3>
<err4>0</err4>
<led0>1</led0>
<led1>0</led1>
<led2>0</led2>
<led3>0</led3>
<led4>0</led4>
<led5>1</led5>
<led6>0</led6>
<led7>0</led7>
<btemp>60</btemp>
<utemp>60</utemp>
<otemp>24</otemp>
<ftemp>64</ftemp>
<pwr>0</pwr>
<debug>38</debug>
</response>
developer tools chrome:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
http://www.w3.org/TR/xhtml1/DTD/xhtml1- ... dtd"><html xmlns="
http://www.w3.org/1999/xhtml">
<head><meta http-equiv="Content-Type" content="text/html; charset=iso-8859-9" />
<title>TCNET Boiler Controller</title>
<link href="/mchp.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="
http://gc.kis.v2.scr.kaspersky-labs.com ... C1/main.js" charset="UTF-8"></script><script src="/mchp.js" type="text/javascript"></script>
</head>
<body>
<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" alt="Technoflame" /></div>
<div id="title"><div class="right">TCNET Boiler Controller Web Access</div><span id="hello"> </span></div>
<div id="menu">
<a href="/index.htm">Status</a>
<a href="/tsetup.htm">Temperature Setup</a>
<a href="/wtmon.htm">Week Timer Setup</a>
<!-- <a href="/errlog.htm">Error Log</a> -->
<a href="/protect/config.htm">Network Configuration</a>
<a href="/protect/admin.htm">Administration</a>
</div>
<div id="content">
<h1>Welcome!</h1>
<p>Thank you for choosing Technoflame TCNET Boiler Controller.</p>
<p>Current status of your boiler:</p>
<div id="ignition_error" style="display:none"><p class="error">Error: Ignition failed.</p></div>
<div id="nofuel_error" style="display:none"><p class="error">Error: Out of pellets.</p></div>
<div id="overtemp_error" style="display:none"><p class="error">Error: Overtemperature detected.</p></div>
<div id="overcurrent_error" style="display:none"><p class="error">Error: Overcurrent detected.</p></div>
<div id="backburn_error" style="display:none"><p class="error">Error: Back burning to auger!.</p></div>
<div id="status">
<div id="loading" style="display:none"><p class="error">Error: Network connection lost.</p></div>
<div id="display">
<p>Temperatures:<br /></p>
<p>Building Heating: <span id="btemp" style="font-weight:normal">?</span>°C</p>
<p>Utility Water: <span id="utemp" style="font-weight:normal">?</span>°C</p>
<p>Outside Temp: <span id="otemp" style="font-weight:normal">?</span>°C</p>
<p>Flue Temp: <span id="ftemp" style="font-weight:normal">?</span>°C</p>
<p>Output Power: <span id="opwr" style="font-weight:normal">?</span>kW</p>
<p>CPU Load: <span id="loop0" style="font-weight:normal">?</span>%</p>
<p>Outputs:<br />
<span class="leds">
<table width="190" border="0" cellpadding="0" cellspacing="0">
<tr>
<td width="10"><span id="led0">•</span></td>
<td width="173">System On</td>
</tr>
<tr>
<td width="10"><span id="led1">•</span></td>
<td>Auger</td>
</tr>
<tr>
<td width="10"><span id="led2">•</span></td>
<td>Clean</td>
</tr>
<tr>
<td width="10"><span id="led3">•</span></td>
<td>Refill</td>
</tr>
<tr>
<td width="10"><span id="led4">•</span></td>
<td>Util. Water Pump</td>
</tr>
<tr>
<td width="10"><span id="led5">•</span></td>
<td>Building Heating Pump</td>
</tr>
<tr>
<td width="10"><span id="led6">•</span></td>
<td>Ignition</td>
</tr>
<tr>
<td width="10"><span id="led7">•</span></td>
<td>Fan</td>
</tr>
</table></span></p>
</div>
</div>
<p>Firmware: v5.25</p>
</div>
<script type="text/javascript">
<!--
// Parses the xmlResponse from status.xml and updates the status box
function updateStatus(xmlData) {
// Check if a timeout occurred
if(!xmlData)
{
document.getElementById('display').style.display = 'none';
document.getElementById('loading').style.display = 'inline';
return;
}
document.getElementById('ignition_error').style.display = (getXMLValue(xmlData, 'err0') == '1') ? 'inline' : 'none';
document.getElementById('nofuel_error').style.display = (getXMLValue(xmlData, 'err1') == '1') ? 'inline' : 'none';
document.getElementById('overtemp_error').style.display = (getXMLValue(xmlData, 'err2') == '1') ? 'inline' : 'none';
document.getElementById('overcurrent_error').style.display = (getXMLValue(xmlData, 'err3') == '1') ? 'inline' : 'none';
document.getElementById('backburn_error').style.display = (getXMLValue(xmlData, 'err4') == '1') ? 'inline' : 'none';
// Make sure we're displaying the status display
document.getElementById('display').style.display = 'inline';
document.getElementById('loading').style.display = 'none';
// Loop over all the LEDs
for(i = 0; i < 8; i++)
document.getElementById('led' + i).style.color = (getXMLValue(xmlData, 'led' + i) == '1') ? '#090' : '#ddd';
// Loop over all the buttons
//for(i = 0; i < 4; i++)
// document.getElementById('btn' + i).innerHTML = (getXMLValue(xmlData, 'btn' + i) == 'up') ? 'OFF' : 'ON';
// Update the POT value
document.getElementById('btemp').innerHTML = getXMLValue(xmlData, 'btemp');
document.getElementById('utemp').innerHTML = getXMLValue(xmlData, 'utemp');
document.getElementById('otemp').innerHTML = getXMLValue(xmlData, 'otemp');
document.getElementById('ftemp').innerHTML = getXMLValue(xmlData, 'ftemp');
document.getElementById('opwr').innerHTML = getXMLValue(xmlData, 'pwr');
document.getElementById('loop0').innerHTML = getXMLValue(xmlData, 'debug');
}
setTimeout("newAJAXCommand('status.xml', updateStatus, true)",2000);
//-->
</script>
<div class="spacer"> </div>
<div id="footer">Copyright © 1999-2012 All rights reserved.<br>Developed by: Nusret Suzme © 2010 </div>
</div></div></div></div></div>
</body>
</html>
I hope you can use this for something