Compare commits

..

3 Commits

Author SHA1 Message Date
znetsixe
54e1fd0f43 changed colours and icon based on s88 2025-10-14 13:52:44 +02:00
Rene De ren
ae239901be added empty registerchild function for childregistration process 2025-10-03 15:40:11 +02:00
znetsixe
a2277eec39 physicalPosition 1D update 2025-09-05 16:21:07 +02:00
2 changed files with 20 additions and 17 deletions

View File

@@ -76,6 +76,9 @@ class ValveGroupControl {
registerOnChildEvents() {} registerOnChildEvents() {}
registerChild(child, positionVsParent) {
}
isValidSourceForMode(source, mode) { isValidSourceForMode(source, mode) {
const allowedSourcesSet = this.config.mode.allowedSources[mode] || []; const allowedSourcesSet = this.config.mode.allowedSources[mode] || [];
this.logger.info(`Allowed sources for mode '${mode}': ${allowedSourcesSet}`); this.logger.info(`Allowed sources for mode '${mode}': ${allowedSourcesSet}`);

View File

@@ -1,15 +1,12 @@
<!-- <!--
brabantse delta kleuren: | S88-niveau | Primair (blokkleur) | Tekstkleur |
#eaf4f1 | ---------------------- | ------------------- | ---------- |
#86bbdd | **Area** | `#0f52a5` | wit |
#bad33b | **Process Cell** | `#0c99d9` | wit |
#0c99d9 | **Unit** | `#50a8d9` | zwart |
#a9daee | **Equipment (Module)** | `#86bbdd` | zwart |
#0f52a5 | **Control Module** | `#a9daee` | zwart |
#50a8d9
#cade63
#4f8582
#c4cce0
--> -->
<script src="/valveGroupControl/menu.js"></script> <!-- Load the menu script for dynamic dropdowns --> <script src="/valveGroupControl/menu.js"></script> <!-- Load the menu script for dynamic dropdowns -->
<script src="/valveGroupControl/configData.js"></script> <!-- Load the config script for node information --> <script src="/valveGroupControl/configData.js"></script> <!-- Load the config script for node information -->
@@ -17,7 +14,7 @@
<script> <script>
RED.nodes.registerType('valveGroupControl',{ RED.nodes.registerType('valveGroupControl',{
category: "EVOLV", category: "EVOLV",
color: "#eaf4f1", color: "#50a8d9",
defaults: { defaults: {
// Define default properties // Define default properties
name: { value: "" }, name: { value: "" },
@@ -26,16 +23,19 @@
enableLog: { value: false }, enableLog: { value: false },
logLevel: { value: "error" }, logLevel: { value: "error" },
// Physical aspect //physicalAspect
positionVsParent: { value: "" }, positionVsParent: { value: "" },
positionLabel: { value: "" }, positionIcon: { value: "" },
positionIcon: { value: "" }, hasDistance: { value: false },
distance: { value: 0 },
distanceUnit: { value: "m" },
distanceDescription: { value: "" }
}, },
inputs:1, inputs:1,
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-tasks",
label: function () { label: function () {
return this.positionIcon + " " + "valveGroupControl"; return this.positionIcon + " " + "valveGroupControl";