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() {}
registerChild(child, positionVsParent) {
}
isValidSourceForMode(source, mode) {
const allowedSourcesSet = this.config.mode.allowedSources[mode] || [];
this.logger.info(`Allowed sources for mode '${mode}': ${allowedSourcesSet}`);

View File

@@ -1,15 +1,12 @@
<!--
brabantse delta kleuren:
#eaf4f1
#86bbdd
#bad33b
#0c99d9
#a9daee
#0f52a5
#50a8d9
#cade63
#4f8582
#c4cce0
| 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="/valveGroupControl/menu.js"></script> <!-- Load the menu script for dynamic dropdowns -->
<script src="/valveGroupControl/configData.js"></script> <!-- Load the config script for node information -->
@@ -17,7 +14,7 @@
<script>
RED.nodes.registerType('valveGroupControl',{
category: "EVOLV",
color: "#eaf4f1",
color: "#50a8d9",
defaults: {
// Define default properties
name: { value: "" },
@@ -26,16 +23,19 @@
enableLog: { value: false },
logLevel: { value: "error" },
// Physical aspect
//physicalAspect
positionVsParent: { value: "" },
positionLabel: { value: "" },
positionIcon: { value: "" },
hasDistance: { value: false },
distance: { value: 0 },
distanceUnit: { value: "m" },
distanceDescription: { value: "" }
},
inputs:1,
outputs:3,
inputLabels: ["Input"],
outputLabels: ["process", "dbase", "parent"],
icon: "font-awesome/fa-tachometer",
icon: "font-awesome/fa-tasks",
label: function () {
return this.positionIcon + " " + "valveGroupControl";