s88 updates and icon

This commit is contained in:
znetsixe
2025-10-14 14:08:04 +02:00
parent 9dea685db7
commit e69825a48e
2 changed files with 12 additions and 3 deletions

View File

@@ -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 -------- //

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/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
@@ -40,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";