mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Merge branch 'master' into dev
This commit is contained in:
@@ -363,7 +363,7 @@
|
||||
"keepalive": "Keep-Alive",
|
||||
"cleansession": "Bereinigte Sitzung (clean session) verwenden",
|
||||
"cleanstart": "Verwende bereinigten Start",
|
||||
"use-tls": "Sichere Verbindung (SSL/TLS) verwenden",
|
||||
"use-tls": "TLS",
|
||||
"tls-config": "TLS-Konfiguration",
|
||||
"verify-server-cert": "Server-Zertifikat überprüfen",
|
||||
"compatmode": "MQTT 3.1 unterstützen",
|
||||
|
||||
@@ -52,10 +52,11 @@
|
||||
pass <code>msg</code> as a second argument to <code>node.error</code>:</p>
|
||||
<pre>node.error("Error",msg);</pre>
|
||||
<h4>Accessing Node Information</h4>
|
||||
<p>In the function block, id and name of the node can be referenced using the following properties:</p>
|
||||
<p>The following properties are available to access information about the node:</p>
|
||||
<ul>
|
||||
<li><code>node.id</code> - id of the node</li>
|
||||
<li><code>node.name</code> - name of the node</li>
|
||||
<li><code>node.outputCount</code> - number of node outputs</li>
|
||||
</ul>
|
||||
<h4>Using environment variables</h4>
|
||||
<p>Environment variables can be accessed using <code>env.get("MY_ENV_VAR")</code>.</p>
|
||||
|
||||
@@ -227,6 +227,7 @@
|
||||
"error": {
|
||||
"externalModuleNotAllowed": "Function node not allowed to load external modules",
|
||||
"moduleNotAllowed": "Module __module__ not allowed",
|
||||
"externalModuleLoadError": "Function node failed to load external modules",
|
||||
"moduleLoadError": "Failed to load module __module__: __error__",
|
||||
"moduleNameError": "Invalid module variable name: __name__",
|
||||
"moduleNameReserved": "Reserved variable name: __name__",
|
||||
@@ -877,6 +878,7 @@
|
||||
},
|
||||
"encoding": {
|
||||
"none": "default",
|
||||
"setbymsg": "set by msg.encoding",
|
||||
"native": "Native",
|
||||
"unicode": "Unicode",
|
||||
"japanese": "Japanese",
|
||||
|
||||
@@ -91,7 +91,7 @@
|
||||
</ul>
|
||||
</dd>
|
||||
<dt class="optional">complete</dt>
|
||||
<dd>If set, the node will append the payload, and then send the output message in its current state.
|
||||
<dd>If set, the node will append the payload, and then send the output message in its current state.
|
||||
If you don't wish to append the payload, delete it from the msg.</dd>
|
||||
</dl>
|
||||
<h3>Details</h3>
|
||||
@@ -150,6 +150,7 @@
|
||||
<p>By default, the reduce expression is applied in order, from the first
|
||||
to the last message of the sequence. It can optionally be applied in
|
||||
reverse order.</p>
|
||||
<p>$N is the number of messages that arrive - even if they are identical.</p>
|
||||
</dl>
|
||||
<p><b>Example:</b> the following settings, given a sequence of numeric values,
|
||||
calculates the average value:
|
||||
|
||||
@@ -21,6 +21,8 @@
|
||||
<dl class="message-properties">
|
||||
<dt class="optional">filename <span class="property-type">string</span></dt>
|
||||
<dd>If not configured in the node, this optional property sets the name of the file to be updated.</dd>
|
||||
<dt class="optional">encoding <span class="property-type">string</span></dt>
|
||||
<dd>If encoding is configured to be set by msg, then this optional property can set the encoding.</dt>
|
||||
</dl>
|
||||
<h3>Output</h3>
|
||||
<p>On completion of write, input message is sent to output port.</p>
|
||||
|
||||
@@ -44,10 +44,11 @@
|
||||
<p>catchノードを用いてエラー処理が可能です。catchノードで処理させるためには、<code>msg</code>を<code>node.error</code>の第二引数として渡します:</p>
|
||||
<pre>node.error("エラー",msg);</pre>
|
||||
<h4>ノード情報の参照</h4>
|
||||
<p>コード中ではノードのIDおよび名前を以下のプロパティで参照できます:</p>
|
||||
<p>ノードに関する情報を参照するための以下のプロパティを利用できます:</p>
|
||||
<ul>
|
||||
<li><code>node.id</code> - ノードのID</li>
|
||||
<li><code>node.name</code> - ノードの名称</li>
|
||||
<li><code>node.outputCount</code> - ノードの出力数</li>
|
||||
</ul>
|
||||
<h4>環境変数の利用</h4>
|
||||
<p>環境変数は<code>env.get("MY_ENV_VAR")</code>により参照できます。</p>
|
||||
|
||||
@@ -227,6 +227,7 @@
|
||||
"error": {
|
||||
"externalModuleNotAllowed": "Functionノードは、外部モジュールを読み込みできません",
|
||||
"moduleNotAllowed": "モジュール __module__ は利用できません",
|
||||
"externalModuleLoadError": "Functionノードは、外部モジュールの読み込みに失敗しました",
|
||||
"moduleLoadError": "モジュール __module__ の読み込みに失敗しました: __error__",
|
||||
"moduleNameError": "モジュール変数名が不正です: __name__",
|
||||
"moduleNameReserved": "予約された変数名です: __name__",
|
||||
@@ -875,6 +876,7 @@
|
||||
},
|
||||
"encoding": {
|
||||
"none": "デフォルト",
|
||||
"setbymsg": "msg.encodingで設定",
|
||||
"native": "ネイティブ",
|
||||
"unicode": "UNICODE",
|
||||
"japanese": "日本",
|
||||
|
||||
@@ -20,6 +20,8 @@
|
||||
<dl class="message-properties">
|
||||
<dt class="optional">filename <span class="property-type">文字列</span></dt>
|
||||
<dd>対象ファイル名をノードに設定していない場合、このプロパティでファイルを指定できます</dd>
|
||||
<dt class="optional">encoding <span class="property-type">文字列</span></dt>
|
||||
<dd>エンコーディングをmsgで設定する構成にした際は、この任意のプロパティでエンコーディングを設定できます。</dt>
|
||||
</dl>
|
||||
<h3>出力</h3>
|
||||
<p>書き込みの完了時、入力メッセージを出力端子に送出します。</p>
|
||||
|
||||
@@ -329,7 +329,7 @@
|
||||
"port": "포트",
|
||||
"keepalive": "킵 얼라이브 시간",
|
||||
"cleansession": "세션 초기화",
|
||||
"use-tls": "SSL/TLS접속을 사용",
|
||||
"use-tls": "사용TLS",
|
||||
"tls-config": "TLS설정",
|
||||
"verify-server-cert": "서버인증서를 확인",
|
||||
"compatmode": "구 MQTT 3.1서포트"
|
||||
|
||||
@@ -352,7 +352,7 @@
|
||||
"port": "Порт",
|
||||
"keepalive": "Keep-alive время (сек)",
|
||||
"cleansession": "Использовать чистую сессию",
|
||||
"use-tls": "Включить безопасное (SSL/TLS) соединение",
|
||||
"use-tls": "TLS",
|
||||
"tls-config":"Конфигурация TLS",
|
||||
"verify-server-cert":"Проверить сертификат сервера",
|
||||
"compatmode": "Использовать устаревшую поддержку MQTT 3.1"
|
||||
|
||||
@@ -349,7 +349,7 @@
|
||||
"port": "端口",
|
||||
"keepalive": "Keepalive计时(秒)",
|
||||
"cleansession": "使用新的会话",
|
||||
"use-tls": "使用安全连接 (SSL/TLS)",
|
||||
"use-tls": "使用 TLS",
|
||||
"tls-config": "TLS 设置",
|
||||
"verify-server-cert": "验证服务器证书",
|
||||
"compatmode": "使用旧式MQTT 3.1支持"
|
||||
|
||||
@@ -353,7 +353,7 @@
|
||||
"port": "埠",
|
||||
"keepalive": "Keepalive計時(秒)",
|
||||
"cleansession": "使用新的會話",
|
||||
"use-tls": "使用安全連接 (SSL/TLS)",
|
||||
"use-tls": "使用 TLS",
|
||||
"tls-config": "TLS 設置",
|
||||
"verify-server-cert": "驗證伺服器憑證",
|
||||
"compatmode": "使用舊式MQTT 3.1支援"
|
||||
|
||||
Reference in New Issue
Block a user