245 lines
8.6 KiB
HTML
245 lines
8.6 KiB
HTML
<div class="row row-flex">
|
|
<div class="col-md-6 box-me entry-top-level" id="pumpdepth">
|
|
<div style="margin-left:15px;">
|
|
<h2>Pump Depth</h2>
|
|
<form class="form-inline">
|
|
<div class="form-group" style="margin-bottom:15px;">
|
|
<label
|
|
class="sr-only"
|
|
for="<%= channels["advvfdipp.pumpdepth"].channelId %>">Pump Depth</label>
|
|
<div class="input-group">
|
|
<input
|
|
class="form-control channel_value"
|
|
type="number"
|
|
step="any"
|
|
value="<%=channels['advvfdipp.pumpdepth'].value %>">
|
|
<div class="input-group-addon">Ft.</div>
|
|
</div>
|
|
</div>
|
|
<hr />
|
|
<a
|
|
href="#"
|
|
data-confirm-message="Are you sure you want to do this?"
|
|
data-refreshpause="1"
|
|
data-command=""
|
|
data-staticsend=1.0
|
|
data-channelId="<%= channels["advvfdipp.pumpdepth"].channelId %>"
|
|
data-techname="<%=channels["advvfdipp.pumpdepth"].techName %>"
|
|
data-name="<%= channels["advvfdipp.pumpdepth"].name%>"
|
|
data-nodechannelcurrentId="<%= channels["advvfdipp.pumpdepth"].nodechannelcurrentId %>"
|
|
id="<%= channels["advvfdipp.pumpdepth"].channelId %>"
|
|
class="btn btn-large btn-theme animated setstatic material-icons">send</a>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div class="text-center"><h1>LIVE VALUES</h1></div>
|
|
<div class='row row-flex'>
|
|
<div class='col-xs-4 text-center box-me'>
|
|
<h2>Intake Pressure</h2>
|
|
<div class="gauge-box">
|
|
<div data-labelheight="10"
|
|
style="height: 170px; background: transparent; margin: 0 auto;"
|
|
id="gauge-intakepressure"
|
|
data-chart="solidgauge"
|
|
data-nodename="advvfdipp.intakepressure"
|
|
data-units="PSI"
|
|
data-min="0"
|
|
data-max="1000"
|
|
data-decimalplaces="2"
|
|
data-colors="0.1:#DF5353,0.5:#DDDF0D,0.9:#55BF3B"
|
|
data-valuefontsize="18px">
|
|
</div>
|
|
<span data-timeupdate="intakepressure"><%= channels["advvfdipp.intakepressure"].timestamp %></span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class='col-xs-4 text-center box-me'>
|
|
<h2>Fluid Level</h2>
|
|
<div class="gauge-box">
|
|
<div
|
|
data-labelheight="10"
|
|
style="height: 170px; background: transparent; margin: 0 auto;"
|
|
id="gauge-fluidlevel"
|
|
data-chart="solidgauge"
|
|
data-nodename="advvfdipp.fluidlevel"
|
|
data-units="ft."
|
|
data-min="0"
|
|
data-max="500"
|
|
data-decimalplaces="2"
|
|
data-colors="0.1:#DF5353,0.5:#DDDF0D,0.9:#55BF3B"
|
|
data-valuefontsize="18px">
|
|
</div>
|
|
<span data-timeupdate="fluidlevel"><%= channels["advvfdipp.fluidlevel"].timestamp %></span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class='col-xs-4 text-center box-me'>
|
|
<h2>Intake Temperature</h2>
|
|
<div class="gauge-box">
|
|
<div
|
|
data-labelheight="10"
|
|
style="height: 170px; background: transparent; margin: 0 auto;"
|
|
id="gauge-intaketemperature"
|
|
data-chart="solidgauge"
|
|
data-nodename="advvfdipp.intaketemperature"
|
|
data-units="°F"
|
|
data-min="0"
|
|
data-max="200"
|
|
data-decimalplaces="2"
|
|
data-colors="0.1:#DF5353,0.5:#DDDF0D,0.9:#55BF3B"
|
|
data-valuefontsize="18px">
|
|
</div>
|
|
<span data-timeupdate="intaketemperature"><%= channels["advvfdipp.intaketemperature"].timestamp %></span>
|
|
</div>
|
|
</div>
|
|
|
|
<div class='col-xs-4 text-center box-me'>
|
|
<h2>Pressure Settings</h2>
|
|
<div class="gauge-box">
|
|
<table class="table">
|
|
<tbody>
|
|
<tr>
|
|
<td>Shutdown Limit</td>
|
|
<td><%= channels["advvfdipp.pressureshutdownlimit"].value %> PSI</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>Startup Limit</td>
|
|
<td><%= channels["advvfdipp.pressurestartuplimit"].value %> PSI</td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<div class='col-xs-4 text-center box-me'>
|
|
<h2>Temperature Settings</h2>
|
|
<div class="gauge-box">
|
|
<table class="table">
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>Shutdown Limit</td>
|
|
<td><%= channels["advvfdipp.temperatureshutdownlimit"].value %> °F</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>Startup Limit</td>
|
|
<td><%= channels["advvfdipp.temperaturestartuplimit"].value %> °F</td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
|
|
<div class='col-xs-4 text-center box-me'>
|
|
<h2>Instrument Settings</h2>
|
|
<div class="gauge-box">
|
|
<table class="table">
|
|
<tbody>
|
|
|
|
<tr>
|
|
<td>Comm. Status</td>
|
|
<td><%= channels["advvfdipp.downholesensorstatus"].value %></td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>Specific Gravity</td>
|
|
<td><%= channels["advvfdipp.fluidspecificgravity"].value %> °F</td>
|
|
</tr>
|
|
|
|
<tr>
|
|
<td>Sensor Height</td>
|
|
<td><%= channels["advvfdipp.sensorheight"].value %> ft.</td>
|
|
</tr>
|
|
|
|
</tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="text-center"><h1>TRENDS</h1></div>
|
|
<div class="row box-me">
|
|
<div class='col-xs-12' style="padding-top: 1em; margin-bottom: 1em;">
|
|
<div class="input-daterange input-group" id="datepicker">
|
|
<input data-chartid="dynamicChart" id="fromDate" data-daysofhistory="7" type="text" class="form-control" name="start">
|
|
<span class="input-group-addon">to</span>
|
|
<input class="form-control" data-chartid="dynamicChart" id="toDate" type="text" name="end">
|
|
<span class='input-group-btn'>
|
|
<a href="#!" data-chartid="dynamicChart" data-otherchartids="statusTimeline" class="btn chart-update btn-theme">Run</a>
|
|
</span>
|
|
</div>
|
|
</div>
|
|
<hr>
|
|
<div class='clearfix col-xs-12' style='height: 300px' id="dynamicChart" data-chart="dynamicchart" data-daysofhistory="7" data-chartlabel="Data" data-ylabel="" data-xlabel="Date" data-units="" data-channelnames="advvfdipp.intakepressure,advvfdipp.intaketemperature,advvfdipp.fluidlevel,advvfdipp.fluidspecificgravity"></div>
|
|
</div>
|
|
|
|
|
|
<style>
|
|
.box-me {
|
|
position: relative;
|
|
padding: 0.5em;
|
|
padding-bottom: 1.5em;
|
|
border: 1px solid #eee;
|
|
/*margin: 1em 0;*/
|
|
}
|
|
.box-me .gauge-box {
|
|
margin-top: -0.25em;
|
|
}
|
|
.box-me h2 {
|
|
text-transform: uppercase;
|
|
font-size: 14px;
|
|
color: #666;
|
|
font-weight: 400;
|
|
letter-spacing: 1px;
|
|
z-index: 100;
|
|
}
|
|
.dynamic-chart-form {
|
|
background-color: whiteSmoke;
|
|
padding: 1em 0.5em;
|
|
margin-top: 1em;
|
|
}
|
|
|
|
.row-flex {
|
|
display: -webkit-box;
|
|
display: -webkit-flex;
|
|
display: -ms-flexbox;
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
}
|
|
.row-flex > [class*='col-'] {
|
|
display: flex;
|
|
flex-direction: column;
|
|
}
|
|
|
|
.mar15 {
|
|
margin: 15px 15px;
|
|
}
|
|
|
|
#systemStatusTimelineContainer h2 {
|
|
text-transform: uppercase;
|
|
font-size: 14px;
|
|
color: #666;
|
|
font-weight: 400;
|
|
letter-spacing: 1px;
|
|
z-index: 100;
|
|
}
|
|
</style>
|
|
|
|
<script>
|
|
$('.channel_value').each(function(topLevel){
|
|
$(this).change(function(){
|
|
var id = "#" + $(this).closest(".entry-top-level").attr('id');
|
|
if (id !== "#undefined"){
|
|
var val = $(id).find('.channel_value').val();
|
|
var tag = $(id).find('.setstatic').attr('data-staticsend', val);
|
|
console.log($(id).find('.setstatic').attr('data-staticsend'));
|
|
}
|
|
});
|
|
});
|
|
|
|
</script> |