<div class="text-center"><h1>TODAY'S TOTALS</h1></div>
<div class='row overview'>
  <div class='col-xs-4 text-center'>
    <h2>Percent Run</h2>
    <div class="gauge-box">
              <div data-labelheight="10" style="height: 170px; background: transparent; margin: 0 auto;" id="gauge1" data-chart="solidgauge" data-nodename="poc.dt_percent_run" data-units="%" data-min="0" data-max="100" data-colors="0.1:#DF5353,0.5:#DDDF0D,0.9:#55BF3B"></div>
              <span data-timeupdate="dt_percent_run"><%= channels["poc.dt_percent_run"].timestamp %></span>
          </div>
  </div>
  <div class='col-xs-4 text-center'>
    <h2>Average Speed</h2>
    <div class="gauge-box">
              <div data-labelheight="10" style="height: 170px; background: transparent; margin: 0 auto;" id="gauge2" data-chart="solidgauge" data-nodename="poc.dt_average_spm" data-units="SPM" data-min="0" data-max="20" data-colors="0.1:#DF5353,0.5:#DDDF0D,0.9:#55BF3B" data-decimals="2"></div>
              <span data-timeupdate="dt_average_spm"><%= channels["poc.dt_average_spm"].timestamp %></span>
          </div>
  </div>
  <div class='col-xs-4 text-center'>
    <h2>Calculated Production</h2>
    <div class="gauge-box">
              <div data-labelheight="10" style="height: 170px; background: transparent; margin: 0 auto;" id="gauge3" data-chart="solidgauge" data-nodename="poc.dt_calculated_production" data-units="BBL" data-min="0" data-max="1000" data-colors="0.1:#DF5353,0.5:#DDDF0D,0.9:#55BF3B"></div>
              <span data-timeupdate="dt_calculated_production"><%= channels["poc.dt_calculated_production"].timestamp %></span>
          </div>
  </div>
  <div class='col-xs-4 text-center'>
    <h2>Projected Production</h2>
    <div class="gauge-box">
              <div data-labelheight="10" style="height: 170px; background: transparent; margin: 0 auto;" id="gauge4" data-chart="solidgauge" data-nodename="poc.dt_projected_production" data-units="HP" data-min="0" data-max="1000" data-colors="0.1:#DF5353,0.5:#DDDF0D,0.9:#55BF3B"></div>
              <span data-timeupdate="dt_projected_production"><%= channels["poc.dt_projected_production"].timestamp %></span>
          </div>
  </div>
  <div class='col-xs-4 text-center'>
    <h2>Pump Intake Pressure</h2>
    <div class="gauge-box">
              <div data-labelheight="10" style="height: 170px; background: transparent; margin: 0 auto;" id="gauge5" data-chart="solidgauge" data-nodename="poc.dt_pump_intake_pressure" data-units="PSI" data-min="0" data-max="2000" data-colors="0.1:#DF5353,0.5:#DDDF0D,0.9:#55BF3B"></div>
              <span data-timeupdate="dt_pump_intake_pressure"><%= channels["poc.dt_pump_intake_pressure"].timestamp %></span>
          </div>
  </div>
  <div class='col-xs-4 text-center'>
    <h2>Energy Consumed</h2>
    <div class="gauge-box">
              <div data-labelheight="10" style="height: 170px; background: transparent; margin: 0 auto;" id="gauge6" data-chart="solidgauge" data-nodename="poc.dt_kWh" data-units="kWh" data-min="0" data-max="200" data-colors="0.1:#DF5353,0.5:#DDDF0D,0.9:#55BF3B"></div>
              <span data-timeupdate="dt_kWh"><%= channels["poc.dt_kWh"].timestamp %></span>
          </div>
  </div>
</div>


<!-- TOTALS -->
<div class="text-center"><h1>LATEST STROKE</h1></div>
<div class='row overview'>
  <div class='col-xs-4 text-center'>
    <h2>Pump Fillage</h2>
    <div class="gauge-box">
              <div data-labelheight="10" style="height: 170px; background: transparent; margin: 0 auto;" id="gauge7" data-chart="solidgauge" data-nodename="poc.fillage_percent" data-units="%" data-min="0" data-max="100" data-colors="0.1:#DF5353,0.5:#DDDF0D,0.9:#55BF3B"></div>
              <span data-timeupdate="fillage_percent"><%= channels["poc.fillage_percent"].timestamp %></span>
          </div>
  </div>
  <div class='col-xs-4 text-center'>
    <h2>Fluid Above Pump</h2>
    <div class="gauge-box">
              <div data-labelheight="10" style="height: 170px; background: transparent; margin: 0 auto;" id="gauge8" data-chart="solidgauge" data-nodename="poc.fluid_above_pump" data-units="ft." data-min="0" data-max="5000" data-colors="0.1:#DF5353,0.5:#DDDF0D,0.9:#55BF3B"></div>
              <span data-timeupdate="fluid_above_pump"><%= channels["poc.fluid_above_pump"].timestamp %></span>
          </div>
  </div>
  <div class='col-xs-4 text-center'>
    <h2>Speed</h2>
    <div class="gauge-box">
              <div data-labelheight="10" style="height: 170px; background: transparent; margin: 0 auto;" id="gauge9" data-chart="solidgauge" data-nodename="poc.SPM" data-units="SPM" data-min="0" data-max="20" data-colors="0.1:#DF5353,0.5:#DDDF0D,0.9:#55BF3B"></div>
              <span data-timeupdate="SPM"><%= channels["poc.SPM"].timestamp %></span>
          </div>
  </div>
  <div class='col-xs-4 text-center'>
    <h2>Polished Rod HP</h2>
    <div class="gauge-box">
              <div data-labelheight="10" style="height: 170px; background: transparent; margin: 0 auto;" id="gauge10" data-chart="solidgauge" data-nodename="poc.polished_rod_hp" data-units="HP" data-min="0" data-max="50" data-colors="0.1:#DF5353,0.5:#DDDF0D,0.9:#55BF3B"></div>
              <span data-timeupdate="polished_rod_hp"><%= channels["poc.polished_rod_hp"].timestamp %></span>
          </div>
  </div>
  <div class='col-xs-4 text-center'>
    <h2>Pump HP</h2>
    <div class="gauge-box">
              <div data-labelheight="10" style="height: 170px; background: transparent; margin: 0 auto;" id="gauge11" data-chart="solidgauge" data-nodename="poc.pump_hp" data-units="HP" data-min="0" data-max="50" data-colors="0.1:#DF5353,0.5:#DDDF0D,0.9:#55BF3B"></div>
              <span data-timeupdate="pump_hp"><%= channels["poc.pump_hp"].timestamp %></span>
          </div>
  </div>
  <div class='col-xs-4 text-center'>
    <h2>Downhole Fluid Load</h2>
    <div class="gauge-box">
              <div data-labelheight="10" style="height: 170px; background: transparent; margin: 0 auto;" id="gauge12" data-chart="solidgauge" data-nodename="poc.downhole_fluid_load" data-units="lbs." data-min="0" data-max="10000" data-colors="0.1:#DF5353,0.5:#DDDF0D,0.9:#55BF3B"></div>
              <span data-timeupdate="downhole_fluid_load"><%= channels["poc.downhole_fluid_load"].timestamp %></span>
          </div>
  </div>
</div>



<div class="col-xs-12" style="padding: 1em 0;">
  <div class="progress" style="margin:1em 5%">
    <div class="progress-bar progress-bar-striped active" id="surface_stroke_length" role="progressbar" aria-valuenow="<%= channels["poc.surface_stroke_length"].value %>" aria-valuemin="0" aria-valuemax="100" style="width: <%= channels["poc.surface_stroke_length"].value %>%;">
      Surface Stroke Length: <%= channels["poc.surface_stroke_length"].value %> in.
    </div>
  </div>

  <div class="progress" style="margin:1em 5%">
    <div class="progress-bar progress-bar-striped active" id="downhole_gross_stroke" role="progressbar" aria-valuenow="<%= channels["poc.downhole_gross_stroke"].value %>" aria-valuemin="0" aria-valuemax="100" style="width: <%= channels["poc.downhole_gross_stroke"].value %>%;">
      Downhole Gross Stroke: <%= channels["poc.downhole_gross_stroke"].value %> in.
    </div>
  </div>

  <div class="progress" style="margin:1em 5%">
    <div class="progress-bar progress-bar-striped active" id="downhole_adjusted_gross_stroke" role="progressbar" aria-valuenow="<%= channels["poc.downhole_adjusted_gross_stroke"].value %>" aria-valuemin="0" aria-valuemax="100" style="width: <%= channels["poc.downhole_adjusted_gross_stroke"].value %>%;">
      Downhole Adjusted Gross Stroke: <%= channels["poc.downhole_adjusted_gross_stroke"].value %> in.
    </div>
  </div>

  <div class="progress" style="margin:1em 5%">
    <div class="progress-bar progress-bar-striped active" id="downhole_net_stroke" role="progressbar" aria-valuenow="<%= channels["poc.downhole_net_stroke"].value %>" aria-valuemin="0" aria-valuemax="100" style="width: <%= channels["poc.downhole_net_stroke"].value %>%;">
      Downhole Net Stroke: <%= channels["poc.downhole_net_stroke"].value %> in.
    </div>
  </div>



<table style="margin-top: 1.5em;" class="table table-striped">
	<thead>
		<tr><th>Measurement</th><th>Value</th></tr>
	</thead>
	<tbody>
		<!-- <tr><td>Well Name</td><td><span data-valueupdate="well_name"><%= channels["poc.well_name"].value %></span></td></tr>
		<tr><td>Fillage Percent</td><td><span data-valueupdate="fillage_percent"><%= channels["poc.fillage_percent"].value %> %</span></td></tr> -->
		<tr><td>Fluid Gradient</td><td><span data-valueupdate="fluid_gradient"><%= channels["poc.fluid_gradient"].value %> lbs/ft</span></td></tr>
		<tr><td>dt</td><td><span data-valueupdate="dt"><%= channels["poc.dt"].value %> sec</span></td></tr>
		<tr><td>Tubing Head Pressure</td><td><span data-valueupdate="tubing_head_pressure"><%= channels["poc.tubing_head_pressure"].value %> PSI</span></td></tr>
		<tr><td>Stuffing Box Friction</td><td><span data-valueupdate="stuffing_box_friction"><%= channels["poc.stuffing_box_friction"].value %> lbs.</span></td></tr>

		<tr><td>Surface Stroke Length</td><td><span data-valueupdate="surface_stroke_length"><%= channels["poc.surface_stroke_length"].value %> in.</span></td></tr>
		<tr><td>Surface Min. Load</td><td><span data-valueupdate="surface_min_load"><%= channels["poc.surface_min_load"].value %> lbs.</span></td></tr>
		<tr><td>Surface Max. Load</td><td><span data-valueupdate="surface_max_load"><%= channels["poc.surface_max_load"].value %> lbs.</span></td></tr>

		<tr><td>Downhole Gross Stroke</td><td><span data-valueupdate="downhole_gross_stroke"><%= channels["poc.downhole_gross_stroke"].value %> in.</span></td></tr>
		<tr><td>Tubing Movement</td><td><span data-valueupdate="tubing_movement"><%= channels["poc.tubing_movement"].value %> in.</span></td></tr>
		<tr><td>Downhole Adjusted Gross Stroke</td><td><span data-valueupdate="downhole_adjusted_gross_stroke"><%= channels["poc.downhole_adjusted_gross_stroke"].value %> in.</span></td></tr>
		<tr><td>Downhole Net Stroke</td><td><span data-valueupdate="downhole_net_stroke"><%= channels["poc.downhole_net_stroke"].value %> in.</span></td></tr>
		<tr><td>Downhole Fluid Load</td><td><span data-valueupdate="downhole_fluid_load"><%= channels["poc.downhole_fluid_load"].value %> lbs.</span></td></tr>

		<tr><td>Polished Rod HP</td><td><span data-valueupdate="polished_rod_hp"><%= channels["poc.polished_rod_hp"].value %> HP</span></td></tr>
		<tr><td>Pump HP</td><td><span data-valueupdate="pump_hp"><%= channels["poc.pump_hp"].value %> HP</span></td></tr>
		<tr><td>Fluid Level</td><td><span data-valueupdate="fluid_above_pump"><%= channels["poc.fluid_above_pump"].value %> ft.</span></td></tr>
	</tbody>

</table>

<style>
    .overview .col-xs-4 {
      position: relative;
      padding: 0.5em;
      padding-bottom: 1.5em;
      border: 1px solid #eee;
      /*margin: 1em 0;*/
    }
    .overview .gauge-box {
      margin-top: -0.25em;
    }
    .overview h2 {
        text-transform: uppercase;
        font-size: 14px;
        color: #666;
        font-weight: 400;
        letter-spacing: 1px;
        z-index: 100;
    }

</style>
