From 05477eaffe3e297084272ca8c06dafda7825c6e9 Mon Sep 17 00:00:00 2001 From: Patrick McDonagh Date: Thu, 3 Mar 2016 16:03:46 -0600 Subject: [PATCH] Updates to HTML templates for writing values --- POCloud_Driver/HTML/Configuration.html | 177 +++++++++++++++++++++++++ POCloud_Driver/HTML/Downhole.html | 18 ++- 2 files changed, 192 insertions(+), 3 deletions(-) create mode 100644 POCloud_Driver/HTML/Configuration.html diff --git a/POCloud_Driver/HTML/Configuration.html b/POCloud_Driver/HTML/Configuration.html new file mode 100644 index 0000000..7a11b7f --- /dev/null +++ b/POCloud_Driver/HTML/Configuration.html @@ -0,0 +1,177 @@ +
+
+ +
+

VFD CONFIGURATION

+ +

DOWNHOLE CONFIGURATION

+
+
+

Downhole Sensor Enabled

+ " name="<%= channels["vfdipp.downholetoolenabled"].channelId %>"> +
+
+

Pressure Trip

+
+ + + + + + + + + + + + + + + + + + + + + + + +
Pressure Shutdown Enabled + " name="<%= channels["vfdipp.dhpressureshutdownenabled"].channelId %>"> +
Pressure Shutdown Limit +
+
+
+ " + type="number" step="any" + id="<%= channels["vfdipp.dhpressureshutdownlimit"].channelId %>" + value="<%=channels["vfdipp.dhpressureshutdownlimit"].value %>"> +
+
+
+
Pressure Restart Enabled + " name="<%= channels["vfdipp.dhpressurestartupenabled"].channelId %>"> +
Pressure Startup Limit +
+
+
+ " + type="number" step="any" + id="<%= channels["vfdipp.dhpressurestartup"].channelId %>" + value="<%=channels["vfdipp.dhpressurestartup"].value %>"> +
+
+
+
+
+
+ +
+

Temperature Trip

+
+ + + + + + + + + + + + + + + + + + + + + + + +
Temperature Shutdown Enabled + " name="<%= channels["vfdipp.dhtempshutdownenabled"].channelId %>"> +
Temperature Shutdown Limit +
+
+
+ " + type="number" step="any" + id="<%= channels["vfdipp.dhtempshutdown"].channelId %>" + value="<%=channels["vfdipp.dhtempshutdown"].value %>"> +
+
+
+
Temperature Restart Enabled + " name="<%= channels["vfdipp.dhtempstartupenabled"].channelId %>"> +
Temperature Startup Limit +
+
+
+ " + type="number" step="any" + id="<%= channels["vfdipp.dhtempstartuplimit"].channelId %>" + value="<%=channels["vfdipp.dhtempstartuplimit"].value %>"> +
+
+
+
+
+
+
+ +
+ + diff --git a/POCloud_Driver/HTML/Downhole.html b/POCloud_Driver/HTML/Downhole.html index cc03c42..ef4205b 100644 --- a/POCloud_Driver/HTML/Downhole.html +++ b/POCloud_Driver/HTML/Downhole.html @@ -24,14 +24,26 @@ -
+

Instrument Status

- <%= channels["vfdipp.dhdownholestatusint"].value %> +

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

-
+

MAX VALUES