mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
i18n(es-ES) node help screens
This commit is contained in:
parent
2550da9c6e
commit
83279df0fa
@ -15,50 +15,41 @@
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<script type="text/html" data-help-name="function">
|
<script type="text/html" data-help-name="function">
|
||||||
<p>A JavaScript function to run against the messages being received by the node.</p>
|
<p>Una función de JavaScript que se ejecuta en los mensajes que recibe el nodo.</p>
|
||||||
<p>The messages are passed in as a JavaScript object called <code>msg</code>.</p>
|
<p>Los mensajes se pasan como un objeto JavaScript llamado <code>msg</code>.</p>
|
||||||
<p>By convention it will have a <code>msg.payload</code> property containing
|
<p>Por convención, tendrá una propiedad <code>msg.payload</code> que contiene el cuerpo del mensaje.</p>
|
||||||
the body of the message.</p>
|
<p>Se espera que la función devuelva un objeto de mensaje (o varios objetos de mensaje), pero puede optar por no devolver nada para detener un flujo.</p>
|
||||||
<p>The function is expected to return a message object (or multiple message objects), but can choose
|
<p>La pestaña <b>Al iniciar</b> contiene código que se ejecutará cada vez que se inicie el nodo. La pestaña <b>Al detener</b> contiene código que se ejecutará cuando se detenga el nodo.</p>
|
||||||
to return nothing in order to halt a flow.</p>
|
<p>Si el código <b>Al iniciar</b> devuelve un objeto Promise, el nodo no comenzará a manejar mensajes hasta que se resuelva la promesa.</p>
|
||||||
<p>The <b>On Start</b> tab contains code that will be run whenever the node is started.
|
<h3>Detalles</h3>
|
||||||
The <b>On Stop</b> tab contains code that will be run when the node is stopped.</p>
|
<p>Ver la <a target="_blank" href="https://nodered.org/docs/writing-functions.html">documentación online</a> para obtener más información sobre cómo escribir funciones.</p>
|
||||||
<p>If the On Start code returns a Promise object, the node will not start handling messages
|
<h4>Enviando mensajes</h4>
|
||||||
until the promise is resolved.</p>
|
<p>La función puede devolver los mensajes que quieras pasar a los siguientes nodos del flujo o puede llamar a <code>node.send(messages)</code>.</p>
|
||||||
<h3>Details</h3>
|
<p>Puede devolver/enviar:</p>
|
||||||
<p>See the <a target="_blank" href="https://nodered.org/docs/writing-functions.html">online documentation</a>
|
|
||||||
for more information on writing functions.</p>
|
|
||||||
<h4>Sending messages</h4>
|
|
||||||
<p>The function can either return the messages it wants to pass on to the next nodes
|
|
||||||
in the flow, or can call <code>node.send(messages)</code>.</p>
|
|
||||||
<p>It can return/send:</p>
|
|
||||||
<ul>
|
<ul>
|
||||||
<li>a single message object - passed to nodes connected to the first output</li>
|
<li>un único objeto de mensaje - pasado a los nodos conectados a la primera salida</li>
|
||||||
<li>an array of message objects - passed to nodes connected to the corresponding outputs</li>
|
<li>una matriz de objetos de mensaje - pasados a nodos conectados a las salidas correspondientes</li>
|
||||||
</ul>
|
</ul>
|
||||||
<p>Note: The setup code is executed during the initialization of nodes. Therefore, if <code>node.send</code> is called in the setup tab, subsequent nodes may not be able to receive the message.</p>
|
<p>Nota: El código de configuración se ejecuta durante la inicialización de los nodos. Por lo tanto, si se llama a <code>node.send</code> en la pestaña de configuración, es posible que los nodos posteriores no puedan recibir el mensaje.</p>
|
||||||
<p>If any element of the array is itself an array of messages, multiple
|
<p>Si algún elemento de la matriz es en sí mismo una matriz de mensajes, se envían varios mensajes a la salida correspondiente.</p>
|
||||||
messages are sent to the corresponding output.</p>
|
<p>Si se devuelve nulo, ya sea solo o como elemento de la matriz, no se transmite ningún mensaje.</p>
|
||||||
<p>If null is returned, either by itself or as an element of the array, no
|
<h4>Registro y manejo de errores</h4>
|
||||||
message is passed on.</p>
|
<p>Para registrar cualquier información o informar de un error, están disponibles las siguientes funciones:</p>
|
||||||
<h4>Logging and Error Handling</h4>
|
|
||||||
<p>To log any information, or report an error, the following functions are available:</p>
|
|
||||||
<ul>
|
<ul>
|
||||||
<li><code>node.log("Log message")</code></li>
|
<li><code>node.log("Log message")</code></li>
|
||||||
<li><code>node.warn("Warning")</code></li>
|
<li><code>node.warn("Warning")</code></li>
|
||||||
<li><code>node.error("Error")</code></li>
|
<li><code>node.error("Error")</code></li>
|
||||||
</ul>
|
</ul>
|
||||||
</p>
|
</p>
|
||||||
<p>The Catch node can also be used to handle errors. To invoke a Catch node,
|
<p>El nodo Captura (Catch) también se puede utilizar para gestionar errores. Para invocar un nodo Catch, pasa <code>msg</code> como segundo argumento a <code>node.error</code>:</p>
|
||||||
pass <code>msg</code> as a second argument to <code>node.error</code>:</p>
|
|
||||||
<pre>node.error("Error",msg);</pre>
|
<pre>node.error("Error",msg);</pre>
|
||||||
<h4>Accessing Node Information</h4>
|
<h4>Accediendo a la información del nodo</h4>
|
||||||
<p>The following properties are available to access information about the node:</p>
|
<p>Las siguientes propiedades están disponibles para acceder a información sobre el nodo:</p>
|
||||||
<ul>
|
<ul>
|
||||||
<li><code>node.id</code> - id of the node</li>
|
<li><code>node.id</code> - identificación del nodo</li>
|
||||||
<li><code>node.name</code> - name of the node</li>
|
<li><code>node.name</code> - nombre del nodo</li>
|
||||||
<li><code>node.outputCount</code> - number of node outputs</li>
|
<li><code>node.outputCount</code> - número de salidas de nodo</li>
|
||||||
</ul>
|
</ul>
|
||||||
<h4>Using environment variables</h4>
|
<h4>Usar variables de entorno</h4>
|
||||||
<p>Environment variables can be accessed using <code>env.get("MY_ENV_VAR")</code>.</p>
|
<p>Se puede acceder a las variables de entorno utilizando <code>env.get("MY_ENV_VAR")</code>.</p>
|
||||||
</script>
|
</script>
|
||||||
|
@ -15,36 +15,23 @@
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<script type="text/html" data-help-name="switch">
|
<script type="text/html" data-help-name="switch">
|
||||||
<p>Route messages based on their property values or sequence position.</p>
|
<p>Enruta mensajes según los valores de sus propiedades o la posición de la secuencia.</p>
|
||||||
<h3>Details</h3>
|
<h3>Detalles</h3>
|
||||||
<p>When a message arrives, the node will evaluate each of the defined rules
|
<p>Cuando llega un mensaje, el nodo evaluará cada una de las reglas definidas y reenviará el mensaje a las salidas correspondientes de cualquier regla coincidente.</p>
|
||||||
and forward the message to the corresponding outputs of any matching rules.</p>
|
<p>Opcionalmente, se puede configurar el nodo para que deje de evaluar reglas una vez que encuentre una que coincida.</p>
|
||||||
<p>Optionally, the node can be set to stop evaluating rules once it finds one
|
<p>Las reglas se pueden evaluar en función de una propiedad de mensaje individual, una propiedad de flujo o contexto global, una variable de entorno o el resultado de una expresión JSONata.</p>
|
||||||
that matches.</p>
|
<h4>Reglas</h4>
|
||||||
<p>The rules can be evaluated against an individual message property, a flow or global
|
<p>Hay cuatro tipos de reglas.:</p>
|
||||||
context property, environment variable or the result of a JSONata expression.</p>
|
|
||||||
<h4>Rules</h4>
|
|
||||||
<p>There are four types of rule:</p>
|
|
||||||
<ol>
|
<ol>
|
||||||
<li><b>Value</b> rules are evaluated against the configured property</li>
|
Las reglas <li><b>valor</b> se evalúan con respecto a la propiedad configurada</li>
|
||||||
<li><b>Sequence</b> rules can be used on message sequences, such as those
|
Las reglas <li><b>Secuencia</b> se pueden utilizar en secuencias de mensajes, como las generadas por el nodo Dividir</li>
|
||||||
generated by the Split node</li>
|
<li>Se puede proporcionar una <b>expresión</b> JSONata que se evaluará en relación con todo el mensaje y coincidirá si la expresión devuelve un valor verdadero.</li>
|
||||||
<li>A JSONata <b>Expression</b> can be provided that will be evaluated
|
<li>Se puede utilizar una regla <b>de lo contrario</b> para hacer coincidir si ninguna de las reglas anteriores coincide.</li>
|
||||||
against the whole message and will match if the expression returns
|
|
||||||
a true value.</li>
|
|
||||||
<li>An <b>Otherwise</b> rule can be used to match if none of the preceeding
|
|
||||||
rules have matched.</li>
|
|
||||||
</ol>
|
</ol>
|
||||||
<h4>Notes</h4>
|
<h4>Notas</h4>
|
||||||
<p>The <code>is true/false</code> and <code>is null</code> rules perform strict
|
<p>Las reglas <code>verdadero/falso</code> y <code>es nulo</code> realizan comparaciones estrictas con esos tipos. No convierten entre tipos.</p>
|
||||||
comparisons against those types. They do not convert between types.</p>
|
<p>Las reglas <code>está vacío</code> y <code>no está vacío</code> se pueden utilizar para probar la longitud de cadenas, matrices y buffers, o el número de propiedades que tiene un objeto. Ninguna regla se aprobará si la propiedad que se está probando tiene un valor <code>booleano</code>, <code>null</code> o <code>indefinido</code>.</p>
|
||||||
<p>The <code>is empty</code> and <code>is not empty</code> rules can be used to test the length of Strings, Arrays and Buffers, or the number of properties an Object has. Neither rule will pass if the property being tested has a <code>boolean</code>, <code>null</code>
|
<h4>Manejo de secuencias de mensajes</h4>
|
||||||
or <code>undefined</code> value.</p>
|
<p>De forma predeterminada, el nodo no modifica la propiedad <code>msg.parts</code> de los mensajes que forman parte de una secuencia.</p>
|
||||||
<h4>Handling message sequences</h4>
|
<p>La opción <b>recrear secuencias de mensajes</b> se puede habilitar para generar nuevas secuencias de mensajes para cada regla que coincida. En este modo, el nodo almacenará en buffer toda la secuencia entrante antes de enviar las nuevas secuencias. La configuración de tiempo de ejecución <code>nodeMessageBufferMaxLength</code> se puede utilizar para limitar cuántos nodos de mensajes almacenarán en el buffer.</p>
|
||||||
<p>By default, the node does not modify the <code>msg.parts</code> property of messages
|
|
||||||
that are part of a sequence.</p>
|
|
||||||
<p>The <b>recreate message sequences</b> option can be enabled to generate new message sequences
|
|
||||||
for each rule that matches. In this mode, the node will buffer the entire incoming
|
|
||||||
sequence before sending the new sequences on. The runtime setting <code>nodeMessageBufferMaxLength</code>
|
|
||||||
can be used to limit how many messages nodes will buffer.</p>
|
|
||||||
</script>
|
</script>
|
||||||
|
@ -15,25 +15,19 @@
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<script type="text/html" data-help-name="change">
|
<script type="text/html" data-help-name="change">
|
||||||
<p>Set, change, delete or move properties of a message, flow context or global context.</p>
|
<p>Establecer, cambiar, eliminar o mover propiedades de un mensaje, contexto de flujo o contexto global.</p>
|
||||||
<p>The node can specify multiple rules that will be applied in the order they are defined.</p>
|
<p>El nodo puede especificar múltiples reglas que se aplicarán en el orden en que se definan.</p>
|
||||||
<h3>Details</h3>
|
<h3>Detalles</h3>
|
||||||
<p>The available operations are:</p>
|
<p>Las operaciones disponibles son:</p>
|
||||||
<dl class="message-properties">
|
<dl class="message-properties">
|
||||||
<dt>Set</dt>
|
<dt>Establecer</dt>
|
||||||
<dd>set a property. The value can be a variety of different types, or
|
<dd>establecer una propiedad. El valor puede ser de varios tipos diferentes o puede tomarse de un mensaje existente o de una propiedad de contexto.</dd>
|
||||||
can be taken from an existing message or context property.</dd>
|
<dt>Cambiar</dt>
|
||||||
<dt>Change</dt>
|
<dd>buscar y reemplazar partes de la propiedad. Si las expresiones regulares están habilitadas, la propiedad "reemplazar con" puede incluir grupos de captura, por ejemplo <code>$1</code>. Reemplazar solo cambiará el tipo si hay una coincidencia completa.</dd>
|
||||||
<dd>search & replace parts of the property. If regular expressions
|
<dt>Eliminar</dt>
|
||||||
are enabled, the "replace with" property can include capture groups, for
|
<dd>eliminar una propiedad.</dd>
|
||||||
example <code>$1</code>. Replace will only change the type if there
|
<dt>Mover</dt>
|
||||||
is a complete match.</dd>
|
<dd>mover o cambiar el nombre de una propiedad.</dd>
|
||||||
<dt>Delete</dt>
|
|
||||||
<dd>delete a property.</dd>
|
|
||||||
<dt>Move</dt>
|
|
||||||
<dd>move or rename a property.</dd>
|
|
||||||
</dl>
|
</dl>
|
||||||
<p>The "expression" type uses the <a href="http://jsonata.org/" target="_new">JSONata</a>
|
<p>El tipo "expresión" utiliza el lenguaje de consulta y expresión <a href="http://jsonata.org/" target="_new">JSONata</a>.</p>
|
||||||
query and expression language.
|
|
||||||
</p>
|
|
||||||
</script>
|
</script>
|
||||||
|
@ -15,44 +15,37 @@
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<script type="text/html" data-help-name="template">
|
<script type="text/html" data-help-name="template">
|
||||||
<p>Sets a property based on the provided template.</p>
|
<p>Establece una propiedad basada en la plantilla proporcionada.</p>
|
||||||
<h3>Inputs</h3>
|
<h3>Entradas</h3>
|
||||||
<dl class="message-properties">
|
<dl class="message-properties">
|
||||||
<dt>msg <span class="property-type">object</span></dt>
|
<dt>msg <span class="property-type">objeto</span></dt>
|
||||||
<dd>A msg object containing information to populate the template.</dd>
|
<dd>Un objeto de mensaje que contiene información para completar la plantilla.</dd>
|
||||||
<dt class="optional">template <span class="property-type">string</span></dt>
|
<dt class="optional">template <span class="property-type">texto</span></dt>
|
||||||
<dd>A template to be populated from <code>msg.payload</code>. If not configured in the edit panel,
|
<dd>Una plantilla que se completará desde <code>msg.payload</code>. Si no está configurado en el panel de edición, esto se puede configurar como una propiedad de msg.</dd>
|
||||||
this can be set as a property of msg.</dd>
|
|
||||||
</dl>
|
</dl>
|
||||||
<h3>Outputs</h3>
|
<h3>Salidas</h3>
|
||||||
<dl class="message-properties">
|
<dl class="message-properties">
|
||||||
<dt>msg <span class="property-type">object</span></dt>
|
<dt>msg <span class="property-type">objeto</span></dt>
|
||||||
<dd>a msg with a property set by populating the configured template with properties from the incoming msg.</dd>
|
<dd>un mensaje con una propiedad establecida al completar la plantilla configurada con propiedades del mensaje entrante.</dd>
|
||||||
</dl>
|
</dl>
|
||||||
<h3>Details</h3>
|
<h3>Detalles</h3>
|
||||||
<p>By default this uses the <i><a href="http://mustache.github.io/mustache.5.html" target="_blank">mustache</a></i>
|
<p>De forma predeterminada, esto utiliza el formato <i><a href="http://mustache.github.io/mustache.5.html" target="_blank">mustache</a></i>, pero se puede desactivar si es necesario.</p>
|
||||||
format, but this can be switched off if required.</p>
|
<p>Por ejemplo, cuando una plantilla de:
|
||||||
<p>For example, when a template of:
|
<pre>Hola {{payload.name}}. Hoy es {{date}}</pre>
|
||||||
<pre>Hello {{payload.name}}. Today is {{date}}</pre>
|
<p>recibe un mensaje que contiene:
|
||||||
<p>receives a message containing:
|
|
||||||
<pre>{
|
<pre>{
|
||||||
date: "Monday",
|
date: "lunes",
|
||||||
payload: {
|
payload: {
|
||||||
name: "Fred"
|
name: "Fred"
|
||||||
}
|
}
|
||||||
}</pre>
|
}</pre>
|
||||||
<p>The resulting property will be:
|
<p>La propiedad resultante será:
|
||||||
<pre>Hello Fred. Today is Monday</pre>
|
<pre>Hola Fred. Hoy es lunes</pre>
|
||||||
<p>It is possible to use a property from the flow context or global context. Just use <code>{{flow.name}}</code> or
|
<p>Es posible utilizar una propiedad del contexto de flujo o del contexto global. Simplemente usa <code>{{flow.name}}</code> o <code>{{global.name}}</code>, o para el almacén persistente <code>store</code> usa <code>{{ flow[store].name}}</code> o <code>{{global[store].name}}</code>.
|
||||||
<code>{{global.name}}</code>, or for persistable store <code>store</code> use <code>{{flow[store].name}}</code> or
|
<p><b>Nota: </b>De forma predeterminada, <i>mustache</i> codificará cualquier entidad HTML o no alfanumérica en los valores que sustituye. Para evitar esto, utilice llaves <code>{{{triple}}}</code>.</p>
|
||||||
<code>{{global[store].name}}</code>.
|
<p>Si necesita utilizar <code>{{ }}</code> en su contenido, puede cambiar los caracteres utilizados para marcar las secciones con plantilla. Por ejemplo, para usar <code>[[ ]]</code> en su lugar, agregue la siguiente línea en la parte superior de la plantilla:</p>
|
||||||
<p><b>Note: </b>By default, <i>mustache</i> will escape any non-alphanumeric or HTML entities in the values it substitutes.
|
<pre>{{=[[ ]]=}}</pre>
|
||||||
To prevent this, use <code>{{{triple}}}</code> braces.</p>
|
<h4>Usando variables de entorno</h4>
|
||||||
<p>If you need to use <code>{{ }}</code> within your content, you can change the characters
|
<p>El nodo de plantilla puede acceder a variables de entorno utilizando la sintaxis:</p>
|
||||||
used to mark the templated sections. For example, to use <code>[[ ]]</code>
|
<pre>Mi color favorito es {{env.COLOUR}}.</pre>
|
||||||
instead, add the following line to the top of the template:</p>
|
|
||||||
<pre>{{=[[ ]]=}}</pre>
|
|
||||||
<h4>Using environment variables</h4>
|
|
||||||
<p>The template node can access environment variables using the syntax:</p>
|
|
||||||
<pre>My favourite colour is {{env.COLOUR}}.</pre>
|
|
||||||
</script>
|
</script>
|
||||||
|
@ -15,50 +15,25 @@
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<script type="text/html" data-help-name="delay">
|
<script type="text/html" data-help-name="delay">
|
||||||
<p>Delays each message passing through the node or limits the rate at which they can pass.</p>
|
<p>Retrasa cada mensaje que pasa por el nodo o limita la velocidad a la que pueden pasar.</p>
|
||||||
<h3>Inputs</h3>
|
<h3>Entradas</h3>
|
||||||
<dl class="message-properties">
|
<dl class="message-properties">
|
||||||
<dt class="optional">delay <span class="property-type">number</span></dt>
|
<dt class="optional">delay <span class="property-type">número</span></dt>
|
||||||
<dd>Sets the delay, in milliseconds, to be applied to the message. This
|
<dd>Establece el retraso, en milisegundos, que se aplicará al mensaje. Esta opción solo se aplica si el nodo está configurado para permitir que el mensaje anule el intervalo de retardo predeterminado configurado.</dd>
|
||||||
option only applies if the node is configured to allow the message to
|
<dt class="optional">rate <span class="property-type">número</span></dt>
|
||||||
override the configured default delay interval.</dd>
|
<dd>Establece el valor de la tasa en milisegundos entre mensajes. Esta propiedad sobrescribe el valor de tasa existente definido en la configuración del nodo cuando recibe el mensaje que contiene el valor <code>msg.rate</code> en milisegundos. Esta opción solo se aplica si el nodo está configurado para permitir que el mensaje anule el intervalo de velocidad predeterminado configurado.</dd>
|
||||||
<dt class="optional">rate <span class="property-type">number</span></dt>
|
|
||||||
<dd>Sets the rate value in milliseconds between messages.
|
|
||||||
This node overwrites the existing rate value defined in the node configuration
|
|
||||||
when it receives the message which contains <code>msg.rate</code> value in milliSeconds.
|
|
||||||
This option only applies if the node is configured to allow the message to
|
|
||||||
override the configured default rate interval.</dd>
|
|
||||||
<dt class="optional">reset</dt>
|
<dt class="optional">reset</dt>
|
||||||
<dd>If the received message has this property set to any value, all
|
<dd>Si el mensaje recibido tiene esta propiedad establecida en cualquier valor, todos los mensajes pendientes retenidos por el nodo se borran sin enviarse.</dd>
|
||||||
outstanding messages held by the node are cleared without being sent.</dd>
|
|
||||||
<dt class="optional">flush</dt>
|
<dt class="optional">flush</dt>
|
||||||
<dd>If the received message has this property set to a numeric value then that many messages
|
<dd>Si el mensaje recibido tiene esta propiedad establecida en un valor numérico, esa cantidad de mensajes se publicará inmediatamente. Si se establece en cualquier otro tipo (por ejemplo, booleano), todos los mensajes pendientes retenidos por el nodo se envían inmediatamente.</dd>
|
||||||
will be released immediately. If set to any other type (e.g. boolean), then all
|
|
||||||
outstanding messages held by the node are sent immediately.</dd>
|
|
||||||
<dt class="optional">toFront</dt>
|
<dt class="optional">toFront</dt>
|
||||||
<dd>When in rate limit mode, if the received message has this property set to boolean <code>true</code>,
|
<dd>Cuando está en modo de límite de velocidad, si el mensaje recibido tiene esta propiedad establecida en booleano <code>verdadero</code>, entonces el mensaje se envía al frente de la cola y se publicará a continuación. Esto se puede utilizar en combinación con <code>msg.flush=1</code> para reenviar inmediatamente.
|
||||||
then the message is pushed to the front of the queue and will be released next.
|
|
||||||
This can be used in combination with <code>msg.flush=1</code> to resend immediately.
|
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
</dl>
|
||||||
<h3>Details</h3>
|
<h3>Detalles</h3>
|
||||||
<p>When configured to delay messages, the delay interval can be a fixed value,
|
<p>Cuando se configura para retrasar mensajes, el intervalo de retraso puede ser un valor fijo, un valor aleatorio dentro de un rango o establecerse dinámicamente para cada mensaje. Cada mensaje se retrasa independientemente de cualquier otro mensaje, según la hora de su llegada.</p>
|
||||||
a random value within a range or dynamically set for each message.
|
<p>Cuando se configura para calificar los mensajes con límite, su entrega se distribuye durante el período de tiempo configurado. El estado muestra la cantidad de mensajes actualmente en la cola. Opcionalmente, puede descartar mensajes intermedios a medida que llegan.</p>
|
||||||
Each message is delayed independently of any other message, based on
|
<p>Si se configura para permitir modificar la frecuencia, la nueva tasa se aplicará inmediatamente y permanecerá vigente hasta que se cambie nuevamente, se restablezca el nodo o se reinicie el flujo.</p>
|
||||||
the time of its arrival.
|
<p>La limitación de velocidad se puede aplicar a todos los mensajes o agruparlos según su valor <code>msg.topic</code>. Al agrupar, los mensajes intermedios se eliminan automáticamente. En cada intervalo de tiempo, el nodo puede publicar el mensaje más reciente para todos los temas o publicar el mensaje más reciente para el siguiente tema.</p>
|
||||||
</p>
|
<p><b>Nota</b>: En el modo de límite de velocidad, la profundidad máxima de la cola se puede establecer mediante una propiedad en su archivo <i>settings.js</i>. Por ejemplo <code>nodeMessageBufferMaxLength: 1000,</code></p>
|
||||||
<p>When configured to rate limit messages, their delivery is spread across
|
|
||||||
the configured time period. The status shows the number of messages currently in the queue.
|
|
||||||
It can optionally discard intermediate messages as they arrive.</p>
|
|
||||||
</p>
|
|
||||||
<p>If set to allow override of the rate, the new rate will be applied immediately,
|
|
||||||
and will remain in effect until changed again, the node is reset, or the flow is restarted.</p>
|
|
||||||
<p>The rate limiting can be applied to all messages, or group them according to
|
|
||||||
their <code>msg.topic</code> value. When grouping, intermediate messages are
|
|
||||||
automatically dropped. At each time interval, the node can either release
|
|
||||||
the most recent message for all topics, or release the most recent message
|
|
||||||
for the next topic.
|
|
||||||
</p>
|
|
||||||
<p><b>Note</b>: In rate limit mode the maximum queue depth can be set by a property in your
|
|
||||||
<i>settings.js</i> file. For example <code>nodeMessageBufferMaxLength: 1000,</code></p>
|
|
||||||
</script>
|
</script>
|
||||||
|
@ -15,36 +15,23 @@
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<script type="text/html" data-help-name="trigger">
|
<script type="text/html" data-help-name="trigger">
|
||||||
<p>When triggered, can send a message, and then optionally a second message, unless extended or reset.</p>
|
<p>Cuando se activa, puede enviar un mensaje y luego, opcionalmente, un segundo mensaje, a menos que se extienda o se restablezca.</p>
|
||||||
|
|
||||||
<h3>Inputs</h3>
|
<h3>Entradas</h3>
|
||||||
<dl class="message-properties">
|
<dl class="message-properties">
|
||||||
<dt class="optional">delay <span class="property-type">number</span></dt>
|
<dt class="optional">delay <span class="property-type">número</span></dt>
|
||||||
<dd>Sets the delay, in milliseconds, to be applied to the message. This option only applies if the node is configured to allow the message to override the configured default delay interval.</dd>
|
<dd>Establece el retraso, en milisegundos, que se aplicará al mensaje. Esta opción solo se aplica si el nodo está configurado para permitir que el mensaje anule el intervalo de retardo predeterminado configurado.</dd>
|
||||||
<dt class="optional">reset</dt>
|
<dt class="optional">reset</dt>
|
||||||
<dd>If a message is received with this property, any timeout or repeat
|
<dd>Si se recibe un mensaje con esta propiedad, se borrará cualquier tiempo de espera o repetición actualmente en curso y no se activará ningún mensaje.</dd>
|
||||||
currently in progress will be cleared and no message triggered.</dd>
|
|
||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
<h3>Details</h3>
|
<h3>Detalles</h3>
|
||||||
<p>This node can be used to create a timeout within a flow. By default, when
|
<p>Este nodo se puede utilizar para crear un tiempo de espera dentro de un flujo. De forma predeterminada, cuando recibe un mensaje, envía un mensaje con una <code>carga</code> de <code>1</code>. Luego espera 250 ms antes de enviar un segundo mensaje con una <code>carga</code> de <code>0</code>. Esto podría usarse, por ejemplo, para hacer parpadear un LED conectado a un pin GPIO de Raspberry Pi.</p>
|
||||||
it receives a message, it sends on a message with a <code>payload</code> of <code>1</code>.
|
<p>Las cargas de cada mensaje enviado se pueden configurar con una variedad de valores, incluida la opción de no enviar nada. Por ejemplo, configurando el mensaje inicial en <i>nada</i> y seleccionando la opción de extender el temporizador con cada mensaje recibido, el nodo actuará como un temporizador de vigilancia; solo enviar un mensaje si no se recibe nada dentro del intervalo establecido.</p>
|
||||||
It then waits 250ms before sending a second message with a <code>payload</code> of <code>0</code>.
|
<p>Si se establece en un tipo <i>cadena</i>, el nodo admite la sintaxis de plantilla mustache.</p>
|
||||||
This could be used, for example, to blink an LED attached to a Raspberry Pi GPIO pin.</p>
|
<p>El retraso entre el envío de mensajes puede ser anulado por <code>msg.delay</code> si esa opción está habilitada en el nodo. El valor debe proporcionarse en milisegundos.</p>
|
||||||
<p>The payloads of each message sent can be configured to a variety of values, including
|
<p>Si el nodo recibe un mensaje con una propiedad <code>reset</code> o una <code>carga</code> que coincide con la configurada en el nodo, cualquier tiempo de espera o repetición actualmente en curso se borrará y no se activa ningún mensaje.</p>
|
||||||
the option to not send anything. For example, setting the initial message to <i>nothing</i> and
|
<p>El nodo se puede configurar para reenviar un mensaje a intervalos regulares hasta que se restablezca mediante un mensaje recibido.</p>
|
||||||
selecting the option to extend the timer with each received message, the node will
|
<p>Opcionalmente, el nodo se puede configurar para tratar los mensajes como si fueran secuencias separadas, utilizando una propiedad msg para identificar cada secuencia. <code>msg.topic</code> predeterminado.</p>
|
||||||
act as a watchdog timer; only sending a message if nothing is received within the
|
<p>El estado indica que el nodo está actualmente activo. Si se utilizan varias transmisiones, el estado indica la cantidad de transmisiones que se están realizando.</p>
|
||||||
set interval.</p>
|
|
||||||
<p>If set to a <i>string</i> type, the node supports the mustache template syntax.</p>
|
|
||||||
<p>The delay between sending messages can be overridden by <code>msg.delay</code> if that option is enabled in the node. The value must be provided in milliseconds.</p>
|
|
||||||
<p>If the node receives a message with a <code>reset</code> property, or a <code>payload</code>
|
|
||||||
that matches that configured in the node, any timeout or repeat currently in
|
|
||||||
progress will be cleared and no message triggered.</p>
|
|
||||||
<p>The node can be configured to resend a message at a regular interval until it
|
|
||||||
is reset by a received message.</p>
|
|
||||||
<p>Optionally, the node can be configured to treat messages as if they are separate streams,
|
|
||||||
using a msg property to identify each stream. Default <code>msg.topic</code>.</p>
|
|
||||||
<p>The status indicates the node is currently active. If multiple streams are used the status
|
|
||||||
indicates the number of streams being held.</p>
|
|
||||||
</script>
|
</script>
|
||||||
|
@ -15,70 +15,61 @@
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<script type="text/html" data-help-name="exec">
|
<script type="text/html" data-help-name="exec">
|
||||||
<p>Runs a system command and returns its output.</p>
|
<p>Ejecuta un comando del sistema y devuelve su salida.</p>
|
||||||
<p>The node can be configured to either wait until the command completes, or to
|
<p>El nodo se puede configurar para esperar hasta que se complete el comando o para enviar su salida a medida que el comando lo genera.</p>
|
||||||
send its output as the command generates it.</p>
|
<p>El comando que se ejecuta puede configurarse en el nodo o proporcionarse mediante el mensaje recibido.</p>
|
||||||
<p>The command that is run can be configured in the node or provided by the received
|
<h3>Entradas</h3>
|
||||||
message.</p>
|
|
||||||
|
|
||||||
<h3>Inputs</h3>
|
|
||||||
<dl class="message-properties">
|
<dl class="message-properties">
|
||||||
<dt class="optional">payload <span class="property-type">string</span></dt>
|
<dt class="optional">payload <span class="property-type">texto</span></dt>
|
||||||
<dd>if configured to do so, will be appended to the executed command.</dd>
|
<dd>si está configurado para hacerlo, se agregará al comando ejecutado.</dd>
|
||||||
<dt class="optional">kill <span class="property-type">string</span></dt>
|
<dt class="optional">kill <span class="property-type">texto</span></dt>
|
||||||
<dd>the type of kill signal to send an existing exec node process.</dd>
|
<dd>el tipo de señal de interrupción para enviar al proceso de ejecución existente.</dd>
|
||||||
<dt class="optional">pid <span class="property-type">number|string</span></dt>
|
<dt class="optional">pid <span class="property-type">número|texto</span></dt>
|
||||||
<dd>the process ID of an existing exec node process to kill.</dd>
|
<dd>el ID de proceso del proceso de ejecución existente que se va a eliminar.</dd>
|
||||||
</dl>
|
</dl>
|
||||||
|
|
||||||
<h3>Outputs</h3>
|
<h3>Salidas</h3>
|
||||||
<ol class="node-ports">
|
<ol class="node-ports">
|
||||||
<li>Standard output
|
<li>Salida estándar
|
||||||
<dl class="message-properties">
|
<dl class="message-properties">
|
||||||
<dt>payload <span class="property-type">string</span></dt>
|
<dt>payload <span class="property-type">texto</span></dt>
|
||||||
<dd>the standard output of the command.</dd>
|
<dd>la salida estándar del comando.</dd>
|
||||||
</dl>
|
</dl>
|
||||||
<dl class="message-properties">
|
<dl class="message-properties">
|
||||||
<dt>rc <span class="property-type">object</span></dt>
|
<dt>rc <span class="property-type">objeto</span></dt>
|
||||||
<dd>exec mode only, a copy of the return code object (also available on port 3)</dd>
|
<dd>solo en modo ejecución, una copia del objeto de código de retorno (también disponible en el puerto 3)</dd>
|
||||||
</dl>
|
</dl>
|
||||||
</li>
|
</li>
|
||||||
<li>Standard error
|
<li>Salida error
|
||||||
<dl class="message-properties">
|
<dl class="message-properties">
|
||||||
<dt>payload <span class="property-type">string</span></dt>
|
<dt>payload <span class="property-type">texto</span></dt>
|
||||||
<dd>the standard error of the command.</dd>
|
<dd>el error estándar del comando.</dd>
|
||||||
</dl>
|
</dl>
|
||||||
<dl class="message-properties">
|
<dl class="message-properties">
|
||||||
<dt>rc <span class="property-type">object</span></dt>
|
<dt>rc <span class="property-type">objeto</span></dt>
|
||||||
<dd>exec mode only, a copy of the return code object (also available on port 3)</dd>
|
<dd>solo en modo ejecución, una copia del objeto de código de retorno (también disponible en el puerto 3)</dd>
|
||||||
</dl>
|
</dl>
|
||||||
</li>
|
</li>
|
||||||
<li>Return code
|
<li>Código de retorno
|
||||||
<dl class="message-properties">
|
<dl class="message-properties">
|
||||||
<dt>payload <span class="property-type">object</span></dt>
|
<dt>payload <span class="property-type">objeto</span></dt>
|
||||||
<dd>an object containing the return code, and possibly <code>message</code>, <code>signal</code> properties.</dd>
|
<dd>un objeto que contiene el código de retorno y posiblemente las propiedades <code>message</code>, <code>signal</code>.</dd>
|
||||||
</dl>
|
</dl>
|
||||||
</li>
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
<h3>Details</h3>
|
<h3>Detalles</h3>
|
||||||
<p>By default uses the <code>exec</code> system call which calls the command, waits for it to complete, and then
|
<p>De forma predeterminada, utiliza la llamada al sistema <code>exec</code> que llama al comando, espera a que se complete y luego devuelve el resultado. Por ejemplo, un comando exitoso debe tener un código de retorno de <code>{ code: 0 }</code>.</p>
|
||||||
returns the output. For example a successful command should have a return code of <code>{ code: 0 }</code>.</p>
|
<p>Opcionalmente, puedes usar <code>spawn</code> en su lugar, que devuelve la salida de stdout y stderr a medida que se ejecuta el comando, generalmente una línea a la vez. Al finalizar, devuelve un objeto en el tercer puerto. Por ejemplo, un comando exitoso debería devolver <code>{ code: 0 }</code>.</p>
|
||||||
<p>Optionally can use <code>spawn</code> instead, which returns the output from stdout and stderr
|
<p>Los errores pueden devolver información adicional en el tercer puerto <code>msg.payload</code>, como una cadena <code>message</code>, <code>señal</code>.</p>
|
||||||
as the command runs, usually one line at a time. On completion it then returns an object
|
<p>El comando que se ejecuta se define dentro del nodo, con una opción para agregar <code>msg.payload</code> y un conjunto adicional de parámetros.</p>
|
||||||
on the 3rd port. For example, a successful command should return <code>{ code: 0 }</code>.</p>
|
<p>Los comandos o parámetros con espacios deben estar entre comillas - <code>"Este es un solo parámetro"</code></p>
|
||||||
<p>Errors may return extra information on the 3rd port <code>msg.payload</code>, such as a <code>message</code> string,
|
<p>La <code>carga</code> devuelta suele ser una <i>cadena</i>, a menos que se detecten caracteres que no sean UTF8, en cuyo caso es un <i>búfer</i>.</p>
|
||||||
<code>signal</code> string.</p>
|
<p>El icono de estado del nodo y el PID serán visibles mientras el nodo esté activo. Los cambios a esto pueden ser leídos por el nodo <code>Estado</code>.</p>
|
||||||
<p>The command that is run is defined within the node, with an option to append <code>msg.payload</code> and a further set of parameters.</p>
|
<p>La opción <code>Ocultar consola</code> ocultará la consola de procesos que normalmente se muestra en los sistemas Windows.</p>
|
||||||
<p>Commands or parameters with spaces should be enclosed in quotes - <code>"This is a single parameter"</code></p>
|
<h4>Eliminando Procesos</h4>
|
||||||
<p>The returned <code>payload</code> is usually a <i>string</i>, unless non-UTF8 characters are detected, in which
|
<p>Enviar <code>msg.kill</code> eliminará un único proceso activo. <code>msg.kill</code> debe ser una cadena que contenga el tipo de señal que se enviará, por ejemplo, <code>SIGINT</code>, <code>SIGQUIT</code> o <code>SIGHUP</code>.
|
||||||
case it is a <i>buffer</i>.</p>
|
El valor predeterminado es <code>SIGTERM</code> si se establece en una cadena vacía.</p>
|
||||||
<p>The node's status icon and PID will be visible while the node is active. Changes to this can be read by the <code>Status</code> node.</p>
|
<p>Si el nodo tiene más de un proceso en ejecución, entonces <code>msg.pid</code> también debe configurarse con el valor del PID que se va a eliminar.</p>
|
||||||
<p>The <code>Hide console</code> option will hide the process console normally shown on Windows systems.</p>
|
<p>Si se proporciona un valor en el campo <code>Timeout</code>, si el proceso no se ha completado cuando haya transcurrido el número de segundos especificado, el proceso se finalizará automáticamente</p>
|
||||||
<h4>Killing processes</h4>
|
<p>Consejo: si ejecutas una aplicación Python, es posible que necesites usar el parámetro <code>-u</code> para detener la salida que se almacena en el búfer.</p>
|
||||||
<p>Sending <code>msg.kill</code> will kill a single active process. <code>msg.kill</code> should be a string containing
|
|
||||||
the type of signal to be sent, for example, <code>SIGINT</code>, <code>SIGQUIT</code> or <code>SIGHUP</code>.
|
|
||||||
Defaults to <code>SIGTERM</code> if set to an empty string.</p>
|
|
||||||
<p>If the node has more than one process running then <code>msg.pid</code> must also be set with the value of the PID to be killed.</p>
|
|
||||||
<p>If a value is provided in the <code>Timeout</code> field then, if the process has not completed when the specified number of seconds has elapsed, the process will be killed automatically</p>
|
|
||||||
<p>Tip: if running a Python app you may need to use the <code>-u</code> parameter to stop the output being buffered.</p>
|
|
||||||
</script>
|
</script>
|
||||||
|
@ -1,41 +1,32 @@
|
|||||||
<script type="text/html" data-help-name="rbe">
|
<script type="text/html" data-help-name="rbe">
|
||||||
<p>Report by Exception (RBE) node - only passes on data if the payload has changed.
|
<p>Nodo Informe por excepción (RBE): solo transmite datos si la carga ha cambiado.
|
||||||
It can also block unless, or ignore if the value changes by a specified amount (Dead- and Narrowband mode).</p>
|
También puede bloquear o ignorar si el valor cambia en una cantidad específica (modo de banda muerta y de banda estrecha).</p>
|
||||||
<h3>Inputs</h3>
|
<h3>Entradas</h3>
|
||||||
<dl class="message-properties">
|
<dl class="message-properties">
|
||||||
<dt>payload
|
<dt>payload
|
||||||
<span class="property-type">number | string | (object)</span>
|
<span class="property-type">número | texto | (objeto)</span>
|
||||||
</dt>
|
</dt>
|
||||||
<dd>RBE mode will accept numbers, strings, and simple objects.
|
<dd>El modo RBE aceptará números, cadenas y objetos simples.
|
||||||
Other modes must provide a parseable number.</dd>
|
Otros modos deben proporcionar un número analizable.</dd>
|
||||||
<dt class="optional">topic <span class="property-type">string</span>
|
<dt class="optional">topic <span class="property-type">texto</span>
|
||||||
</dt>
|
</dt>
|
||||||
<dd>if specified the function will work on a per topic basis. This property can be set by configuration.</dd>
|
<dd>Si se especifica, funcionará por tema. Esta propiedad se puede establecer mediante configuración.</dd>
|
||||||
<dt class="optional">reset<span class="property-type">any</span></dt>
|
<dt class="optional">reset<span class="property-type">cualquiera</span></dt>
|
||||||
<dd>if set clears the stored value for the specified msg.topic, or
|
<dd>si está configurado, borra el valor almacenado para el msg.topic especificado, o todos los temas si no se especifica msg.topic.</dd>
|
||||||
all topics if msg.topic is not specified.</dd>
|
|
||||||
</dl>
|
</dl>
|
||||||
<h3>Outputs</h3>
|
<h3>Salidas</h3>
|
||||||
<dl class="message-properties">
|
<dl class="message-properties">
|
||||||
<dt>payload
|
<dt>carga <span class="property-type">según la entrada</span></dt>
|
||||||
<span class="property-type">as per input</span>
|
<dd>Si se activa, la salida será la misma que la entrada.</dd>
|
||||||
</dt>
|
|
||||||
<dd>If triggered the output will be the same as the input.</dd>
|
|
||||||
</dl>
|
</dl>
|
||||||
<h3>Details</h3>
|
<h3>Detalles</h3>
|
||||||
<p>In RBE mode this node will block until the <code>msg.payload</code>,
|
<p>En modo RBE, este nodo se bloqueará hasta que el valor de <code>msg.payload</code> (o propiedad seleccionada) sea diferente al anterior.
|
||||||
(or selected property) value is different to the previous one.
|
Si es necesario, puede ignorar el valor inicial para no enviar nada al inicio.</p>
|
||||||
If required it can ignore the initial value, so as not to send anything at start.</p>
|
<p>El modo <a href="https://en.wikipedia.org/wiki/Deadband" target="_blank">Deadband</a> bloqueará el valor entrante <i>hasta</i> que el cambio sea mayor o igual que ± la banda dada.</p>
|
||||||
<p>The <a href="https://en.wikipedia.org/wiki/Deadband" target="_blank">Deadband</a> modes will block the incoming value
|
<p>El modo de banda estrecha bloqueará el valor entrante, <i>si</i> su cambio es mayor o igual que ± la banda dada.
|
||||||
<i>unless</i> its change is greater or greater-equal than ± the band gap away from a previous value.</p>
|
Es útil para ignorar valores atípicos de un sensor defectuoso, por ejemplo.</p>
|
||||||
<p>The Narrowband modes will block the incoming value,
|
<p>Tanto en el modo Banda Muerta como en el Modo Banda Estrecha, el valor entrante debe contener un número analizable y ambos también admiten %: solo se envía si/a menos que la entrada difiera en más del x% del valor original.</p>
|
||||||
<i>if</i> its change is greater or greater-equal than ± the band gap away from the previous value.
|
<p>Tanto la banda muerta como la banda estrecha permiten la comparación con el valor de salida válido anterior, ignorando así cualquier valor fuera de rango, o con el valor de entrada anterior, que restablece el punto de ajuste, permitiendo así una deriva gradual (banda muerta) o un cambio en pasos (banda estrecha).</p>
|
||||||
It is useful for ignoring outliers from a faulty sensor for example.</p>
|
<p><b>Nota:</b> Esto funciona por <code>msg.topic</code>, aunque se puede cambiar a otra propiedad si se desea.
|
||||||
<p>Both in Deadband and Narrowband modes the incoming value must contain a parseable number and
|
Esto significa que un único nodo de filtro puede manejar varios temas diferentes al mismo tiempo.</p>
|
||||||
both also supports % - only sends if/unless the input differs by more than x% of the original value.</p>
|
|
||||||
<p>Both Deadband and Narrowband allow comparison against either the previous valid output value, thus
|
|
||||||
ignoring any values out of range, or the previous input value, which resets the set point, thus allowing
|
|
||||||
gradual drift (deadband), or a step change (narrowband).</p>
|
|
||||||
<p><b>Note:</b> This works on a per <code>msg.topic</code> basis, though this can be changed to another property if desired.
|
|
||||||
This means that a single filter node can handle multiple different topics at the same time.</p>
|
|
||||||
</script>
|
</script>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user