I cannot find the right selectors for the first table nore i do understand to read the other data of the second pages:
Need all datas from this page i a sensor:
…
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>BENNING-01 TLS 13.3 - aktuelle Messwerte</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="Stylesheet" type="text/css" href="css/JQueryUI/jquery-ui.custom.css" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
</head>
<body>
<!--[if lte IE 6]>
<div id="ie-message">
Ihr Browser is veraltet, bitte updaten Sie ihn. Wir empfehlen die Nutzung von <a href="http://www.getfirefox.com" target="_new">Mozilla Firefox</a>.
Einige Ansichten und Funktionen werden nicht funktionieren.
</div>
<![endif]-->
<script type="text/JavaScript" src="js/jquery.js"></script>
<script type="text/JavaScript" src="js/jqueryBlockUi.js"></script>
<script type="text/JavaScript" src="js/jquery-ui.custom.js"></script>
<script type="text/JavaScript" src="js/benning.js"></script>
<script language="javascript" type="text/javascript" src="js/gauge.min.js"></script>
<script language="javascript" type="text/javascript" src="js/jquery.gauge.min.js"></script>
<!--[if lte IE 8]><script language="javascript" type="text/javascript" src="js/excanvas.min.js"></script><![endif]-->
<script type="text/JavaScript">
// depending on the system type, show 1 or 3 phases
var showL1 = true;
var showL2 = true;
var showL3 = true;
var maxPowerPerPhase = 0;
var channelToUpdate = 0;
function initPageOnLoad()
{
if( 6 == 1 )
{
showL1 = true;
showL2 = false;
showL3 = false;
$("#AC_L2_ROW_P").hide();
$("#AC_L2_ROW_U").hide();
$("#AC_L3_ROW_P").hide();
$("#AC_L3_ROW_U").hide();
maxPowerPerPhase = 13000 ;
$('table.contentTable tbody tr').filter(":visible").filter(":odd").css("background-color","#C4CFDB");
$('table.contentTable tbody tr').filter(":visible").filter(":even").css("background-color","#FFFFFF");
}
else
{
showL1 = true;
showL2 = true;
showL3 = true;
maxPowerPerPhase = 13000 / 3;
}
initGauges();
reloadPage();
// Init table:
$("#AC_TOT_P").html( (0).toFixed(0) + ' ' + 'W' );
$("#AC_L1_P").html( (0).toFixed(0) + ' ' + 'W' );
$("#AC_L2_P").html( (0).toFixed(0) + ' ' + 'W' );
$("#AC_L3_P").html( (0).toFixed(0) + ' ' + 'W' );
$("#AC_L1_U").html( (0.00).toFixed(1) + ' ' + 'V' );
$("#AC_L2_U").html( (0.00).toFixed(1) + ' ' + 'V' );
$("#AC_L3_U").html( (0.00).toFixed(1) + ' ' + 'V' );
$("#AC_L1_I").html( (0.000).toFixed(1) + ' ' + 'A' );
$("#AC_L2_I").html( (0.000).toFixed(1) + ' ' + 'A' );
$("#AC_L3_I").html( (0.000).toFixed(1) + ' ' + 'A' );
// reload page every 10 minutes
setTimeout( "window.location.reload();", 600*1000 );
}
function initGauges()
{
var options1 = {
value: 0,
colorOfCenterCircleFill: "#5E7796",
colorOfCenterCircleStroke: "#5E7796",
colorOfPointerFill: "#ADBBCA",
colorOfPointerStroke: "#5E7796",
label: 'L1',
unitsLabel: 'W',
min: 0,
max: ( maxPowerPerPhase )
};
if( showL1 )
{
$("#gaugeL1Power").gauge( options1 );
$("#gaugeL1Power").gauge('setValue', 0 );
}
var options2 = {
value: 0,
colorOfCenterCircleFill: "#5E7796",
colorOfCenterCircleStroke: "#5E7796",
colorOfPointerFill: "#ADBBCA",
colorOfPointerStroke: "#5E7796",
label: 'L2',
unitsLabel: 'W',
min: 0,
max: maxPowerPerPhase
};
if( showL2 )
{
$("#gaugeL2Power").gauge( options2 );
$("#gaugeL2Power").gauge('setValue', 0 );
}
var options3 = {
value: 0,
colorOfCenterCircleFill: "#5E7796",
colorOfCenterCircleStroke: "#5E7796",
colorOfPointerFill: "#ADBBCA",
colorOfPointerStroke: "#5E7796",
label: 'L3',
unitsLabel: 'W',
min: 0,
max: maxPowerPerPhase
};
if( showL3 )
{
$("#gaugeL3Power").gauge( options3 );
$("#gaugeL3Power").gauge('setValue', 0 );
}
}
function reloadPage()
{
// silent ajax requests
$("#PageContainer").unbind( "ajaxSend" );
$("#PageContainer").unbind( "ajaxStop" );
$("#PageContainer").unbind( "ajaxError" );
switch( channelToUpdate )
{
case 0:
var entry = dbAccessGetAsync( 11365, resultCallback );
break;
case 1:
var entry = dbAccessGetAsync( 11370, resultCallback );
break;
case 2:
var entry = dbAccessGetAsync( 11380, resultCallback );
break;
case 3:
var entry = dbAccessGetAsync( 11390, resultCallback );
break;
case 4:
var entry = dbAccessGetAsync( 11480, resultCallback );
break;
case 5:
var entry = dbAccessGetAsync( 11490, resultCallback );
break;
case 6:
var entry = dbAccessGetAsync( 11500, resultCallback );
break;
case 7:
var entry = dbAccessGetAsync( 11310, resultCallback );
break;
case 8:
var entry = dbAccessGetAsync( 11315, resultCallback );
break;
case 9:
var entry = dbAccessGetAsync( 11320, resultCallback );
break;
default:
channelToUpdate = 0;
break;
}
setTimeout( "reloadPage();", 1000 );
}
function resultCallback( entry )
{
switch( entry.oid )
{
case 11365:
$("#AC_TOT_P").html( (entry.val*entry.factor).toFixed(0) + ' ' + entry.unit );
break;
case 11370:
$("#AC_L1_P").html( (entry.val*entry.factor).toFixed(0) + ' ' + entry.unit );
$("#gaugeL1Power").gauge('setValue', parseInt(entry.val*entry.factor) );
break;
case 11380:
$("#AC_L2_P").html( (entry.val*entry.factor).toFixed(0) + ' ' + entry.unit );
$("#gaugeL2Power").gauge('setValue', parseInt(entry.val*entry.factor) );
break;
case 11390:
$("#AC_L3_P").html( (entry.val*entry.factor).toFixed(0) + ' ' + entry.unit );
$("#gaugeL3Power").gauge('setValue', parseInt(entry.val*entry.factor) );
break;
case 11480:
$("#AC_L1_U").html( (entry.val*entry.factor).toFixed(1) + ' ' + entry.unit );
break;
case 11490:
$("#AC_L2_U").html( (entry.val*entry.factor).toFixed(1) + ' ' + entry.unit );
break;
case 11500:
$("#AC_L3_U").html( (entry.val*entry.factor).toFixed(1) + ' ' + entry.unit );
break;
case 11310:
$("#AC_L1_I").html( (entry.val*entry.factor).toFixed(1) + ' ' + entry.unit );
break;
case 11315:
$("#AC_L2_I").html( (entry.val*entry.factor).toFixed(1) + ' ' + entry.unit );
break;
case 11320:
$("#AC_L3_I").html( (entry.val*entry.factor).toFixed(1) + ' ' + entry.unit );
break;
default:
channelToUpdate = 0;
break;
}
channelToUpdate++;
}
</script>
<div id="PageContainer">
<!-- first line: header -->
<!-- open header -->
<div id="Header">
<h1>
BENNING-01 TLS 13.3
</h1>
<a href="http://www.portal.benning-solar.com"> <img src="images/logo.jpg" alt="logo"></a>
</div>
<!-- close header -->
<div id="MenuAndContent">
<!-- Navigation menu -->
<div id="Menu">
<ul id="NavMenu" >
<!-- open menu -->
<li class="NavGroupName">Betriebsdaten</li>
<li>
<ul>
<a href="Dashboard.htm"><li>Übersicht</li></a>
<a href="MeasurementsInput.htm"><li>DC Eingang</li></a>
<a href="MeasurementsOutput.htm"><li>AC Ausgang</li></a>
<a href="Archive.htm"><li>Verlauf</li></a>
</ul>
</li>
<li class="NavGroupName">Sitzung</li>
<li>
<ul>
<a href="Login.htm"><li>Anmelden</li></a>
</ul>
</li>
</ul>
<!-- close menu -->
</div> <!-- id="Menu" -->
<div id="ContentAndBreadcrumb">
<div id="BreadcrumbNav">
Betriebsdaten > AC Ausgang
</div> <!-- id=BreadcrumbNav -->
<div id="Content">
<div class="Widget3Gauge">
<div class="WidgetHeader">AC Ausgang</div>
<div class="WidgetBody3Gauge" >
<div>
<canvas id="gaugeL1Power" width="125" height="125"></canvas>
<canvas id="gaugeL2Power" width="125" height="125"></canvas>
<canvas id="gaugeL3Power" width="125" height="125"></canvas>
</div>
</div> <!-- WidgetBody -->
</div> <!-- Widget -->
<table class="contentTable">
<thead>
<tr><th>Bezeichnung</th><th>Wert</th></tr>
</thead>
<tbody>
<tr id="AC_TOT_ROW_P"><td>AC Leistung gesamt</td>
<td id="AC_TOT_P"></td></tr>
<tr id="AC_L1_ROW_P"><td>AC Leistung L1</td>
<td id="AC_L1_P"></td></tr>
<tr id="AC_L2_ROW_P"><td>AC Leistung L2</td>
<td id="AC_L2_P"></td></tr>
<tr id="AC_L3_ROW_P"><td>AC Leistung L3</td>
<td id="AC_L3_P"></td></tr>
<tr id="AC_L1_ROW_U"><td>AC Spannung L1</td>
<td id="AC_L1_U"></td></tr>
<tr id="AC_L2_ROW_U"><td>AC Spannung L2</td>
<td id="AC_L2_U"></td></tr>
<tr id="AC_L3_ROW_U"><td>AC Spannung L3</td>
<td id="AC_L3_U"></td></tr>
<tr id="AC_L1_ROW_I"><td>AC Strom L1</td>
<td id="AC_L1_I"></td></tr>
<tr id="AC_L2_ROW_I"><td>AC Strom L2</td>
<td id="AC_L2_I"></td></tr>
<tr id="AC_L3_ROW_I"><td>AC Strom L3</td>
<td id="AC_L3_I"></td></tr>
</tbody>
</table>
</div><!-- id=Content -->
</div> <!-- id="ContentAndBreadcrumb" -->
</div> <!-- id="MenuAndContent" -->
<div id="Footer" >
Copyright (C) Benning GmbH 2015. Alle Rechte vorbehalten.
</div> <!-- id=Footer -->
<!--[if IE]>
<script>
$('div#Content tr:nth-child(even)').addClass('evenDts');
$('div#Content input[type="file"]').addClass('firmware');
</script>
<![endif]-->
</div> <!-- id=PageContainer -->
</body>
</html>
and this site:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
"http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<title>BENNING-01 TLS 13.3 - aktuelle Messwerte</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" type="text/css" href="css/style.css">
<link rel="Stylesheet" type="text/css" href="css/JQueryUI/jquery-ui.custom.css" />
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
</head>
<body>
<!--[if lte IE 6]>
<div id="ie-message">
Ihr Browser is veraltet, bitte updaten Sie ihn. Wir empfehlen die Nutzung von <a href="http://www.getfirefox.com" target="_new">Mozilla Firefox</a>.
Einige Ansichten und Funktionen werden nicht funktionieren.
</div>
<![endif]-->
<script type="text/JavaScript" src="js/jquery.js"></script>
<script type="text/JavaScript" src="js/jqueryBlockUi.js"></script>
<script type="text/JavaScript" src="js/jquery-ui.custom.js"></script>
<script type="text/JavaScript" src="js/benning.js"></script>
<script language="javascript" type="text/javascript" src="js/gauge.min.js"></script>
<script language="javascript" type="text/javascript" src="js/jquery.gauge.min.js"></script>
<!--[if lte IE 8]><script language="javascript" type="text/javascript" src="js/excanvas.min.js"></script><![endif]-->
<script type="text/JavaScript">
var showMpp1 = false;
var showMpp2 = false;
var showMpp3 = false;
var channelToUpdate = 0;
function initPageOnLoad()
{
var wiringMode = 0;
switch( wiringMode )
{
default:
case 0:
showMpp1 = true;
showMpp2 = true;
showMpp3 = true;
$('table.contentTable tbody tr').filter(":visible").filter(":odd").css("background-color", "#C4CFDB");
$('table.contentTable tbody tr').filter(":visible").filter(":even").css("background-color","#FFFFFF");
break;
case 1:
showMpp1 = true;
showMpp2 = false;
showMpp3 = true;
$("#MPP2_ROW_U").hide();
$("#MPP2_ROW_I").hide();
$("#MPP2_ROW_P").hide();
$('table.contentTable tbody tr').filter(":visible").filter(":odd").css("background-color", "#C4CFDB");
$('table.contentTable tbody tr').filter(":visible").filter(":even").css("background-color","#FFFFFF");
break;
case 2:
showMpp1 = true;
showMpp2 = false;
showMpp3 = false;
$("#MPP2_ROW_U").hide();
$("#MPP2_ROW_I").hide();
$("#MPP2_ROW_P").hide();
$("#MPP3_ROW_U").hide();
$("#MPP3_ROW_I").hide();
$("#MPP3_ROW_P").hide();
$('table.contentTable tbody tr').filter(":visible").filter(":odd").css("background-color", "#C4CFDB");
$('table.contentTable tbody tr').filter(":visible").filter(":even").css("background-color","#FFFFFF");
break;
}
var numTrackers = 3;
switch( numTrackers )
{
case 1: // 1 Tracker
showMpp2 = false;
showMpp3 = false;
$("#MPP2_ROW_U").hide();
$("#MPP2_ROW_I").hide();
$("#MPP2_ROW_P").hide();
$("#MPP3_ROW_U").hide();
$("#MPP3_ROW_I").hide();
$("#MPP3_ROW_P").hide();
break;
case 2: // 2 Trackers
showMpp3 = false;
$("#MPP3_ROW_U").hide();
$("#MPP3_ROW_I").hide();
$("#MPP3_ROW_P").hide();
break;
case 3:
default:
// hide nothing
break;
}
$('table.contentTable tbody tr').filter(":visible").filter(":odd").css("background-color", "#C4CFDB");
$('table.contentTable tbody tr').filter(":visible").filter(":even").css("background-color","#FFFFFF");
initGauges();
reloadPage();
$("#MPP_TOT_P").html( (0).toFixed(0) + ' ' + 'W' );
$("#MPP1_P").html( (0).toFixed(0) + ' ' + 'W' );
$("#MPP2_P").html( (0).toFixed(0) + ' ' + 'W' );
$("#MPP3_P").html( (0).toFixed(0) + ' ' + 'W' );
$("#MPP1_U").html( (0.00).toFixed(1) + ' ' + 'V' );
$("#MPP2_U").html( (0.00).toFixed(1) + ' ' + 'V' );
$("#MPP3_U").html( (0.00).toFixed(1) + ' ' + 'V' );
$("#MPP1_I").html( (0.000).toFixed(1) + ' ' + 'A' );
$("#MPP2_I").html( (0.000).toFixed(1) + ' ' + 'A' );
$("#MPP3_I").html( (0.000).toFixed(1) + ' ' + 'A' );
// reload page every 10 minutes
setTimeout( "window.location.reload();", 600*1000 );
}
function initGauges()
{
var options1 = {
value: 0,
colorOfCenterCircleFill: "#5E7796",
colorOfCenterCircleStroke: "#5E7796",
colorOfPointerFill: "#ADBBCA",
colorOfPointerStroke: "#5E7796",
label: 'MPPT 1',
unitsLabel: 'W',
min: 0,
max: 5750.00 * 1.2
};
if( showMpp1 )
{
$("#gaugeMpp1Power").gauge( options1 );
$("#gaugeMpp1Power").gauge('setValue', 0 );
}
var options2 = {
value: 0,
colorOfCenterCircleFill: "#5E7796",
colorOfCenterCircleStroke: "#5E7796",
colorOfPointerFill: "#ADBBCA",
colorOfPointerStroke: "#5E7796",
label: 'MPPT 2',
unitsLabel: 'W',
min: 0,
max: 5750.00 * 1.2
};
if( showMpp2 )
{
$("#gaugeMpp2Power").gauge( options2 );
$("#gaugeMpp2Power").gauge('setValue', 0 );
}
var options3 = {
value: 0,
colorOfCenterCircleFill: "#5E7796",
colorOfCenterCircleStroke: "#5E7796",
colorOfPointerFill: "#ADBBCA",
colorOfPointerStroke: "#5E7796",
label: 'MPPT 3',
unitsLabel: 'W',
min: 0,
max: 3750.00 * 1.2
};
if( showMpp3 )
{
$("#gaugeMpp3Power").gauge( options3 );
$("#gaugeMpp3Power").gauge('setValue', 0 );
}
}
function reloadPage()
{
// silent ajax requests
$("#PageContainer").unbind( "ajaxSend" );
$("#PageContainer").unbind( "ajaxStop" );
$("#PageContainer").unbind( "ajaxError" );
switch( channelToUpdate )
{
case 0:
dbAccessGetAsync( 11400, ajaxResultCallback );
break;
case 1:
dbAccessGetAsync( 11410, ajaxResultCallback );
break;
case 2:
dbAccessGetAsync( 11420, ajaxResultCallback );
break;
case 3:
dbAccessGetAsync( 11395, ajaxResultCallback );
break;
case 4:
dbAccessGetAsync( 11570, ajaxResultCallback );
break;
case 5:
dbAccessGetAsync( 11580, ajaxResultCallback );
break;
case 6:
dbAccessGetAsync( 11590, ajaxResultCallback );
break;
case 7:
dbAccessGetAsync( 11340, ajaxResultCallback );
break;
case 8:
dbAccessGetAsync( 11350, ajaxResultCallback );
break;
case 9:
dbAccessGetAsync( 11360, ajaxResultCallback );
channelToUpdate = -1;
break;
default:
channelToUpdate = 0;
break;
}
setTimeout( "reloadPage();", 1000 );
}
function ajaxResultCallback( data )
{
switch( data.oid )
{
case 11400:
$("#gaugeMpp1Power").gauge('setValue', parseInt(data.val) );
$("#MPP1_P").html( (data.val*data.factor).toFixed(0) + ' ' + data.unit );
break;
case 11410:
$("#gaugeMpp2Power").gauge('setValue', parseInt(data.val) );
$("#MPP2_P").html( (data.val*data.factor).toFixed(0) + ' ' + data.unit );
break;
case 11420:
$("#gaugeMpp3Power").gauge('setValue', parseInt(data.val) );
$("#MPP3_P").html( (data.val*data.factor).toFixed(0) + ' ' + data.unit );
break;
case 11395:
$("#MPP_TOT_P").html( (data.val*data.factor).toFixed(0) + ' ' + data.unit );
break;
case 11570:
$("#MPP1_U").html( (data.val*data.factor).toFixed(1) + ' ' + data.unit );
break;
case 11580:
$("#MPP2_U").html( (data.val*data.factor).toFixed(1) + ' ' + data.unit );
break;
case 11590:
$("#MPP3_U").html( (data.val*data.factor).toFixed(1) + ' ' + data.unit );
break;
case 11340:
$("#MPP1_I").html( (data.val*data.factor).toFixed(1) + ' ' + data.unit );
break;
case 11350:
$("#MPP2_I").html( (data.val*data.factor).toFixed(1) + ' ' + data.unit );
break;
case 11360:
$("#MPP3_I").html( (data.val*data.factor).toFixed(1) + ' ' + data.unit );
break;
default:
channelToUpdate = 0;
break;
}
channelToUpdate++;
}
</script>
<div id="PageContainer">
<!-- first line: header -->
<!-- open header -->
<div id="Header">
<h1>
BENNING-01 TLS 13.3
</h1>
<a href="http://www.portal.benning-solar.com"> <img src="images/logo.jpg" alt="logo"></a>
</div>
<!-- close header -->
<div id="MenuAndContent">
<!-- Navigation menu -->
<div id="Menu">
<ul id="NavMenu" >
<!-- open menu -->
<li class="NavGroupName">Betriebsdaten</li>
<li>
<ul>
<a href="Dashboard.htm"><li>Übersicht</li></a>
<a href="MeasurementsInput.htm"><li>DC Eingang</li></a>
<a href="MeasurementsOutput.htm"><li>AC Ausgang</li></a>
<a href="Archive.htm"><li>Verlauf</li></a>
</ul>
</li>
<li class="NavGroupName">Sitzung</li>
<li>
<ul>
<a href="Login.htm"><li>Anmelden</li></a>
</ul>
</li>
</ul>
<!-- close menu -->
</div> <!-- id="Menu" -->
<div id="ContentAndBreadcrumb">
<div id="BreadcrumbNav">
Betriebsdaten > DC Eingang
</div> <!-- id=BreadcrumbNav -->
<div id="Content">
<div class="Widget3Gauge">
<div class="WidgetHeader">DC Eingang</div>
<div class="WidgetBody3Gauge" >
<div>
<canvas id="gaugeMpp1Power" width="125" height="125"></canvas>
<canvas id="gaugeMpp2Power" width="125" height="125"></canvas>
<canvas id="gaugeMpp3Power" width="125" height="125"></canvas>
</div>
</div> <!-- WidgetBody -->
</div> <!-- Widget -->
<table class="contentTable">
<thead>
<tr><th>Bezeichnung</th><th>Wert</th></tr>
</thead>
<tbody>
<tr id="MPP_TOT_ROW_P"><td>DC Leistung gesamt</td>
<td id="MPP_TOT_P"></td></tr>
<tr id="MPP1_ROW_P"><td>DC Leistung MPP Tracker 1</td>
<td id="MPP1_P"></td></tr>
<tr id="MPP2_ROW_P"><td>DC Leistung MPP Tracker 2</td>
<td id="MPP2_P"></td></tr>
<tr id="MPP3_ROW_P"><td>DC Leistung MPP Tracker 3</td>
<td id="MPP3_P"></td></tr>
<tr id="MPP1_ROW_U"><td>MPP Tracker 1 DC Spannung</td>
<td id="MPP1_U"></td></tr>
<tr id="MPP2_ROW_U"><td>MPP Tracker 2 DC Spannung</td>
<td id="MPP2_U"></td></tr>
<tr id="MPP3_ROW_U"><td>MPP Tracker 3 DC Spannung</td>
<td id="MPP3_U"></td></tr>
<tr id="MPP1_ROW_I"><td>DC Strom MPP Tracker 1</td>
<td id="MPP1_I"></td></tr>
<tr id="MPP2_ROW_I"><td>DC Strom MPP Tracker 2</td>
<td id="MPP2_I"></td></tr>
<tr id="MPP3_ROW_I"><td>DC Strom MPP Tracker 3</td>
<td id="MPP3_I"></td></tr>
</tbody>
</table>
</div><!-- id=Content -->
</div> <!-- id="ContentAndBreadcrumb" -->
</div> <!-- id="MenuAndContent" -->
<div id="Footer" >
Copyright (C) Benning GmbH 2015. Alle Rechte vorbehalten.
</div> <!-- id=Footer -->
<!--[if IE]>
<script>
$('div#Content tr:nth-child(even)').addClass('evenDts');
$('div#Content input[type="file"]').addClass('firmware');
</script>
<![endif]-->
</div> <!-- id=PageContainer -->
</body>
</html>