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
041f00b811
commit
2550da9c6e
@ -15,33 +15,28 @@
|
||||
-->
|
||||
|
||||
<script type="text/html" data-help-name="range">
|
||||
<p>Maps a numeric value to a different range.</p>
|
||||
<h3>Inputs</h3>
|
||||
<p>Asigna un valor numérico a un rango diferente.</p>
|
||||
<h3>Entradas</h3>
|
||||
<dl class="message-properties">
|
||||
<dt>payload <span class="property-type">number</span></dt>
|
||||
<dd>The payload <i>must</i> be a number. Anything else will try to be
|
||||
parsed into a number and rejected if that fails.</dd>
|
||||
<dt>payload <span class="property-type">número</span></dt>
|
||||
<dd>La carga <i>debe</i> ser un número. Cualquier otra cosa intentará analizarse como un número y rechazarse si falla.</dd>
|
||||
</dl>
|
||||
<h3>Outputs</h3>
|
||||
<h3>Salidas</h3>
|
||||
<dl class="message-properties">
|
||||
<dt>payload <span class="property-type">number</span></dt>
|
||||
<dd>The value mapped to the new range.</dd>
|
||||
<dt>payload <span class="property-type">número</span></dt>
|
||||
<dd>El valor asignado al nuevo rango.</dd>
|
||||
</dl>
|
||||
<h3>Details</h3>
|
||||
<p>This node will linearly scale the received value. By default, the result
|
||||
is not constrained to the range defined in the node.</p>
|
||||
<p><i>Scale and limit to target range</i> means that the result will never be outside
|
||||
the range specified within the target range.</p>
|
||||
<p><i>Scale and wrap within the target range</i> means that the result will
|
||||
be wrapped within the target range.</p>
|
||||
<p><i>Scale, but drop if outside input range</i> means that the result will
|
||||
be scaled, but any inputs outside of the inout range will be dropped.</p>
|
||||
<p>For example an input 0 - 10 mapped to 0 - 100.</p>
|
||||
<h3>Detalles</h3>
|
||||
<p>Este nodo escalará linealmente el valor recibido. De forma predeterminada, el resultado no está restringido al rango definido en el nodo.</p>
|
||||
<p><i>Escalar y limitar al rango objetivo</i> significa que el resultado nunca estará fuera del rango especificado dentro del rango objetivo.</p>
|
||||
<p><i>Escalar y ajustar dentro del rango objetivo</i> significa que el resultado se ajustará dentro del rango objetivo.</p>
|
||||
<p><i>Escalar, pero eliminar si está fuera del rango de entrada</i> significa que el resultado se escalará, pero cualquier entrada fuera del rango de entrada y salida se eliminará.</p>
|
||||
<p>Por ejemplo, una entrada 0 - 10 asignada a 0 - 100.</p>
|
||||
<table style="outline-width:#888 solid thin">
|
||||
<tr><th width="80px">mode</th><th width="80px">input</th><th width="80px">output</th></tr>
|
||||
<tr><th width="80px">modo</th><th width="80px">entrada</th><th width="80px">salida</th></tr>
|
||||
<tr><td><center>scale</center></td><td><center>12</center></td><td><center>120</center></td></tr>
|
||||
<tr><td><center>limit</center></td><td><center>12</center></td><td><center>100</center></td></tr>
|
||||
<tr><td><center>wrap</center></td><td><center>12</center></td><td><center>20</center></td></tr>
|
||||
<tr><td><center>drop</center></td><td><center>12</center></td><td><center><i>(no output)</i></center></td></tr>
|
||||
<tr><td><center>drop</center></td><td><center>12</center></td><td><center><i>(sin salida)</i></center></td></tr>
|
||||
</table>
|
||||
</script>
|
||||
|
@ -12,149 +12,124 @@
|
||||
-->
|
||||
|
||||
<script type="text/html" data-help-name="mqtt in">
|
||||
<p>Connects to a MQTT broker and subscribes to messages from the specified topic.</p>
|
||||
<h3>Outputs</h3>
|
||||
<p>Conecta a un gestor MQTT y se suscribe a mensajes del tema especificado.</p>
|
||||
<h3>Salidas</h3>
|
||||
<dl class="message-properties">
|
||||
<dt>payload <span class="property-type">string | buffer</span></dt>
|
||||
<dd>a string unless detected as a binary buffer.</dd>
|
||||
<dt>topic <span class="property-type">string</span></dt>
|
||||
<dd>the MQTT topic, uses / as a hierarchy separator.</dd>
|
||||
<dt>qos <span class="property-type">number</span> </dt>
|
||||
<dd>0, fire and forget - 1, at least once - 2, once and once only.</dd>
|
||||
<dt>retain <span class="property-type">boolean</span></dt>
|
||||
<dd>true indicates the message was retained and may be old.</dd>
|
||||
<dt>payload <span class="property-type">texto | buffer</span></dt>
|
||||
<dd>una cadena a menos que se detecte como un búfer binario.</dd>
|
||||
<dt>topic <span class="property-type">texto</span></dt>
|
||||
<dd>el tema MQTT, utiliza / como separador de jerarquía.</dd>
|
||||
<dt>qos <span class="property-type">número</span> </dt>
|
||||
<dd>0, dispara y olvida - 1, al menos una vez - 2, una vez y sólo una vez.</dd>
|
||||
<dt>retain <span class="property-type">booleano</span></dt>
|
||||
<dd>verdadero indica que el mensaje se retuvo y puede ser antiguo.</dd>
|
||||
|
||||
<dt class="optional">responseTopic <span class="property-type">string</span></dt>
|
||||
<dd><b>MQTTv5</b>: the MQTT response topic for the message</dd>
|
||||
<dt class="optional">responseTopic <span class="property-type">texto</span></dt>
|
||||
<dd><b>MQTTv5</b>: el tema de respuesta MQTT para el mensaje</dd>
|
||||
<dt class="optional">correlationData <span class="property-type">Buffer</span></dt>
|
||||
<dd><b>MQTTv5</b>: the correlation data for the message</dd>
|
||||
<dt class="optional">contentType <span class="property-type">string</span></dt>
|
||||
<dd><b>MQTTv5</b>: the content-type of the payload</dd>
|
||||
<dt class="optional">userProperties <span class="property-type">object</span></dt>
|
||||
<dd><b>MQTTv5</b>: any user properties of the message</dd>
|
||||
<dt class="optional">messageExpiryInterval <span class="property-type">number</span></dt>
|
||||
<dd><b>MQTTv5</b>: the expiry time, in seconds, of the message</dd>
|
||||
<dd><b>MQTTv5</b>: los datos de correlación para el mensaje</dd>
|
||||
<dt class="optional">contentType <span class="property-type">texto</span></dt>
|
||||
<dd><b>MQTTv5</b>: el tipo de contenido de la carga</dd>
|
||||
<dt class="optional">userProperties <span class="property-type">objeto</span></dt>
|
||||
<dd><b>MQTTv5</b>: cualquier propiedad de usuario del mensaje</dd>
|
||||
<dt class="optional">messageExpiryInterval <span class="property-type">número</span></dt>
|
||||
<dd><b>MQTTv5</b>: el tiempo de expiración, en segundos, del mensaje</dd>
|
||||
</dl>
|
||||
<h3>Details</h3>
|
||||
The subscription topic can include MQTT wildcards, + for one level, # for multiple levels.</p>
|
||||
<p>This node requires a connection to a MQTT broker to be configured. This is configured by clicking
|
||||
the pencil icon.</p>
|
||||
<p>Several MQTT nodes (in or out) can share the same broker connection if required.</p>
|
||||
<h4>Dynamic Subscription</h4>
|
||||
The node can be configured to dynamically control the MQTT connection and its subscriptions. When
|
||||
enabled, the node will have an input and can be controlled by passing it messages.
|
||||
<h3>Inputs</h3>
|
||||
<p>These only apply when the node has been configured for dynamic subscriptions.</p>
|
||||
<h3>Detalles</h3>
|
||||
<p>El tema de suscripción puede incluir comodines MQTT, + para un nivel, # para múltiples niveles.</p>
|
||||
<p>Este nodo requiere una conexión a un gestor MQTT para configurarse. Esto se configura haciendo clic en el icono del lápiz.</p>
|
||||
<p>Varios nodos MQTT (dentro o fuera) pueden compartir la misma conexión de gestor si es necesario.</p>
|
||||
<h4>Suscripción Dinámica</h4>
|
||||
El nodo se puede configurar para controlar dinámicamente la conexión MQTT y sus suscripciones. Cuando esté habilitado, el nodo tendrá una entrada y podrá controlarse pasándole mensajes.
|
||||
<h3>Entradas</h3>
|
||||
<p>Estos solo se aplican cuando el nodo ha sido configurado para suscripciones dinámicas.</p>
|
||||
<dl class="message-properties">
|
||||
<dt>action <span class="property-type">string</span></dt>
|
||||
<dd>the name of the action the node should perform. Available actions are: <code>"connect"</code>,
|
||||
<code>"disconnect"</code>, <code>"subscribe"</code> and <code>"unsubscribe"</code>.</dd>
|
||||
<dt class="optional">topic <span class="property-type">string|object|array</span></dt>
|
||||
<dd>For the <code>"subscribe"</code> and <code>"unsubscribe"</code> actions, this property
|
||||
provides the topic. It can be set as either:<ul>
|
||||
<li>a String containing the topic filter</li>
|
||||
<li>an Object containing <code>topic</code> and <code>qos</code> properties</li>
|
||||
<li>an array of either strings or objects to handle multiple topics in one</li>
|
||||
<dt>action <span class="property-type">texto</span></dt>
|
||||
<dd>el nombre de la acción que debe realizar el nodo. Las acciones disponibles son: <code>"connect"</code>, <code>"disconnect"</code>, <code>"subscribe"</code> y <code>"unsubscribe"</code>.</dd>
|
||||
<dt class="optional">topic <span class="property-type">texto|objeto|matriz</span></dt>
|
||||
<dd>Para las acciones <code>"subscribe"</code> y <code>"unsubscribe"</code>, esta propiedad proporciona el tema. Se puede configurar como:<ul>
|
||||
<li>una cadena que contiene el filtro de tema</li>
|
||||
<li>un objeto que contiene las propiedades <code>topic</code> y <code>qos</code></li>
|
||||
<li>una matriz de cadenas u objetos para manejar múltiples temas en uno</li>
|
||||
</ul>
|
||||
</dd>
|
||||
<dt class="optional">broker <span class="property-type">broker</span> </dt>
|
||||
<dd>For the <code>"connect"</code> action, this property can override any
|
||||
of the individual broker configuration settings, including: <ul>
|
||||
<dt class="optional">broker <span class="property-type">gestor</span> </dt>
|
||||
<dd>Para la acción <code>"connect"</code>, esta propiedad puede anular cualquiera de las configuraciones de gestor individuales, incluyendo: <ul>
|
||||
<li><code>broker</code></li>
|
||||
<li><code>port</code></li>
|
||||
<li><code>url</code> - overrides broker/port to provide a complete connection url</li>
|
||||
<li><code>url</code> - anula el gestor/puerto para proporcionar una URL de conexión completa</li>
|
||||
<li><code>username</code></li>
|
||||
<li><code>password</code></li>
|
||||
</ul>
|
||||
<p>If this property is set and the broker is already connected an error
|
||||
will be logged unless it has the <code>force</code> property set - in which case it will
|
||||
disconnect from the broker, apply the new settings and reconnect.</p>
|
||||
<p>Si esta propiedad está configurada y el intermediario ya está conectado, se registrará un error a menos que tenga establecida la propiedad <code>force</code>; en cuyo caso se desconectará del intermediario, aplicará la nueva configuración y se volverá a conectar.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
</script>
|
||||
|
||||
<script type="text/html" data-help-name="mqtt out">
|
||||
<p>Connects to a MQTT broker and publishes messages.</p>
|
||||
<h3>Inputs</h3>
|
||||
<p>Conecta a un gestor MQTT y publica mensajes.</p>
|
||||
<h3>Entradas</h3>
|
||||
<dl class="message-properties">
|
||||
<dt>payload <span class="property-type">string | buffer</span></dt>
|
||||
<dd> the payload to publish. If this property is not set, no message will be sent. To send a blank message, set this property to an empty String.</dd>
|
||||
<dt class="optional">topic <span class="property-type">string</span></dt>
|
||||
<dd> the MQTT topic to publish to.</dd>
|
||||
<dt class="optional">qos <span class="property-type">number</span></dt>
|
||||
<dd>0, fire and forget - 1, at least once - 2, once and once only. Default 0.</dd>
|
||||
<dt class="optional">retain <span class="property-type">boolean</span></dt>
|
||||
<dd>set to true to retain the message on the broker. Default false.</dd>
|
||||
<dt class="optional">responseTopic <span class="property-type">string</span></dt>
|
||||
<dd><b>MQTTv5</b>: the MQTT response topic for the message</dd>
|
||||
<dt>payload <span class="property-type">texto | buffer</span></dt>
|
||||
<dd> la carga a publicar. Si esta propiedad no está configurada, no se enviará ningún mensaje. Para enviar un mensaje en blanco, establece esta propiedad a una cadena vacía.</dd>
|
||||
<dt class="optional">topic <span class="property-type">texto</span></dt>
|
||||
<dd>el tema MQTT para publicar.</dd>
|
||||
<dt class="optional">qos <span class="property-type">número</span></dt>
|
||||
<dd>0, dispara y olvida - 1, al menos una vez - 2, una vez y sólo una vez. Predeterminado 0.</dd>
|
||||
<dt class="optional">retain <span class="property-type">booleano</span></dt>
|
||||
<dd>configúralo en verdadero para retener el mensaje en el gestor. Por defecto es falso.</dd>
|
||||
<dt class="optional">responseTopic <span class="property-type">texto</span></dt>
|
||||
<dd><b>MQTTv5</b>: el tema de respuesta MQTT para el mensaje</dd>
|
||||
<dt class="optional">correlationData <span class="property-type">Buffer</span></dt>
|
||||
<dd><b>MQTTv5</b>: the correlation data for the message</dd>
|
||||
<dt class="optional">contentType <span class="property-type">string</span></dt>
|
||||
<dd><b>MQTTv5</b>: the content-type of the payload</dd>
|
||||
<dt class="optional">userProperties <span class="property-type">object</span></dt>
|
||||
<dd><b>MQTTv5</b>: any user properties of the message</dd>
|
||||
<dt class="optional">messageExpiryInterval <span class="property-type">number</span></dt>
|
||||
<dd><b>MQTTv5</b>: the expiry time, in seconds, of the message</dd>
|
||||
<dt class="optional">topicAlias <span class="property-type">number</span></dt>
|
||||
<dd><b>MQTTv5</b>: the MQTT topic alias to use</dd>
|
||||
<dd><b>MQTTv5</b>: los datos de correlación para el mensaje</dd>
|
||||
<dt class="optional">contentType <span class="property-type">texto</span></dt>
|
||||
<dd><b>MQTTv5</b>: el tipo de contenido de la carga</dd>
|
||||
<dt class="optional">userProperties <span class="property-type">objeto</span></dt>
|
||||
<dd><b>MQTTv5</b>: cualquier propiedad de usuario del mensaje</dd>
|
||||
<dt class="optional">messageExpiryInterval <span class="property-type">número</span></dt>
|
||||
<dd><b>MQTTv5</b>: el tiempo de expiración, en segundos, del mensaje</dd>
|
||||
<dt class="optional">topicAlias <span class="property-type">número</span></dt>
|
||||
<dd><b>MQTTv5</b>: el alias del tema MQTT a utilizar</dd>
|
||||
</dl>
|
||||
<h3>Details</h3>
|
||||
<code>msg.payload</code> is used as the payload of the published message.
|
||||
If it contains an Object it will be converted to a JSON string before being sent.
|
||||
If it contains a binary Buffer the message will be published as-is.</p>
|
||||
<p>The topic used can be configured in the node or, if left blank, can be set by <code>msg.topic</code>.</p>
|
||||
<p>Likewise the QoS and retain values can be configured in the node or, if left
|
||||
blank, set by <code>msg.qos</code> and <code>msg.retain</code> respectively. To clear a previously
|
||||
retained topic from the broker, send a blank message to that topic with the retain flag set.</p>
|
||||
<p>This node requires a connection to a MQTT broker to be configured. This is configured by clicking
|
||||
the pencil icon.</p>
|
||||
<p>Several MQTT nodes (in or out) can share the same broker connection if required.</p>
|
||||
<h3>Detalles</h3>
|
||||
<code>msg.payload</code> se utiliza como carga útil del mensaje publicado.
|
||||
Si contiene un Objeto, se convertirá en una cadena JSON antes de enviarse.
|
||||
Si contiene un búfer binario, el mensaje se publicará tal cual.</p>
|
||||
<p>El tema utilizado se puede configurar en el nodo o, si se deja en blanco, se puede establecer mediante <code>msg.topic</code>.</p>
|
||||
<p>Del mismo modo, los valores de QoS y retención se pueden configurar en el nodo o, si se dejan en blanco, establecer mediante <code>msg.qos</code> y <code>msg.retain</code> respectivamente. Para borrar un tema previamente retenido del gestor, envía un mensaje en blanco a ese tema con el indicador de retención configurado.</p>
|
||||
<p>Este nodo requiere una conexión a un gestor MQTT para configurarse. Esto se configura haciendo clic en el icono del lápiz.</p>
|
||||
<p>Varios nodos MQTT (dentro o fuera) pueden compartir la misma conexión de gestor si es necesario.</p>
|
||||
|
||||
<h4>Dynamic Control</h4>
|
||||
The connection shared by the node can be controlled dynamically. If the node receives
|
||||
one of the following control messages, it will not publish the message payload as well.
|
||||
<h3>Inputs</h3>
|
||||
<h4>Control Dinámico</h4>
|
||||
La conexión compartida por el nodo se puede controlar dinámicamente. Si el nodo recibe uno de los siguientes mensajes de control, tampoco publicará la carga del mensaje.
|
||||
<h3>Entradas</h3>
|
||||
<dl class="message-properties">
|
||||
<dt>action <span class="property-type">string</span></dt>
|
||||
<dd>the name of the action the node should perform. Available actions are: <code>"connect"</code>,
|
||||
and <code>"disconnect"</code>.</dd>
|
||||
<dt class="optional">broker <span class="property-type">broker</span> </dt>
|
||||
<dd>For the <code>"connect"</code> action, this property can override any
|
||||
of the individual broker configuration settings, including: <ul>
|
||||
<dt>action <span class="property-type">texto</span></dt>
|
||||
<dd>el nombre de la acción que debe realizar el nodo. Las acciones disponibles son: <code>"connect"</code> y <code>"disconnect"</code>.</dd>
|
||||
<dt class="optional">broker <span class="property-type">gestor</span> </dt>
|
||||
<dd>Para la acción <code>"connect"</code>, esta propiedad puede anular cualquiera de las configuraciones de gestor individuales, incluyendo: <ul>
|
||||
<li><code>broker</code></li>
|
||||
<li><code>port</code></li>
|
||||
<li><code>url</code> - overrides broker/port to provide a complete connection url</li>
|
||||
<li><code>url</code> - anula el gestor/puerto para proporcionar una URL de conexión completa</li>
|
||||
<li><code>username</code></li>
|
||||
<li><code>password</code></li>
|
||||
</ul>
|
||||
<p>If this property is set and the broker is already connected an error
|
||||
will be logged unless it has the <code>force</code> property set - in which case it will
|
||||
disconnect from the broker, apply the new settings and reconnect.</p>
|
||||
<p>Si esta propiedad está configurada y el gestor ya está conectado, se registrará un error a menos que tenga establecida la propiedad <code>force</code>; en cuyo caso se desconectará del gestor, aplicará la nueva configuración y se volverá a conectar.</p>
|
||||
</dd>
|
||||
</dl>
|
||||
|
||||
</script>
|
||||
|
||||
<script type="text/html" data-help-name="mqtt-broker">
|
||||
<p>Configuration for a connection to an MQTT broker.</p>
|
||||
<p>This configuration will create a single connection to the broker which can
|
||||
then be reused by <code>MQTT In</code> and <code>MQTT Out</code> nodes.</p>
|
||||
<p>The node will generate a random Client ID if one is not set and the
|
||||
node is configured to use a Clean Session connection. If a Client ID is set,
|
||||
it must be unique to the broker you are connecting to.</p>
|
||||
<h4>Birth Message</h4>
|
||||
<p>This is a message that will be published on the configured topic whenever the
|
||||
connection is established.</p>
|
||||
<h4>Close Message</h4>
|
||||
<p>This is a message that will be published on the configured topic before the
|
||||
connection is closed normally, either by re-deploying the node, or by shutting down.</p>
|
||||
<h4>Will Message</h4>
|
||||
<p>This is a message that will be published by the broker in the event the node
|
||||
unexpectedly loses its connection.</p>
|
||||
<p>Configuración para una conexión a un gestor MQTT.</p>
|
||||
<p>Esta configuración creará una conexión única con el gestor que luego podrá ser reutilizada por los nodos <code>MQTT In</code> y <code>MQTT Out</code>.</p>
|
||||
<p>El nodo generará una ID de cliente aleatoria si no se establece ninguna y el nodo está configurado para utilizar una conexión de sesión limpia. Si se establece un ID de cliente, debe ser exclusivo del corredor al que se está conectando.</p>
|
||||
<h4>Mensaje Inicial</h4>
|
||||
<p>Este es un mensaje que se publicará en el tema configurado cada vez que se establezca la conexión.</p>
|
||||
<h4>Mensaje Cierre</h4>
|
||||
<p>Este es un mensaje que se publicará en el tema configurado antes de que la conexión se cierre normalmente, ya sea volviendo a implementar el nodo o apagándolo.</p>
|
||||
<h4>Mensaje Voluntad</h4>
|
||||
<p>Este es un mensaje que será publicado por el gestor en caso de que el nodo pierda inesperadamente su conexión.</p>
|
||||
<h4>WebSockets</h4>
|
||||
<p>The node can be configured to use a WebSocket connection. To do so, the Server
|
||||
field should be configured with a full URI for the connection. For example:</p>
|
||||
<p>El nodo se puede configurar para utilizar una conexión WebSocket. Para hacerlo, el campo Servidor debe configurarse con un URI completo para la conexión. Por ejemplo:</p>
|
||||
<pre>ws://example.com:4000/mqtt</pre>
|
||||
|
||||
</script>
|
||||
|
@ -15,70 +15,54 @@
|
||||
-->
|
||||
|
||||
<script type="text/html" data-help-name="http in">
|
||||
<p>Creates an HTTP end-point for creating web services.</p>
|
||||
<h3>Outputs</h3>
|
||||
<p>Crea un punto final HTTP para crear servicios web.</p>
|
||||
<h3>Salidas</h3>
|
||||
<dl class="message-properties">
|
||||
<dt>payload</dt>
|
||||
<dd>For a GET request, contains an object of any query string parameters.
|
||||
Otherwise, contains the body of the HTTP request.</dd>
|
||||
<dt>req<span class="property-type">object</span></dt>
|
||||
<dd>An HTTP request object. This object contains multiple properties that
|
||||
provide information about the request.
|
||||
<dd>Para una solicitud GET, contiene un objeto con cualquier parámetro de cadena de consulta.
|
||||
De lo contrario, contiene el cuerpo de la solicitud HTTP.</dd>
|
||||
<dt>req<span class="property-type">objeto</span></dt>
|
||||
<dd>Un objeto de solicitud HTTP. Este objeto contiene varias propiedades que proporcionan información sobre la solicitud.
|
||||
<ul>
|
||||
<li><code>body</code> - the body of the incoming request. The format
|
||||
will depend on the request.</li>
|
||||
<li><code>headers</code> - an object containing the HTTP request headers.</li>
|
||||
<li><code>query</code> - an object containing any query string parameters.</li>
|
||||
<li><code>params</code> - an object containing any route parameters.</li>
|
||||
<li><code>cookies</code> - an object containing the cookies for the request.</li>
|
||||
<li><code>files</code> - if enabled within the node, an object containing
|
||||
any files uploaded as part of a POST request.</li>
|
||||
<li><code>body</code> - el cuerpo de la solicitud entrante. El formato dependerá de la solicitud.</li>
|
||||
<li><code>headers</code> - un objeto que contiene los encabezados de solicitud HTTP.</li>
|
||||
<li><code>query</code> - un objeto que contiene cualquier parámetro de cadena de consulta.</li>
|
||||
<li><code>params</code> - un objeto que contiene cualquier parámetro de ruta.</li>
|
||||
<li><code>cookies</code> - un objeto que contiene las cookies para la solicitud.</li>
|
||||
<li><code>files</code> - si está habilitado dentro del nodo, un objeto que contiene los archivos cargados como parte de una solicitud POST.</li>
|
||||
</ul>
|
||||
</dd>
|
||||
<dt>res<span class="property-type">object</span></dt>
|
||||
<dd>An HTTP response object. This property should not be used directly;
|
||||
the <code>HTTP Response</code> node documents how to respond to a request.
|
||||
This property must remain attached to the message passed to the response node.</dd>
|
||||
<dt>res<span class="property-type">objeto</span></dt>
|
||||
<dd>Un objeto de respuesta HTTP. Esta propiedad no debe usarse directamente; el nodo <code>Respuesta HTTP</code> documenta cómo responder a una solicitud.
|
||||
Esta propiedad debe permanecer adjunta al mensaje pasado al nodo de respuesta.</dd>
|
||||
</dl>
|
||||
<h3>Details</h3>
|
||||
<p>The node will listen on the configured path for requests of a particular type.
|
||||
The path can be fully specified, such as <code>/user</code>, or include
|
||||
named parameters that accept any value, such as <code>/user/:name</code>.
|
||||
When named parameters are used, their actual value in a request can be accessed under <code>msg.req.params</code>.</p>
|
||||
<p>For requests that include a body, such as a POST or PUT, the contents of
|
||||
the request is made available as <code>msg.payload</code>.</p>
|
||||
<p>If the content type of the request can be determined, the body will be parsed to
|
||||
any appropriate type. For example, <code>application/json</code> will be parsed to
|
||||
its JavaScript object representation.</p>
|
||||
<p><b>Note:</b> this node does not send any response to the request. The flow
|
||||
must include an HTTP Response node to complete the request.</p>
|
||||
<h3>Detalles</h3>
|
||||
<p>El nodo escuchará en la ruta configurada solicitudes de un tipo particular. La ruta se puede especificar completamente, como <code>/user</code>, o incluir parámetros con nombre que acepten cualquier valor, como <code>/user/:name</code>. Cuando se utilizan parámetros con nombre, se puede acceder a su valor real en una solicitud en <code>msg.req.params</code>.</p>
|
||||
<p>Para solicitudes que incluyen un cuerpo, como POST o PUT, el contenido de la solicitud está disponible como <code>msg.payload</code>.</p>
|
||||
<p>Si se puede determinar el tipo de contenido de la solicitud, el cuerpo se analizará a cualquier tipo apropiado. Por ejemplo, <code>application/json</code> se analizará según su representación de objeto JavaScript.</p>
|
||||
<p><b>Nota:</b> este nodo no envía ninguna respuesta a la solicitud. El flujo debe incluir un nodo de respuesta HTTP para completar la solicitud.</p>
|
||||
</script>
|
||||
|
||||
<script type="text/html" data-help-name="http response">
|
||||
<p>Sends responses back to requests received from an HTTP Input node.</p>
|
||||
<p>Envía respuestas a las solicitudes recibidas desde un nodo de entrada HTTP.</p>
|
||||
|
||||
<h3>Inputs</h3>
|
||||
<h3>Entradas</h3>
|
||||
<dl class="message-properties">
|
||||
<dt>payload <span class="property-type">string</span></dt>
|
||||
<dd>The body of the response.</dd>
|
||||
<dt class="optional">statusCode <span class="property-type">number</span></dt>
|
||||
<dd>If set, this is used as the response status code. Default: 200.</dd>
|
||||
<dt class="optional">headers <span class="property-type">object</span></dt>
|
||||
<dd>If set, provides HTTP headers to include in the response.</dd>
|
||||
<dt class="optional">cookies <span class="property-type">object</span></dt>
|
||||
<dd>If set, can be used to set or delete cookies.</dd>
|
||||
<dt>payload <span class="property-type">texto</span></dt>
|
||||
<dd>El cuerpo de la respuesta.</dd>
|
||||
<dt class="optional">statusCode <span class="property-type">número</span></dt>
|
||||
<dd>Si se establece, se utiliza como código de estado de respuesta. Predeterminado: 200.</dd>
|
||||
<dt class="optional">headers <span class="property-type">objeto</span></dt>
|
||||
<dd>Si está configurado, proporciona encabezados HTTP para incluirlos en la respuesta.</dd>
|
||||
<dt class="optional">cookies <span class="property-type">objeto</span></dt>
|
||||
<dd>Si está configurado, se puede utilizar para configurar o eliminar cookies.</dd>
|
||||
</dl>
|
||||
<h3>Details</h3>
|
||||
<p>The <code>statusCode</code> and <code>headers</code> can also be set within
|
||||
the node itself. If a property is set within the node, it cannot be overridden
|
||||
by the corresponding message property.</p>
|
||||
<h4>Cookie handling</h4>
|
||||
<p>The <code>cookies</code> property must be an object of name/value pairs.
|
||||
The value can be either a string to set the value of the cookie with default
|
||||
options, or it can be an object of options.</p>
|
||||
<p>The following example sets two cookies - one called <code>name</code> with
|
||||
a value of <code>nick</code>, the other called <code>session</code> with a
|
||||
value of <code>1234</code> and an expiry set to 15 minutes.</p>
|
||||
<h3>Detalles</h3>
|
||||
<p>El <code>statusCode</code> y los <code>headers</code> también se pueden configurar dentro del propio nodo. Si una propiedad se establece dentro del nodo, la propiedad del mensaje correspondiente no puede anularla.</p>
|
||||
<h4>Manejo de cookies</h4>
|
||||
<p>La propiedad <code>cookies</code> debe ser un objeto de pares nombre/valor.
|
||||
El valor puede ser una cadena para establecer el valor de la cookie con opciones predeterminadas o puede ser un objeto de opciones.</p>
|
||||
<p>El siguiente ejemplo establece dos cookies: una llamada <code>name</code> con un valor de <code>nick</code>, la otra llamada <code>session</code> con un valor de <code >1234</code> y un vencimiento establecido en 15 minutos.</p>
|
||||
<pre>
|
||||
msg.cookies = {
|
||||
name: 'nick',
|
||||
@ -87,14 +71,13 @@ msg.cookies = {
|
||||
maxAge: 900000
|
||||
}
|
||||
}</pre>
|
||||
<p>The valid options include:</p>
|
||||
<p>Las opciones válidas incluyen:</p>
|
||||
<ul>
|
||||
<li><code>domain</code> - (String) domain name for the cookie</li>
|
||||
<li><code>expires</code> - (Date) expiry date in GMT. If not specified or set to 0, creates a session cookie</li>
|
||||
<li><code>maxAge</code> - (String) expiry date as relative to the current time in milliseconds</li>
|
||||
<li><code>path</code> - (String) path for the cookie. Defaults to /</li>
|
||||
<li><code>value</code> - (String) the value to use for the cookie</li>
|
||||
<li><code>domain</code> - (texto) nombre de dominio para la cookie</li>
|
||||
<li><code>expires</code> - (fecha) fecha de vencimiento en GMT. Si no se especifica o se establece en 0, crea una cookie de sesión</li>
|
||||
<li><code>maxAge</code> - (texto) fecha de vencimiento en relación con la hora actual en milisegundos</li>
|
||||
<li><code>path</code> - (texto) ruta para la cookie. El valor predeterminado es /</li>
|
||||
<li><code>value</code> - (texto) el valor a utilizar para la cookie</li>
|
||||
</ul>
|
||||
<p>To delete a cookie, set its <code>value</code> to <code>null</code>.</p>
|
||||
|
||||
<p>Para eliminar una cookie, establece su <code>valor</code> en <code>null</code>.</p>
|
||||
</script>
|
||||
|
@ -15,73 +15,60 @@
|
||||
-->
|
||||
|
||||
<script type="text/html" data-help-name="http request">
|
||||
<p>Sends HTTP requests and returns the response.</p>
|
||||
<p>Envía solicitudes HTTP y devuelve la respuesta.</p>
|
||||
|
||||
<h3>Inputs</h3>
|
||||
<h3>Entradas</h3>
|
||||
<dl class="message-properties">
|
||||
<dt class="optional">url <span class="property-type">string</span></dt>
|
||||
<dd>If not configured in the node, this optional property sets the url of the request.</dd>
|
||||
<dt class="optional">method <span class="property-type">string</span></dt>
|
||||
<dd>If not configured in the node, this optional property sets the HTTP method of the request.
|
||||
Must be one of <code>GET</code>, <code>PUT</code>, <code>POST</code>, <code>PATCH</code> or <code>DELETE</code>.</dd>
|
||||
<dt class="optional">headers <span class="property-type">object</span></dt>
|
||||
<dd>Sets the HTTP headers of the request. NOTE: Any headers set in the node configuration will overwrite any matching headers in <code>msg.headers</code> </dd>
|
||||
<dt class="optional">cookies <span class="property-type">object</span></dt>
|
||||
<dd>If set, can be used to send cookies with the request.</dd>
|
||||
<dt class="optional">url <span class="property-type">texto</span></dt>
|
||||
<dd>Si no está configurada en el nodo, esta propiedad opcional establece la URL de la solicitud.</dd>
|
||||
<dt class="optional">method <span class="property-type">texto</span></dt>
|
||||
<dd>Si no está configurada en el nodo, esta propiedad opcional establece el método HTTP de la solicitud.
|
||||
Debe ser uno de los siguientes: <code>GET</code>, <code>PUT</code>, <code>POST</code>, <code>PATCH</code> o <code>DELETE</code>.</dd>
|
||||
<dt class="optional">headers <span class="property-type">objeto</span></dt>
|
||||
<dd>Establece los encabezados HTTP de la solicitud. NOTA: Cualquier encabezado establecido en la configuración del nodo sobrescribirá cualquier encabezado coincidente en <code>msg.headers</code> </dd>
|
||||
<dt class="optional">cookies <span class="property-type">objeto</span></dt>
|
||||
<dd>Si está configurado, se puede utilizar para enviar cookies con la solicitud.</dd>
|
||||
<dt class="optional">payload</dt>
|
||||
<dd>Sent as the body of the request.</dd>
|
||||
<dd>Enviado como cuerpo de la solicitud.</dd>
|
||||
<dt class="optional">rejectUnauthorized</dt>
|
||||
<dd>If set to <code>false</code>, allows requests to be made to https sites that use
|
||||
self signed certificates.</dd>
|
||||
<dd>Si se establece en <code>falso</code>, permite realizar solicitudes a sitios https que utilizan certificados autofirmados.</dd>
|
||||
<dt class="optional">followRedirects</dt>
|
||||
<dd>If set to <code>false</code> prevent following Redirect (HTTP 301).<code>true</code> by default</dd>
|
||||
<dd>Si se establece en <code>falso</code>, se impide seguir el redireccionamiento (HTTP 301).<code>verdadero</code> de forma predeterminada</dd>
|
||||
<dt class="optional">requestTimeout</dt>
|
||||
<dd>If set to a positive number of milliseconds, will override the globally set <code>httpRequestTimeout</code> parameter.</dd>
|
||||
<dd>Si se establece en un número positivo de milisegundos, anulará el parámetro <code>httpRequestTimeout</code> establecido globalmente.</dd>
|
||||
</dl>
|
||||
<h3>Outputs</h3>
|
||||
<h3>Salidas</h3>
|
||||
<dl class="message-properties">
|
||||
<dt>payload <span class="property-type">string | object | buffer</span></dt>
|
||||
<dd>The body of the response. The node can be configured to return the body
|
||||
as a string, attempt to parse it as a JSON string or leave it as a
|
||||
binary buffer.</dd>
|
||||
<dt>statusCode <span class="property-type">number</span></dt>
|
||||
<dd>The status code of the response, or the error code if the request could not be completed.</dd>
|
||||
<dt>headers <span class="property-type">object</span></dt>
|
||||
<dd>An object containing the response headers.</dd>
|
||||
<dt>responseUrl <span class="property-type">string</span></dt>
|
||||
<dd>In case any redirects occurred while processing the request, this property is the final redirected url.
|
||||
Otherwise, the url of the original request.</dd>
|
||||
<dt>responseCookies <span class="property-type">object</span></dt>
|
||||
<dd>If the response includes cookies, this property is an object of name/value pairs for each cookie.</dd>
|
||||
<dt>redirectList <span class="property-type">array</span></dt>
|
||||
<dd>If the request was redirected one or more times, the accumulated information will be added to this property. `location` is the next redirect destination. `cookies` is the cookies returned from the redirect source.</dd>
|
||||
<dt>payload <span class="property-type">texto | objeto | buffer</span></dt>
|
||||
<dd>El cuerpo de la respuesta. El nodo se puede configurar para devolver el cuerpo como una cadena, intentar analizarlo como una cadena JSON o dejarlo como un búfer binario.</dd>
|
||||
<dt>statusCode <span class="property-type">número</span></dt>
|
||||
<dd>El código de estado de la respuesta o el código de error si no se pudo completar la solicitud.</dd>
|
||||
<dt>headers <span class="property-type">objeto</span></dt>
|
||||
<dd>Un objeto que contiene los encabezados de respuesta.</dd>
|
||||
<dt>responseUrl <span class="property-type">texto</span></dt>
|
||||
<dd>En caso de que se produzcan redirecciones durante el procesamiento de la solicitud, esta propiedad es la URL redirigida final.
|
||||
De lo contrario, la URL de la solicitud original.</dd>
|
||||
<dt>responseCookies <span class="property-type">objeto</span></dt>
|
||||
<dd>Si la respuesta incluye cookies, esta propiedad es un objeto de pares de nombre/valor para cada cookie.</dd>
|
||||
<dt>redirectList <span class="property-type">matriz</span></dt>
|
||||
<dd>Si la solicitud fue redirigida una o más veces, la información acumulada se agregará en esta propiedad. `location` es el siguiente destino de redireccionamiento. `cookies` son las cookies devueltas por la fuente de redireccionamiento.</dd>
|
||||
</dl>
|
||||
<h3>Details</h3>
|
||||
<p>When configured within the node, the URL property can contain <a href="http://mustache.github.io/mustache.5.html" target="_blank">mustache-style</a> tags. These allow the
|
||||
url to be constructed using values of the incoming message. For example, if the url is set to
|
||||
<code>example.com/{{{topic}}}</code>, it will have the value of <code>msg.topic</code> automatically inserted.
|
||||
Using {{{...}}} prevents mustache from escaping characters like / & etc.</p>
|
||||
<p>The node can optionally automatically encode <code>msg.payload</code> as query string parameters for a GET request, in which case <code>msg.payload</code> has to be an object.</p>
|
||||
<p><b>Note</b>: If running behind a proxy, the standard <code>http_proxy=...</code> environment variable should be set and Node-RED restarted, or use Proxy Configuration. If Proxy Configuration was set, the configuration take precedence over environment variable.</p>
|
||||
<h4>Using multiple HTTP Request nodes</h4>
|
||||
<p>In order to use more than one of these nodes in the same flow, care must be taken with
|
||||
the <code>msg.headers</code> property. The first node will set this property with
|
||||
the response headers. The next node will then use those headers for its request - this
|
||||
is not usually the right thing to do. If <code>msg.headers</code> property is left unchanged
|
||||
between nodes, it will be ignored by the second node. To set custom headers, <code>msg.headers</code>
|
||||
should first be deleted or reset to an empty object: <code>{}</code>.
|
||||
<h4>Cookie handling</h4>
|
||||
<p>The <code>cookies</code> property passed to the node must be an object of name/value pairs.
|
||||
The value can be either a string to set the value of the cookie or it can be an
|
||||
object with a single <code>value</code> property.</p>
|
||||
<p>Any cookies returned by the request are passed back under the <code>responseCookies</code> property.</p>
|
||||
<h4>Content type handling</h4>
|
||||
<p>If <code>msg.payload</code> is an Object, the node will automatically set the content type
|
||||
of the request to <code>application/json</code> and encode the body as such.</p>
|
||||
<p>To encode the request as form data, <code>msg.headers["content-type"]</code> should be set to <code>application/x-www-form-urlencoded</code>.</p>
|
||||
<h4>File Upload</h4>
|
||||
<p>To perform a file upload, <code>msg.headers["content-type"]</code> should be set to <code>multipart/form-data</code>
|
||||
and the <code>msg.payload</code> passed to the node must be an object with the following structure:</p>
|
||||
<h3>Detalles</h3>
|
||||
<p>Cuando se configura dentro del nodo, la propiedad URL puede contener etiquetas <a href="http://mustache.github.io/mustache.5.html" target="_blank">mustache</a>. Estos permiten construir la URL utilizando valores del mensaje entrante. Por ejemplo, si la URL está configurada en <code>example.com/{{{topic}}}</code>, se insertará automáticamente el valor de <code>msg.topic</code>.
|
||||
Usar {{{...}}} evita que el mustache codifique caracteres como / & etc.</p>
|
||||
<p>Opcionalmente, el nodo puede codificar automáticamente <code>msg.payload</code> como parámetros de cadena de consulta para una solicitud GET, en cuyo caso <code>msg.payload</code> tiene que ser un objeto.</p>
|
||||
<p><b>Nota</b>: Si se ejecuta detrás de un proxy, se debe configurar la variable de entorno estándar <code>http_proxy=...</code> y reiniciar Node-RED, o usar la configuración de proxy. Si hay una configuración de proxy definidia, tiene prioridad sobre la variable de entorno.</p>
|
||||
<h4>Usar múltiples nodos de solicitud HTTP</h4>
|
||||
<p>Para utilizar más de uno de estos nodos en el mismo flujo, se debe tener cuidado con la propiedad <code>msg.headers</code>. El primer nodo establecerá esta propiedad con los encabezados de respuesta. El siguiente nodo utilizará esos encabezados para su solicitud; esto no suele ser lo correcto. Si la propiedad <code>msg.headers</code> no se modifica entre nodos, el segundo nodo la ignorará. Para configurar encabezados personalizados, primero se debe eliminar <code>msg.headers</code> o restablecerlo a un objeto vacío: <code>{}</code>.
|
||||
<h4>Manejo de cookies</h4>
|
||||
<p>La propiedad <code>cookies</code> pasada al nodo debe ser un objeto de pares nombre/valor.
|
||||
El valor puede ser una cadena para establecer el valor de la cookie o puede ser un objeto con una única propiedad <code>value</code>.</p>
|
||||
<p>Cualquier cookie devuelto por la solicitud se guarda en la propiedad <code>responseCookies</code>.</p>
|
||||
<h4>Manejo del tipo de contenido</h4>
|
||||
<p>Si <code>msg.payload</code> es un objeto, el nodo establecerá automáticamente el tipo de contenido de la solicitud en <code>application/json</code> y codificará el cuerpo como tal.</p >
|
||||
<p>Para codificar la solicitud como datos de formulario, <code>msg.headers["content-type"]</code> debe establecerse en <code>application/x-www-form-urlencoded</code>.< /p>
|
||||
<h4>Subir archivo</h4>
|
||||
<p>Para realizar una carga de archivos, <code>msg.headers["content-type"]</code> debe configurarse en <code>multipart/form-data</code> y <code>msg.payload</code > pasado al nodo debe ser un objeto con la siguiente estructura:</p>
|
||||
<pre><code>{
|
||||
"KEY": {
|
||||
"value": FILE_CONTENTS,
|
||||
@ -90,7 +77,5 @@
|
||||
}
|
||||
}
|
||||
}</code></pre>
|
||||
<p>The values of <code>KEY</code>, <code>FILE_CONTENTS</code> and <code>FILENAME</code>
|
||||
should be set to the appropriate values.</p>
|
||||
|
||||
<p>Los valores de <code>KEY</code>, <code>FILE_CONTENTS</code> y <code>FILENAME</code> deben establecerse en los valores apropiados.</p>
|
||||
</script>
|
||||
|
@ -15,29 +15,22 @@
|
||||
-->
|
||||
|
||||
<script type="text/html" data-help-name="websocket in">
|
||||
<p>WebSocket input node.</p>
|
||||
<p>By default, the data received from the WebSocket will be in <code>msg.payload</code>.
|
||||
The socket can be configured to expect a properly formed JSON string, in which
|
||||
case it will parse the JSON and send on the resulting object as the entire message.</p>
|
||||
<p>Nodo de entrada WebSocket.</p>
|
||||
<p>De forma predeterminada, los datos recibidos del WebSocket estarán en <code>msg.payload</code>.
|
||||
El socket se puede configurar para esperar una cadena JSON formada correctamente, en cuyo caso analizará el JSON y enviará el objeto resultante como el mensaje completo.</p>
|
||||
</script>
|
||||
|
||||
<script type="text/html" data-help-name="websocket out">
|
||||
<p>WebSocket out node.</p>
|
||||
<p>By default, <code>msg.payload</code> will be sent over the WebSocket. The socket
|
||||
can be configured to encode the entire <code>msg</code> object as a JSON string and send that
|
||||
over the WebSocket.</p>
|
||||
|
||||
<p>If the message arriving at this node started at a WebSocket In node, the message
|
||||
will be sent back to the client that triggered the flow. Otherwise, the message
|
||||
will be broadcast to all connected clients.</p>
|
||||
<p>If you want to broadcast a message that started at a WebSocket In node, you
|
||||
should delete the <code>msg._session</code> property within the flow.</p>
|
||||
<p>Nodo de salida WebSocket.</p>
|
||||
<p>De forma predeterminada, <code>msg.payload</code> se enviará a través del WebSocket. El socket se puede configurar para codificar todo el objeto <code>msg</code> como una cadena JSON y enviarlo a través del WebSocket.</p>
|
||||
<p>Si el mensaje que llega a este nodo comenzó en un nodo WebSocket In, el mensaje se enviará de vuelta al cliente que desencadenó el flujo. De lo contrario, el mensaje se transmitirá a todos los clientes conectados.</p>
|
||||
<p>Si quieres transmitir un mensaje que comenzó en un nodo WebSocket In, debes eliminar la propiedad <code>msg._session</code> del flujo.</p>
|
||||
</script>
|
||||
|
||||
<script type="text/html" data-help-name="websocket-listener">
|
||||
<p>This configuration node creates a WebSocket Server endpoint using the specified path.</p>
|
||||
<p>Este nodo de configuración crea un punto final de WebSocket Server utilizando la ruta especificada.</p>
|
||||
</script>
|
||||
|
||||
<script type="text/html" data-help-name="websocket-client">
|
||||
<p>This configuration node connects a WebSocket client to the specified URL.</p>
|
||||
<p>Este nodo de configuración conecta un cliente WebSocket a la URL especificada.</p>
|
||||
</script>
|
||||
|
Loading…
x
Reference in New Issue
Block a user