From d46e4e0179ac1acc218b705d733b1af95127b7ad Mon Sep 17 00:00:00 2001 From: Patrick McDonagh Date: Mon, 16 May 2016 07:35:08 -0500 Subject: [PATCH] First version of POCloud HTML templates --- POCloud_Driver/HTML/Downhole.html | 58 +- POCloud_Driver/HTML/NodeDetailHeader.html | 6 + POCloud_Driver/HTML/Nodelist.html | 41 + POCloud_Driver/HTML/Overview.html | 100 +- POCloud_Driver/HTML/Permissives.html | 156 +- POCloud_Driver/HTML/Trends.html | 2 +- POCloud_Driver/channels.txt | 2 +- POCloud_Driver/ipp_channels.p | 4053 ++++++++------------- POCloud_Driver/ipp_channels_setup.py | 2 +- POCloud_Driver/parseTags.py | 24 +- POCloud_Driver/writeFunctions.txt | 2 +- 11 files changed, 1573 insertions(+), 2873 deletions(-) create mode 100644 POCloud_Driver/HTML/NodeDetailHeader.html create mode 100644 POCloud_Driver/HTML/Nodelist.html diff --git a/POCloud_Driver/HTML/Downhole.html b/POCloud_Driver/HTML/Downhole.html index a2343f9..5cd66c6 100644 --- a/POCloud_Driver/HTML/Downhole.html +++ b/POCloud_Driver/HTML/Downhole.html @@ -1,4 +1,4 @@ -<% if (channels["vfdipp.downholetoolenabled"].value == 0){ %> +<% if (channels["ipp.downholetoolenabled"].value == 0){ %>

THE DOWNHOLE SENSOR IS DISABLED

@@ -12,24 +12,24 @@

Intake Pressure

-
" data-colors="0.1:#DF5353,0.5:#DDDF0D,0.9:#55BF3B" data-valuefontsize="18px">
- <%= channels["vfdipp.dhintakepressure"].timestamp %> +
" data-colors="0.1:#DF5353,0.5:#DDDF0D,0.9:#55BF3B" data-valuefontsize="18px">
+ <%= channels["ipp.dhintakepressure"].timestamp %>

Fluid Level

-
- <%= channels["vfdipp.dhfluidlevel"].timestamp %> +
+ <%= channels["ipp.dhfluidlevel"].timestamp %>

Intake Temperature

-
- <%= channels["vfdipp.dhintaketemperature"].timestamp %> +
+ <%= channels["ipp.dhintaketemperature"].timestamp %>
@@ -37,15 +37,15 @@

Instrument Status

- <% if(channels["vfdipp.dhdownholestatusint"].value == 0) { %> + <% if(channels["ipp.dhdownholestatusint"].value == 0) { %> OK - <% } else if (channels["vfdipp.dhdownholestatusint"].value == 1){ %> + <% } else if (channels["ipp.dhdownholestatusint"].value == 1){ %> Connecting... - <% } else if (channels["vfdipp.dhdownholestatusint"].value == 2){ %> + <% } else if (channels["ipp.dhdownholestatusint"].value == 2){ %> Open Circuit - <% } else if (channels["vfdipp.dhdownholestatusint"].value == 3){ %> + <% } else if (channels["ipp.dhdownholestatusint"].value == 3){ %> Shorted - <% } else if (channels["vfdipp.dhdownholestatusint"].value == 4){ %> + <% } else if (channels["ipp.dhdownholestatusint"].value == 4){ %> Cannot Decode <% } %>

@@ -59,22 +59,22 @@ Max Pressure (Startup) - <%= channels["vfdipp.dhmaxintakepressurestartup"].value %> + <%= channels["ipp.dhmaxintakepressurestartup"].value %> Max Pressure (Lifetime) - <%= channels["vfdipp.dhmaxintakepressureforever"].value %> + <%= channels["ipp.dhmaxintakepressureforever"].value %> Max Temp. (Startup) - <%= channels["vfdipp.dhmaxintaketemperaturestartup"].value %> + <%= channels["ipp.dhmaxintaketemperaturestartup"].value %> Max Temp. (Lifetime) - <%= channels["vfdipp.dhmaxintaketemperatureforever"].value %> + <%= channels["ipp.dhmaxintaketemperatureforever"].value %> @@ -96,7 +96,7 @@

-
+

CONFIGURATION

@@ -109,7 +109,7 @@ Pressure Shutdown Enabled - <% if (channels["vfdipp.dhpressureshutdownenabled"].value == 1){ %> + <% if (channels["ipp.pressureshutdownenabled"].value == 1){ %> True <% } else { %> False @@ -119,13 +119,13 @@ Pressure Shutdown Limit - <%= channels["vfdipp.dhpressureshutdownlimit"].value %> PSI + <%= channels["ipp.pressureshutdown"].value %> PSI Pressure Restart Enabled - <% if (channels["vfdipp.dhpressurestartupenabled"].value == 1){ %> + <% if (channels["ipp.pressurestartupenabled"].value == 1){ %> True <% } else { %> False @@ -135,7 +135,7 @@ Pressure Startup Limit - <%= channels["vfdipp.dhpressurestartup"].value %> PSI + <%= channels["ipp.pressurestartup"].value %> PSI @@ -151,7 +151,7 @@ Temp. Shutdown Enabled - <% if (channels["vfdipp.dhtempshutdownenabled"].value == 1){ %> + <% if (channels["ipp.tempshutdownenabled"].value == 1){ %> True <% } else { %> False @@ -161,13 +161,13 @@ Temp. Shutdown Limit - <%= channels["vfdipp.dhtempshutdown"].value %> °F + <%= channels["ipp.tempshutdown"].value %> °F Temp. Restart Enabled - <% if (channels["vfdipp.dhtempstartupenabled"].value == 1){ %> + <% if (channels["ipp.tempstartupenabled"].value == 1){ %> True <% } else { %> False @@ -177,7 +177,7 @@ Temp. Startup Limit - <%= channels["vfdipp.dhtempstartuplimit"].value %> °F + <%= channels["ipp.tempstartup"].value %> °F @@ -192,22 +192,22 @@ Number of Channels - <%= channels["vfdipp.dhnumchannels"].value %> + <%= channels["ipp.dhnumchannels"].value %> PSI Rating - <%= channels["vfdipp.dhpsirating"].value %> PSI + <%= channels["ipp.dhpsirating"].value %> PSI Tool Type - <%= channels["vfdipp.dhtooltype"].value %> + <%= channels["ipp.dhtooltype"].value %> Tool Voltage - <%= channels["vfdipp.dhtoolvoltage"].value %> V + <%= channels["ipp.dhtoolvoltage"].value %> V diff --git a/POCloud_Driver/HTML/NodeDetailHeader.html b/POCloud_Driver/HTML/NodeDetailHeader.html new file mode 100644 index 0000000..28262a3 --- /dev/null +++ b/POCloud_Driver/HTML/NodeDetailHeader.html @@ -0,0 +1,6 @@ +
+
+
+
+

<%= node.vanityname %>

+
diff --git a/POCloud_Driver/HTML/Nodelist.html b/POCloud_Driver/HTML/Nodelist.html new file mode 100644 index 0000000..12368b8 --- /dev/null +++ b/POCloud_Driver/HTML/Nodelist.html @@ -0,0 +1,41 @@ + + +
+
+
+
+ +
+ +
+ +
+

<%= node.vanityname %>

+
+
+

Motor Current

+

<%=channels["ipp.e300averagecurrent"].value %> A

+
+ <% if (channels["ipp.downholetoolenabled"].value == 1) { %> +
+

Intake Pressure

+

<%=channels["ipp.dhintakepressure"].value %> PSI

+
+<% } %> +
diff --git a/POCloud_Driver/HTML/Overview.html b/POCloud_Driver/HTML/Overview.html index 24d947b..6d582db 100644 --- a/POCloud_Driver/HTML/Overview.html +++ b/POCloud_Driver/HTML/Overview.html @@ -1,28 +1,15 @@ -
-
-

Motor Speed

-
-
- <%= channels["vfdipp.vfdspeedfdbk"].timestamp %> -
-
-
-
-
-
- -<% if (channels["vfdipp.downholetoolenabled"].value == 1) {%> +<% if (channels["ipp.downholetoolenabled"].value == 1) {%>

Downhole Pressure

-
- <%= channels["vfdipp.dhintakepressure"].timestamp %> +
+ <%= channels["ipp.dhintakepressure"].timestamp %>
-
+
@@ -30,71 +17,60 @@

Downhole Temperature

-
- <%= channels["vfdipp.dhintaketemperature"].timestamp %> +
+ <%= channels["ipp.dhintaketemperature"].timestamp %>
-
+
<% } %> -<% if (channels["vfdipp.tubingpressuretransducerenabled"].value == 1) {%> +
+
+

Average Current

+
+
" data-colors="0.1:#DF5353,0.5:#DDDF0D,0.9:#55BF3B" data-valuefontsize="18px">
+ <%= channels["ipp.e300averagecurrent"].timestamp %> +
+
+
+
+
+
+ +
+
+

Average L-L Voltage

+
+
+ <%= channels["ipp.e300averagellvoltage"].timestamp %> +
+
+
+
+
+
+ +<% if (channels["ipp.pressuretransducerenabled"].value == 1) {%>
-

Downhole Pressure

+

Tubing Pressure

-
- <%= channels["vfdipp.tubingpressure"].timestamp %> +
+ <%= channels["ipp.pressurein"].timestamp %>
-
+
<% } %> -
-
-

Output Current

-
-
" data-colors="0.1:#DF5353,0.5:#DDDF0D,0.9:#55BF3B" data-valuefontsize="18px">
- <%= channels["vfdipp.vfdoutputcurrent"].timestamp %> -
-
-
-
-
-
-
-
-

Output Voltage

-
-
- <%= channels["vfdipp.vfdoutputvoltage"].timestamp %> -
-
-
-
-
-
- -
-
-

DC Bus Voltage

-
-
- <%= channels["vfdipp.vfddcbusvoltage"].timestamp %> -
-
-
-
-
-