Compare commits

..

2 Commits

Author SHA1 Message Date
znetsixe
e69825a48e s88 updates and icon 2025-10-14 14:08:04 +02:00
znetsixe
9dea685db7 physicalPosition 1D update 2025-09-05 16:20:31 +02:00
2 changed files with 16 additions and 3 deletions

View File

@@ -90,7 +90,7 @@ class Valve {
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.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 -------- //

View File

@@ -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/configData.js"></script> <!-- Load the config script for node information -->
<script>
RED.nodes.registerType("valve", {
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: {
// Define default properties
@@ -29,6 +38,10 @@
//physicalAspect
positionVsParent: { value: "" },
positionIcon: { value: "" },
hasDistance: { value: false },
distance: { value: 0 },
distanceUnit: { value: "m" },
distanceDescription: { value: "" }
},
@@ -36,7 +49,7 @@
outputs: 3,
inputLabels: ["Input"],
outputLabels: ["process", "dbase", "parent"],
icon: "font-awesome/fa-tachometer",
icon: "font-awesome/fa-toggle-on",
label: function () {
return this.positionIcon + " " + this.category.slice(0, -1) || "Valve";