update japanese message of ping node (#644)

This commit is contained in:
Hiroyasu Nishiyama
2020-04-04 21:47:58 +09:00
committed by GitHub
parent 0b590236a0
commit ea3ed9ff5e
2 changed files with 33 additions and 61 deletions

View File

@@ -1,71 +1,44 @@
<!-- <script type="text/html" data-help-name="ping">
<p>pingを送信し、<code>msg.payload</code>にラウンドトリップタイムをミリ秒で返します。</p>
<p>5秒以内にホスト名が解決できなかったり、レスポンスが得られなければ、<b>false</b>を返します。</p>
<p>Additionally, <code>msg.ping</code> will contain details and options you sent in the input <code>msg</code> (see below for details) </p>
<p><code>msg.topic</code>には対象に設定したホスト名やIPアドレスが含まれます。</p>
<p>デフォルトでは20秒ごとにpingを送りますが、設定で変更できます。</p>
<h3>モード...</h3>
<ul>
<li><b>時限</b><br>
In <code>時限</code> mode, the fields <code>Target</code> and <code>Ping (S)</code> must be populated.
</li>
<li><b>引き金になった</b><br>
In <code>引き金になった</code> mode, you must connect an input wire and pass a <code>msg</code> in to triger the ping operation.
If <code>対象</code> is populated, this will be used as the host/ip.
Alternatively, If <code>対象</code> is left empty, you can pass a string or an array in
<ul>
<li><code>string</code> - a host name or IP address</li>
<li><code>array</code> - an array of host names (string) or objects. NOTE: The object must contain at minimum <code>.host</code>. You can add whatever properties you wish to this object and when the ping result is returned, it will be passed to the next node in <code>msg.ping</code> for use downstream</li>
<li>Example payload input: <code>["192.168.0.99", {"host":"192.168.0.1", "name":"The router"}, {"host":"myapiserver.com", "name":"external API", "support":"support@myapiserver.com"}]</code></li>
</ul>
</li>
</ul>
<p>補足: Ubuntu Snap内で実行している場合は、手動でnetwork-observeを開始する必要があります。
`snap connect node-red:network-observe`</p>
</script> -->
<script type="text/html" data-help-name="ping">
<p>pingを送信し<code>msg.payload</code></p>
<h3>Output</h3>
<h3>出力</h3>
<dl class="message-properties">
<dt>payload <span class="property-type">number</span></dt>
<dd> the trip time in mS.</dd>
<dt>topic <span class="property-type">string</span></dt>
<dd> the target host/ip</dd>
<dt>ping <span class="property-type">object</span></dt>
<dd> an object containing <code>host</code> and any other properties sent in the array object. <br>NOTE: This object is only appended when using triggered mode and an array for input payload. It is intended for adavanced users and permits scenarios where you need additional properties to be tagged into your result for use downstream.</dd>
<dt>payload <span class="property-type">数値</span></dt>
<dd> ミリ秒で表したトリップタイムレスポンスが無い場合ブール値<i>false</i></dd>
<dt>topic <span class="property-type">文字列</span></dt>
<dd> ターゲットホスト名もしくはIPアドレス</dd>
<dt>[ping] <span class="property-type">オブジェクト</span></dt>
<dd>要素が<code>host</code> <br>
<b></b>: </dd>
</dl>
<h3>Details</h3>
<p>5秒以内にホスト名が解決できなかったりレスポンスが得られなければ<b>false</b></p>
<h3>詳細</h3>
<p>ホスト名が解決できなかったりレスポンスが得られなければ<b>false</b></p>
<p>デフォルトでは20秒ごとにpingを送りますが設定で変更できます</p>
<h4>Mode...</h4>
<h4>モード...</h4>
<ul>
<li><b>Timed</b><br>
<P>In <code>Timed</code> mode, the fields <code>Target</code> and <code>Ping (S)</code> must be populated.</P>
<p><code>Target</code> must be a CSV list of hosts / IPs e.g. <code>"192.168.0.1"</code> or <code>"192.168.0.1, www.google.com"</code></p>
<p><code>Ping (S)</code> is the number of seconds between pings</p>
<li><b>時間</b><br>
<P><code>時間</code><code>Target</code><code>Ping()</code></P>
<p><code>ターゲット</code>/IP: <code>"192.168.0.1"</code> <code>"192.168.0.1, www.google.com"</code></p>
<p><code>Ping()</code>ping</p>
</li>
<li><b>Triggered</b><br>
<p>In <code>Triggered</code> mode, you must connect an input wire and pass a <code>msg</code> in to trigger the ping operation.</p>
<p>If <code>Target</code> is populated, this will be used as the host/ip. The Target must be is a CSV list of hosts / IPs e.g. <code>"192.168.0.1"</code> or <code>"192.168.0.1, www.google.com"</code></p>
<li><b>トリガー</b><br>
<p><code>トリガー</code><code>msg</code>ping
<p><code>ターゲット</code>IP使 /IP: <code>"192.168.0.1"</code> <code>"192.168.0.1, www.google.com"</code></p>
<p>If <code>Target</code> is left empty, you can pass a CSV string or an array of hosts in `msg.payload`
<p><code>ターゲット</code><code>msg.payload</code>
<ul>
<li><code>string</code> - a CSV list of hosts / IPs e.g. <code>"192.168.0.1"</code> or <code>"192.168.0.1, www.google.com"</code> </li>
<li><code>array</code> - an array of hosts as string or object. NOTE: The object must contain at minimum <code>.host</code>. Optionally, you can add a <code>timeout</code> property between 1000 & 30000 (default is 5000 / 5 seconds). Additionally, you can add whatever other properties you wish to this object and when the ping result is returned, it will be passed to the next node in <code>msg.ping</code> for use downstream</li>
<li>Example array payload input: <pre>[
<li><code>文字列</code> - /IP : <code>"192.168.0.1"</code> <code>"192.168.0.1, www.google.com"</code> </li>
<li><code>配列</code> - : <code>.host</code><code>timeout</code> 100030000(5000/5) ping<code>msg.ping</code></li>
<li>配列ペイロードの例: <pre>[
"192.168.0.99",
{
"host":"192.168.0.1",
"name":"The router"
"name":"ルータ"
},
{
"host":"myapiserver.com",
"name":"external API",
"name":"拡張API",
"timeout": 20000,
"support":"support@myapiserver.com"
}
@@ -75,8 +48,6 @@
</li>
</ul>
<p>補足: Ubuntu Snap内で実行している場合は手動でnetwork-observeを開始する必要があります
`snap connect node-red:network-observe`</p>
<p><b>補足</b>: Ubuntu Snapnetwork-observe
<code>snap connect node-red:network-observe</code></p>
</script>

View File

@@ -2,13 +2,14 @@
"ping": {
"ping": "ping",
"label": {
"target": "対象",
"target": "ターゲット",
"ping": "Ping (秒)",
"mode": "モード",
"mode_option": {
"timed": "時",
"triggered": "引き金になった"
}
"timed": "時",
"triggered": "トリガー"
},
"tip": "注: msg.payloadでホスト名を動的に指定する場合は、ターゲットフィールドを空にします。"
}
}
}