Compare commits
2 Commits
e2e2001647
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
e69825a48e | ||
|
|
9dea685db7 |
@@ -90,7 +90,7 @@ class Valve {
|
|||||||
this.childRegistrationUtils = new childRegistrationUtils(this); // Child registration utility
|
this.childRegistrationUtils = new childRegistrationUtils(this); // Child registration utility
|
||||||
this.vCurve = this.curve[1.204]; // specificy the desired density RECALC THIS AUTOMTICALLY BASED ON DENSITY OF AIR LATER OLIFANT!!
|
this.vCurve = this.curve[1.204]; // specificy the desired density RECALC THIS AUTOMTICALLY BASED ON DENSITY OF AIR LATER OLIFANT!!
|
||||||
this.predictKv = new predict({curve:this.vCurve}); // load valve size (x : ctrl , y : kv relationship)
|
this.predictKv = new predict({curve:this.vCurve}); // load valve size (x : ctrl , y : kv relationship)
|
||||||
this.logger.debug(`PredictKv initialized with curve: ${JSON.stringify(this.predictKv)}`);
|
//this.logger.debug(`PredictKv initialized with curve: ${JSON.stringify(this.predictKv)}`);
|
||||||
}
|
}
|
||||||
|
|
||||||
// -------- Config -------- //
|
// -------- Config -------- //
|
||||||
|
|||||||
17
valve.html
17
valve.html
@@ -1,11 +1,20 @@
|
|||||||
|
<!--
|
||||||
|
| S88-niveau | Primair (blokkleur) | Tekstkleur |
|
||||||
|
| ---------------------- | ------------------- | ---------- |
|
||||||
|
| **Area** | `#0f52a5` | wit |
|
||||||
|
| **Process Cell** | `#0c99d9` | wit |
|
||||||
|
| **Unit** | `#50a8d9` | zwart |
|
||||||
|
| **Equipment (Module)** | `#86bbdd` | zwart |
|
||||||
|
| **Control Module** | `#a9daee` | zwart |
|
||||||
|
|
||||||
|
-->
|
||||||
<script src="/valve/menu.js"></script> <!-- Load the menu script for dynamic dropdowns -->
|
<script src="/valve/menu.js"></script> <!-- Load the menu script for dynamic dropdowns -->
|
||||||
<script src="/valve/configData.js"></script> <!-- Load the config script for node information -->
|
<script src="/valve/configData.js"></script> <!-- Load the config script for node information -->
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
RED.nodes.registerType("valve", {
|
RED.nodes.registerType("valve", {
|
||||||
category: "EVOLV",
|
category: "EVOLV",
|
||||||
color: "#e4a363", // color for the node based on the S88 schema
|
color: "#86bbdd", // color for the node based on the S88 schema
|
||||||
defaults: {
|
defaults: {
|
||||||
|
|
||||||
// Define default properties
|
// Define default properties
|
||||||
@@ -29,6 +38,10 @@
|
|||||||
//physicalAspect
|
//physicalAspect
|
||||||
positionVsParent: { value: "" },
|
positionVsParent: { value: "" },
|
||||||
positionIcon: { value: "" },
|
positionIcon: { value: "" },
|
||||||
|
hasDistance: { value: false },
|
||||||
|
distance: { value: 0 },
|
||||||
|
distanceUnit: { value: "m" },
|
||||||
|
distanceDescription: { value: "" }
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -36,7 +49,7 @@
|
|||||||
outputs: 3,
|
outputs: 3,
|
||||||
inputLabels: ["Input"],
|
inputLabels: ["Input"],
|
||||||
outputLabels: ["process", "dbase", "parent"],
|
outputLabels: ["process", "dbase", "parent"],
|
||||||
icon: "font-awesome/fa-tachometer",
|
icon: "font-awesome/fa-toggle-on",
|
||||||
|
|
||||||
label: function () {
|
label: function () {
|
||||||
return this.positionIcon + " " + this.category.slice(0, -1) || "Valve";
|
return this.positionIcon + " " + this.category.slice(0, -1) || "Valve";
|
||||||
|
|||||||
Reference in New Issue
Block a user