Jump to content

SENSBLUE ATLAS/Node-RED: Difference between revisions

No edit summary
No edit summary
 
(20 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{DISPLAYTITLE:Node-RED}}
{{DISPLAYTITLE:Node-RED}}
[[File:Node-RED Logo.png|frameless|150x150px]]
== Node-RED Simplified Flows ==
== Node-RED Simplified Flows ==
'''Flow Node-RED'''
'''Flow Node-RED'''
Line 14: Line 16:
</syntaxhighlight>
</syntaxhighlight>
[[File:Node-RED Simplified Flows img 1.png|center|frameless|1037x1037px]]
[[File:Node-RED Simplified Flows img 1.png|center|frameless|1037x1037px]]
[[Media:Simplified Flows.zip|Simplified Flows.zip]]
 
<table style="border: none; background: transparent; margin: 15px 0; border-collapse: collapse;">
    <td style="padding: 0 0 0 10px; border: none; background: transparent;">
        <span class="atlas-btn">[[Media:Simplified Flows.zip|Simplified Flows]]</span>
    </td>
</table>


'''Analog Inputs'''
'''Analog Inputs'''
Line 21: Line 28:


=== 2. Main Components ===
=== 2. Main Components ===
{| class="wikitable"
{| class="wikitable mix-table"
!Component
!Component
!Function
!Function
Line 47: Line 54:


==== 3.2 ENV Variables ====
==== 3.2 ENV Variables ====
{| class="wikitable"
{| class="wikitable tech-table"
!Variable
!Variable
!Type
!Type
Line 124: Line 131:


==== 4.2 ENV Variables ====
==== 4.2 ENV Variables ====
{| class="wikitable"
{| class="wikitable tech-table"
!Variable
!Variable
!Type
!Type
Line 213: Line 220:


=== 6. Validations and protections implemented ===
=== 6. Validations and protections implemented ===
{| class="wikitable"
{| class="wikitable mix-table"
!Area
!Area
!Validation
!Validation
Line 250: Line 257:


It is composed of two main subflows:
It is composed of two main subflows:
{| class="wikitable"
{| class="wikitable mix-table"
!Component
!Component
!Function
!Function
Line 281: Line 288:


=== 10. MQTT topics ===
=== 10. MQTT topics ===
{| class="wikitable"
{| class="wikitable mix-table"
!Topic
!Topic
!Usage
!Usage
Line 311: Line 318:
   }
   }
}
}
</syntaxhighlight>The expected response contains the states of the inputs in:
</syntaxhighlight>The expected response contains the states of the inputs in:<syntaxhighlight>
 
msg.payload.task.taskResult.DI1..DI4
'''msg.payload.task.taskResult.DI1..DI4'''
</syntaxhighlight>The parser converts the states to booleans:
 
{| class="wikitable mix-table"
The parser converts the states to booleans:
{| class="wikitable"
!State received
!State received
!Value sent to UI
!Value sent to UI
Line 337: Line 342:
{| class="wikitable"
{| class="wikitable"
!Switch
!Switch
!msg.topic
!<code>msg.topic</code>
!ON
!ON
!OFF
!OFF
|-
|-
|DO1
|DO1
|DO1
|<code>DO1</code>
|true
|<code>true</code>
|false
|<code>false</code>
|-
|-
|DO2
|DO2
|DO2
|<code>DO2</code>
|true
|<code>true</code>
|false
|<code>false</code>
|-
|-
|DO3
|DO3
|DO3
|<code>DO3</code>
|true
|<code>true</code>
|false
|<code>false</code>
|-
|-
|DO4
|DO4
|DO4
|<code>DO4</code>
|true
|<code>true</code>
|false
|<code>false</code>
|}
|}
The '''set digital outputs''' function converts the values into physical states:
The '''set digital outputs''' function converts the values into physical states:
{| class="wikitable"
{| class="wikitable mix-table"
!Logical value
!Logical value
!State sent
!State sent
Line 371: Line 376:
|false
|false
|low
|low
|}The command is sent to:
|}The command is sent to:<syntaxhighlight>
'''digitalOutputs/runtime/in'''
digitalOutputs/runtime/in
</syntaxhighlight>


=== 13. ENV variables of the Digital Outputs ===
=== 13. ENV variables of the Digital Outputs ===
{| class="wikitable"
{| class="wikitable mix-table"
!Variable
!Variable
!Default value
!Default value
Line 399: Line 405:


=== 14. Dashboard ===
=== 14. Dashboard ===
{| class="wikitable"
{| class="wikitable mix-table"
!Field
!Field
!Value
!Value
Line 415: Line 421:
|grid
|grid
|}Groups on the page:
|}Groups on the page:
{| class="wikitable"
{| class="wikitable mix-table"
!Group
!Group
!Content
!Content
Line 426: Line 432:
|}
|}
Input LEDs:
Input LEDs:
{| class="wikitable"
{| class="wikitable mix-table"
!Value
!Value
!Color
!Color
Line 437: Line 443:
|}
|}
Output LEDs:
Output LEDs:
{| class="wikitable"
{| class="wikitable mix-table"
!Value
!Value
!Color
!Color