From a5632d14ed7edc83e6d47bcd16281ee0348c1f3e Mon Sep 17 00:00:00 2001 From: Patrick McDonagh Date: Fri, 17 Aug 2018 14:54:50 -0500 Subject: [PATCH] Finalized with documentation --- .../Controller/Controller/persist.ccwx | Bin 69552 -> 69552 bytes PLC/Multi-Sensor/Multi-Sensor.ccwsln | Bin 817 -> 1630 bytes PLC/Multi-Sensor/Multi-Sensor.v12.ccwsuo | Bin 22528 -> 19968 bytes POCloud/channels_multisensor.csv | 14 +- POCloud/html-templates/Calibration.html | 180 ------- POCloud/html-templates/Inputs0-1.html | 454 ++++++++++++++++ POCloud/html-templates/Inputs2-3.html | 454 ++++++++++++++++ POCloud/html-templates/Inputs4-5.html | 454 ++++++++++++++++ POCloud/html-templates/Inputs6-7.html | 454 ++++++++++++++++ POCloud/html-templates/InputsTempl.html | 454 ++++++++++++++++ POCloud/html-templates/NodeDetailHeader.html | 7 + POCloud/html-templates/PondSetup.html | 488 ++++++++++++++++++ POCloud/html-templates/Trends.html | 2 +- POCloud/python-driver/Channel.py | 36 +- POCloud/python-driver/multisensor.py | 134 ++++- POCloud/python-driver/test.py | 30 ++ README.md | 10 + 17 files changed, 2972 insertions(+), 199 deletions(-) delete mode 100644 POCloud/html-templates/Calibration.html create mode 100644 POCloud/html-templates/Inputs0-1.html create mode 100644 POCloud/html-templates/Inputs2-3.html create mode 100644 POCloud/html-templates/Inputs4-5.html create mode 100644 POCloud/html-templates/Inputs6-7.html create mode 100644 POCloud/html-templates/InputsTempl.html create mode 100644 POCloud/html-templates/PondSetup.html create mode 100644 POCloud/python-driver/test.py diff --git a/PLC/Multi-Sensor/Controller/Controller/persist.ccwx b/PLC/Multi-Sensor/Controller/Controller/persist.ccwx index b52a706e06f13d806a4787699e2ddbd3b2016395..35cd36d8dcb835340df5e91a66727dbc009f435b 100644 GIT binary patch delta 1021 zcmdlmpJl^*7Ty4FW)?065V%+;Fp<|oYMh=ud7G6`wwVol$wSMRF)a(S%e%Zm`*l z3YoUY3o#1a#7k_QN-SVq+PxPcQvdrdu!HT`9JIqlf`frUf&*m7G;T(f$-6~OHhWFy;sEOi zpRWdSRl~wJ5Uu%(g_*!wuLVVCB?A4B$OQKKT|TwVrB(FS8YXJ$+Qi+Hg>8Eat-0amC;F)L#tSj}~qh!q=DYA%#9jU8%m zB8+he#!%*fO0{r6H9dzhyf|TYazfScaY022xu7DKU<_k!s1z__Ax{1YW5n=4MfSrO eO1w~!R$i#vU&2Iu_@E}Qg)#W}p(6SGjE(?Y=1@BT delta 1021 zcmdlmpJl^*7Ty4FW)?065K!&roycpgZeU?*oS0&kXl`j>W|CrRmS~ciWSW+gW^R&f zX>Mj{tXEK+o042Gxv*DeV|OAW2T+@@n`hp^&0iS(810DEt)$?YVyhHnlx%33W@eUV zV3?RTr?EII4@Df1Qzj;ehU$?k-yH&3vxye z51W$@BLjoavN1?hl#PKwlx?!2vgl+p4zr`R^>(cJM2$A~VcYz&j$L63NE)pCJ3=$k5JEn0ns!ZN3YO>jDIu{36 zNBDd-h^rbFzJX}XUo6Z7)_N@{Ix7+AheRf@*YEPFZ9cuUoeAu!88;7~m%OmNt} z>=pYV2E?vPfW*du9UmCMCT;R$kT+*$U@&I}nj|(|f{#&k^Uqze5XVREYi9;0 z3+``ASSQErv)in8$OR&md$b+G_GE+<2f^90$9Y01Qpg1rxddYvb3>(o5esqhPZ%SH2P(23 g#!%vginQ`V-To3L;=>0uc`b~=#}5_B=Vx>T02tpP)Bpeg diff --git a/PLC/Multi-Sensor/Multi-Sensor.ccwsln b/PLC/Multi-Sensor/Multi-Sensor.ccwsln index a1f1e67d33c3eea1a61dcc4aff059db0abcc6802..41f8b29d5d31635356c422ed09537e5c1fb01029 100644 GIT binary patch literal 1630 zcmchXK~Ew<5QX0r6aRzJ3nnsg2p}9hzy#gH>YA8!FJ2S|qZt@8fM(8`1M^WLi}9v@bN6gozAa6*S;j*NJQs2qL}b=$ECR0GqHTQk%nIHbCQOAiHQt?N#0HE^${ zy1HaXs<3Ym^*f7oh_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xReled8or&F4%+kC1Le~RdE;bMxusx aw-knx6yRCM+9AtkoE*txd}N8f_nDte4hcH| diff --git a/POCloud/channels_multisensor.csv b/POCloud/channels_multisensor.csv index bb9dad4..f502deb 100644 --- a/POCloud/channels_multisensor.csv +++ b/POCloud/channels_multisensor.csv @@ -73,4 +73,16 @@ id,name,deviceTypeId,fromMe,io,subTitle,helpExplanation,channelType,dataType,def ,an5decimals,465,FALSE,readwrite,Analog 5 Decimal Places,Decimal places to show for analog 5,user input,integer,2,,,,,,,, ,an6decimals,465,FALSE,readwrite,Analog 6 Decimal Places,Decimal places to show for analog 6,user input,integer,2,,,,,,,, ,an7decimals,465,FALSE,readwrite,Analog 7 Decimal Places,Decimal places to show for analog 7,user input,integer,2,,,,,,,, -,sync,465,FALSE,readwrite,Sync,sync,device,string,,,,,,,,, \ No newline at end of file +,sync,465,FALSE,readwrite,Sync,sync,device,string,,,,,,,,, +,pond0calibration,465,FALSE,readonly,Pond 0 Calibration,Calibration JSON object,device,string,{},,,,,,,, +,pond1calibration,465,FALSE,readonly,Pond 1 Calibration,Calibration JSON object,device,string,{},,,,,,,, +,pond2calibration,465,FALSE,readonly,Pond 2 Calibration,Calibration JSON object,device,string,{},,,,,,,, +,pond3calibration,465,FALSE,readonly,Pond 3 Calibration,Calibration JSON object,device,string,{},,,,,,,, +,pond4calibration,465,FALSE,readonly,Pond 4 Calibration,Calibration JSON object,device,string,{},,,,,,,, +,pond5calibration,465,FALSE,readonly,Pond 5 Calibration,Calibration JSON object,device,string,{},,,,,,,, +,pond6calibration,465,FALSE,readonly,Pond 6 Calibration,Calibration JSON object,device,string,{},,,,,,,, +,pond7calibration,465,FALSE,readonly,Pond 7 Calibration,Calibration JSON object,device,string,{},,,,,,,, +,addcalibrationpoint,465,FALSE,readwrite,Add Command,sends data to PLC,device,string,,,,,,,,, +,deletecalibrationpoint,465,FALSE,readwrite,Delete Command,sends data to PLC,device,string,,,,,,,,, +,writeplctag,465,FALSE,readwrite,Write PLC Tag,sends data to PLC,device,string,,,,,,,,, +,pondvolumetotal,466,FALSE,readonly,Total Pond Volume,in BBL,device,float,,,,,,,,, \ No newline at end of file diff --git a/POCloud/html-templates/Calibration.html b/POCloud/html-templates/Calibration.html deleted file mode 100644 index ab0bbc0..0000000 --- a/POCloud/html-templates/Calibration.html +++ /dev/null @@ -1,180 +0,0 @@ - - -
-
-

Pond 1 Calibration

- - - - - - - - - -
Level (Ft.)Volume
-
- -
-

Pond 2 Calibration

- - - - - - - - - -
Level (Ft.)Volume
-
-
- -
-
-

Pond 3 Calibration

- - - - - - - - - -
Level (Ft.)Volume
-
- -
-

Pond 4 Calibration

- - - - - - - - - -
Level (Ft.)Volume
-
-
- - - - - diff --git a/POCloud/html-templates/Inputs0-1.html b/POCloud/html-templates/Inputs0-1.html new file mode 100644 index 0000000..e49888e --- /dev/null +++ b/POCloud/html-templates/Inputs0-1.html @@ -0,0 +1,454 @@ +
+
+
+ data-nodename3="multisensor.pond0volume" + data-datalabel3="Pond 0 Volume" + <% } %> + <% if (channels["multisensor.an1ispond"].value === "true"){ %> + data-nodename4="multisensor.pond1volume" + data-datalabel4="Pond 1 Volume" + <% } %> + + data-daysofhistory="2" + data-chartlabel="Last 48 Hours" + data-ylabel="" + data-xlabel="Date" + data-units=""> +
+
+
+ + +
+
+

Input 0

+ <% if (channels["multisensor.an0ispond"].value === "true"){ %> + " + data-techname="<%=channels["multisensor.writeplctag"].techName %>" + data-name="<%= channels["multisensor.writeplctag"].name%>" + data-nodechannelcurrentId="<%= channels["multisensor.writeplctag"].nodechannelcurrentId %>" + id="<%= channels["multisensor.writeplctag"].channelId %>" + class="btn btn-large btn-danger animated setstatic">Disable Pond Volume + <% } else { %> + + " + data-techname="<%=channels["multisensor.writeplctag"].techName %>" + data-name="<%= channels["multisensor.writeplctag"].name%>" + data-nodechannelcurrentId="<%= channels["multisensor.writeplctag"].nodechannelcurrentId %>" + id="<%= channels["multisensor.writeplctag"].channelId %>" + class="btn btn-large btn-success animated setstatic">Enable Pond Volume + <% } %> + +
+

Scaling

+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+

Input 1

+ <% if (channels["multisensor.an1ispond"].value === "true"){ %> + " + data-techname="<%=channels["multisensor.writeplctag"].techName %>" + data-name="<%= channels["multisensor.writeplctag"].name%>" + data-nodechannelcurrentId="<%= channels["multisensor.writeplctag"].nodechannelcurrentId %>" + id="<%= channels["multisensor.writeplctag"].channelId %>" + class="btn btn-large btn-danger animated setstatic">Disable Pond Volume + <% } else { %> + + " + data-techname="<%=channels["multisensor.writeplctag"].techName %>" + data-name="<%= channels["multisensor.writeplctag"].name%>" + data-nodechannelcurrentId="<%= channels["multisensor.writeplctag"].nodechannelcurrentId %>" + id="<%= channels["multisensor.writeplctag"].channelId %>" + class="btn btn-large btn-success animated setstatic">Enable Pond Volume + <% } %> + +
+

Scaling

+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+
+
+ +
+ +
+ <% if (channels["multisensor.an0ispond"].value === "true") { %> +
+

Pond 0 Calibration

+ + + + + + + + + + +
Level (Ft.)Volume
+
+ <% } %> + + <% if (channels["multisensor.an1ispond"].value === "true") { %> +
+

Pond 1 Calibration

+ + + + + + + + + + +
Level (Ft.)Volume
+
+ <% } %> +
+ +
+ + <% if (channels["multisensor.an0ispond"].value === "true" || channels["multisensor.an1ispond"].value === "true") { %> + + <% } %> + + + + + + + \ No newline at end of file diff --git a/POCloud/html-templates/Inputs2-3.html b/POCloud/html-templates/Inputs2-3.html new file mode 100644 index 0000000..166b68f --- /dev/null +++ b/POCloud/html-templates/Inputs2-3.html @@ -0,0 +1,454 @@ +
+
+
+ data-nodename3="multisensor.pond2volume" + data-datalabel3="Pond 2 Volume" + <% } %> + <% if (channels["multisensor.an3ispond"].value === "true"){ %> + data-nodename4="multisensor.pond3volume" + data-datalabel4="Pond 3 Volume" + <% } %> + + data-daysofhistory="2" + data-chartlabel="Last 48 Hours" + data-ylabel="" + data-xlabel="Date" + data-units=""> +
+
+
+ + +
+
+

Input 2

+ <% if (channels["multisensor.an2ispond"].value === "true"){ %> + " + data-techname="<%=channels["multisensor.writeplctag"].techName %>" + data-name="<%= channels["multisensor.writeplctag"].name%>" + data-nodechannelcurrentId="<%= channels["multisensor.writeplctag"].nodechannelcurrentId %>" + id="<%= channels["multisensor.writeplctag"].channelId %>" + class="btn btn-large btn-danger animated setstatic">Disable Pond Volume + <% } else { %> + + " + data-techname="<%=channels["multisensor.writeplctag"].techName %>" + data-name="<%= channels["multisensor.writeplctag"].name%>" + data-nodechannelcurrentId="<%= channels["multisensor.writeplctag"].nodechannelcurrentId %>" + id="<%= channels["multisensor.writeplctag"].channelId %>" + class="btn btn-large btn-success animated setstatic">Enable Pond Volume + <% } %> + +
+

Scaling

+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+

Input 3

+ <% if (channels["multisensor.an3ispond"].value === "true"){ %> + " + data-techname="<%=channels["multisensor.writeplctag"].techName %>" + data-name="<%= channels["multisensor.writeplctag"].name%>" + data-nodechannelcurrentId="<%= channels["multisensor.writeplctag"].nodechannelcurrentId %>" + id="<%= channels["multisensor.writeplctag"].channelId %>" + class="btn btn-large btn-danger animated setstatic">Disable Pond Volume + <% } else { %> + + " + data-techname="<%=channels["multisensor.writeplctag"].techName %>" + data-name="<%= channels["multisensor.writeplctag"].name%>" + data-nodechannelcurrentId="<%= channels["multisensor.writeplctag"].nodechannelcurrentId %>" + id="<%= channels["multisensor.writeplctag"].channelId %>" + class="btn btn-large btn-success animated setstatic">Enable Pond Volume + <% } %> + +
+

Scaling

+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+
+
+ +
+ +
+ <% if (channels["multisensor.an2ispond"].value === "true") { %> +
+

Pond 2 Calibration

+ + + + + + + + + + +
Level (Ft.)Volume
+
+ <% } %> + + <% if (channels["multisensor.an3ispond"].value === "true") { %> +
+

Pond 3 Calibration

+ + + + + + + + + + +
Level (Ft.)Volume
+
+ <% } %> +
+ +
+ + <% if (channels["multisensor.an2ispond"].value === "true" || channels["multisensor.an3ispond"].value === "true") { %> + + <% } %> + + + + + + + \ No newline at end of file diff --git a/POCloud/html-templates/Inputs4-5.html b/POCloud/html-templates/Inputs4-5.html new file mode 100644 index 0000000..4611540 --- /dev/null +++ b/POCloud/html-templates/Inputs4-5.html @@ -0,0 +1,454 @@ +
+
+
+ data-nodename3="multisensor.pond4volume" + data-datalabel3="Pond 4 Volume" + <% } %> + <% if (channels["multisensor.an5ispond"].value === "true"){ %> + data-nodename4="multisensor.pond5volume" + data-datalabel4="Pond 5 Volume" + <% } %> + + data-daysofhistory="2" + data-chartlabel="Last 48 Hours" + data-ylabel="" + data-xlabel="Date" + data-units=""> +
+
+
+ + +
+
+

Input 4

+ <% if (channels["multisensor.an4ispond"].value === "true"){ %> + " + data-techname="<%=channels["multisensor.writeplctag"].techName %>" + data-name="<%= channels["multisensor.writeplctag"].name%>" + data-nodechannelcurrentId="<%= channels["multisensor.writeplctag"].nodechannelcurrentId %>" + id="<%= channels["multisensor.writeplctag"].channelId %>" + class="btn btn-large btn-danger animated setstatic">Disable Pond Volume + <% } else { %> + + " + data-techname="<%=channels["multisensor.writeplctag"].techName %>" + data-name="<%= channels["multisensor.writeplctag"].name%>" + data-nodechannelcurrentId="<%= channels["multisensor.writeplctag"].nodechannelcurrentId %>" + id="<%= channels["multisensor.writeplctag"].channelId %>" + class="btn btn-large btn-success animated setstatic">Enable Pond Volume + <% } %> + +
+

Scaling

+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+

Input 5

+ <% if (channels["multisensor.an5ispond"].value === "true"){ %> + " + data-techname="<%=channels["multisensor.writeplctag"].techName %>" + data-name="<%= channels["multisensor.writeplctag"].name%>" + data-nodechannelcurrentId="<%= channels["multisensor.writeplctag"].nodechannelcurrentId %>" + id="<%= channels["multisensor.writeplctag"].channelId %>" + class="btn btn-large btn-danger animated setstatic">Disable Pond Volume + <% } else { %> + + " + data-techname="<%=channels["multisensor.writeplctag"].techName %>" + data-name="<%= channels["multisensor.writeplctag"].name%>" + data-nodechannelcurrentId="<%= channels["multisensor.writeplctag"].nodechannelcurrentId %>" + id="<%= channels["multisensor.writeplctag"].channelId %>" + class="btn btn-large btn-success animated setstatic">Enable Pond Volume + <% } %> + +
+

Scaling

+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+
+
+ +
+ +
+ <% if (channels["multisensor.an4ispond"].value === "true") { %> +
+

Pond 4 Calibration

+ + + + + + + + + + +
Level (Ft.)Volume
+
+ <% } %> + + <% if (channels["multisensor.an5ispond"].value === "true") { %> +
+

Pond 5 Calibration

+ + + + + + + + + + +
Level (Ft.)Volume
+
+ <% } %> +
+ +
+ + <% if (channels["multisensor.an4ispond"].value === "true" || channels["multisensor.an5ispond"].value === "true") { %> + + <% } %> + + + + + + + \ No newline at end of file diff --git a/POCloud/html-templates/Inputs6-7.html b/POCloud/html-templates/Inputs6-7.html new file mode 100644 index 0000000..ac8f1f3 --- /dev/null +++ b/POCloud/html-templates/Inputs6-7.html @@ -0,0 +1,454 @@ +
+
+
+ data-nodename3="multisensor.pond6volume" + data-datalabel3="Pond 6 Volume" + <% } %> + <% if (channels["multisensor.an7ispond"].value === "true"){ %> + data-nodename4="multisensor.pond7volume" + data-datalabel4="Pond 7 Volume" + <% } %> + + data-daysofhistory="2" + data-chartlabel="Last 48 Hours" + data-ylabel="" + data-xlabel="Date" + data-units=""> +
+
+
+ + +
+
+

Input 6

+ <% if (channels["multisensor.an6ispond"].value === "true"){ %> + " + data-techname="<%=channels["multisensor.writeplctag"].techName %>" + data-name="<%= channels["multisensor.writeplctag"].name%>" + data-nodechannelcurrentId="<%= channels["multisensor.writeplctag"].nodechannelcurrentId %>" + id="<%= channels["multisensor.writeplctag"].channelId %>" + class="btn btn-large btn-danger animated setstatic">Disable Pond Volume + <% } else { %> + + " + data-techname="<%=channels["multisensor.writeplctag"].techName %>" + data-name="<%= channels["multisensor.writeplctag"].name%>" + data-nodechannelcurrentId="<%= channels["multisensor.writeplctag"].nodechannelcurrentId %>" + id="<%= channels["multisensor.writeplctag"].channelId %>" + class="btn btn-large btn-success animated setstatic">Enable Pond Volume + <% } %> + +
+

Scaling

+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+

Input 7

+ <% if (channels["multisensor.an7ispond"].value === "true"){ %> + " + data-techname="<%=channels["multisensor.writeplctag"].techName %>" + data-name="<%= channels["multisensor.writeplctag"].name%>" + data-nodechannelcurrentId="<%= channels["multisensor.writeplctag"].nodechannelcurrentId %>" + id="<%= channels["multisensor.writeplctag"].channelId %>" + class="btn btn-large btn-danger animated setstatic">Disable Pond Volume + <% } else { %> + + " + data-techname="<%=channels["multisensor.writeplctag"].techName %>" + data-name="<%= channels["multisensor.writeplctag"].name%>" + data-nodechannelcurrentId="<%= channels["multisensor.writeplctag"].nodechannelcurrentId %>" + id="<%= channels["multisensor.writeplctag"].channelId %>" + class="btn btn-large btn-success animated setstatic">Enable Pond Volume + <% } %> + +
+

Scaling

+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+
+
+ +
+ +
+ <% if (channels["multisensor.an6ispond"].value === "true") { %> +
+

Pond 6 Calibration

+ + + + + + + + + + +
Level (Ft.)Volume
+
+ <% } %> + + <% if (channels["multisensor.an7ispond"].value === "true") { %> +
+

Pond 7 Calibration

+ + + + + + + + + + +
Level (Ft.)Volume
+
+ <% } %> +
+ +
+ + <% if (channels["multisensor.an6ispond"].value === "true" || channels["multisensor.an7ispond"].value === "true") { %> + + <% } %> + + + + + + + \ No newline at end of file diff --git a/POCloud/html-templates/InputsTempl.html b/POCloud/html-templates/InputsTempl.html new file mode 100644 index 0000000..4aa49d3 --- /dev/null +++ b/POCloud/html-templates/InputsTempl.html @@ -0,0 +1,454 @@ +
+
+
+ data-nodename3="multisensor.pond?0?volume" + data-datalabel3="Pond ?0? Volume" + <% } %> + <% if (channels["multisensor.an?1?ispond"].value === "true"){ %> + data-nodename4="multisensor.pond?1?volume" + data-datalabel4="Pond ?1? Volume" + <% } %> + + data-daysofhistory="2" + data-chartlabel="Last 48 Hours" + data-ylabel="" + data-xlabel="Date" + data-units=""> +
+
+
+ + +
+
+

Input ?0?

+ <% if (channels["multisensor.an?0?ispond"].value === "true"){ %> + " + data-techname="<%=channels["multisensor.writeplctag"].techName %>" + data-name="<%= channels["multisensor.writeplctag"].name%>" + data-nodechannelcurrentId="<%= channels["multisensor.writeplctag"].nodechannelcurrentId %>" + id="<%= channels["multisensor.writeplctag"].channelId %>" + class="btn btn-large btn-danger animated setstatic">Disable Pond Volume + <% } else { %> + + " + data-techname="<%=channels["multisensor.writeplctag"].techName %>" + data-name="<%= channels["multisensor.writeplctag"].name%>" + data-nodechannelcurrentId="<%= channels["multisensor.writeplctag"].nodechannelcurrentId %>" + id="<%= channels["multisensor.writeplctag"].channelId %>" + class="btn btn-large btn-success animated setstatic">Enable Pond Volume + <% } %> + +
+

Scaling

+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+

Input ?1?

+ <% if (channels["multisensor.an?1?ispond"].value === "true"){ %> + " + data-techname="<%=channels["multisensor.writeplctag"].techName %>" + data-name="<%= channels["multisensor.writeplctag"].name%>" + data-nodechannelcurrentId="<%= channels["multisensor.writeplctag"].nodechannelcurrentId %>" + id="<%= channels["multisensor.writeplctag"].channelId %>" + class="btn btn-large btn-danger animated setstatic">Disable Pond Volume + <% } else { %> + + " + data-techname="<%=channels["multisensor.writeplctag"].techName %>" + data-name="<%= channels["multisensor.writeplctag"].name%>" + data-nodechannelcurrentId="<%= channels["multisensor.writeplctag"].nodechannelcurrentId %>" + id="<%= channels["multisensor.writeplctag"].channelId %>" + class="btn btn-large btn-success animated setstatic">Enable Pond Volume + <% } %> + +
+

Scaling

+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+ +
+
+
+ +
+ +
+ <% if (channels["multisensor.an?0?ispond"].value === "true") { %> +
+

Pond ?0? Calibration

+ + + + + + + + + + +
Level (Ft.)Volume
+
+ <% } %> + + <% if (channels["multisensor.an?1?ispond"].value === "true") { %> +
+

Pond ?1? Calibration

+ + + + + + + + + + +
Level (Ft.)Volume
+
+ <% } %> +
+ +
+ +<% if (channels["multisensor.an?0?ispond"].value === "true" || channels["multisensor.an?1?ispond"].value === "true") { %> + +<% } %> + + + + + + + \ No newline at end of file diff --git a/POCloud/html-templates/NodeDetailHeader.html b/POCloud/html-templates/NodeDetailHeader.html index 756a869..ef5ed73 100644 --- a/POCloud/html-templates/NodeDetailHeader.html +++ b/POCloud/html-templates/NodeDetailHeader.html @@ -28,4 +28,11 @@

<%= node.vanityname %>

+ + <% if (channels['multisensor.an0ispond'].value === 'true' || channels['multisensor.an1ispond'].value === 'true' || channels['multisensor.an2ispond'].value === 'true' || channels['multisensor.an3ispond'].value === 'true' || channels['multisensor.an4ispond'].value === 'true' || channels['multisensor.an5ispond'].value === 'true' || channels['multisensor.an6ispond'].value === 'true' || channels['multisensor.an7ispond'].value === 'true') { %> +
+

Pond Volume Total

+

<%= Math.round(channels['multisensor.pondvolumetotal'].value) %> BBL

+
+ <% } %> diff --git a/POCloud/html-templates/PondSetup.html b/POCloud/html-templates/PondSetup.html new file mode 100644 index 0000000..3826c16 --- /dev/null +++ b/POCloud/html-templates/PondSetup.html @@ -0,0 +1,488 @@ +
+ + + + + + + +
+ +
+ + + + + + + +
+ +
+ +
+ <% if (channels["multisensor.an0ispond"].value === "true") { %> +
+

Pond 0 Calibration

+ + + + + + + + + + +
Level (Ft.)Volume
+
+ <% } %> + + <% if (channels["multisensor.an1ispond"].value === "true") { %> +
+

Pond 1 Calibration

+ + + + + + + + + + +
Level (Ft.)Volume
+
+ <% } %> + + <% if (channels["multisensor.an2ispond"].value === "true") { %> +
+

Pond 2 Calibration

+ + + + + + + + + + +
Level (Ft.)Volume
+
+ <% } %> + + <% if (channels["multisensor.an3ispond"].value === "true") { %> +
+

Pond 3 Calibration

+ + + + + + + + + + +
Level (Ft.)Volume
+
+ <% } %> + + + <% if (channels["multisensor.an4ispond"].value === "true") { %> +
+

Pond 4 Calibration

+ + + + + + + + + + +
Level (Ft.)Volume
+
+ <% } %> + + + <% if (channels["multisensor.an5ispond"].value === "true") { %> +
+

Pond 5 Calibration

+ + + + + + + + + + +
Level (Ft.)Volume
+
+ <% } %> + + + <% if (channels["multisensor.an6ispond"].value === "true") { %> +
+

Pond 6 Calibration

+ + + + + + + + + + +
Level (Ft.)Volume
+
+ <% } %> + + + <% if (channels["multisensor.an7ispond"].value === "true") { %> +
+

Pond 7 Calibration

+ + + + + + + + + + +
Level (Ft.)Volume
+
+ <% } %> +
+ +
+ + + + diff --git a/POCloud/html-templates/Trends.html b/POCloud/html-templates/Trends.html index 43c6e02..2910e45 100644 --- a/POCloud/html-templates/Trends.html +++ b/POCloud/html-templates/Trends.html @@ -18,7 +18,7 @@ data-ylabel="" data-xlabel="Date" data-units="" - data-channelnames="plcpond.pond1height,plcpond.pond2height,plcpond.pond3height,plcpond.pond4height,plcpond.pond1volume,plcpond.pond2volume,plcpond.pond3volume,plcpond.pond4volume,plcpond.pondvolumetotal"> + data-channelnames="multisensor.an0val,multisensor.an1val,multisensor.an2val,multisensor.an3val,multisensor.an4val,multisensor.an5val,multisensor.an6val,multisensor.an7val,multisensor.pond0volume,multisensor.pond1volume,multisensor.pond2volume,multisensor.pond3volume,multisensor.pond4volume,multisensor.pond5volume,multisensor.pond6volume,multisensor.pond7volume,multisensor.pondvolumetotal">