mirror of
https://github.com/node-red/node-red-nodes.git
synced 2023-10-10 13:36:58 +02:00
update ping node readme
(how to run in snap)
This commit is contained in:
parent
89d7853891
commit
d0f36dcda1
@ -18,7 +18,9 @@
|
|||||||
<p>Pings a machine and returns the trip time in mS as <code>msg.payload</code>.</p>
|
<p>Pings a machine and returns the trip time in mS as <code>msg.payload</code>.</p>
|
||||||
<p>Returns <b>false</b> if no response received within 5 seconds, or if the host is unresolveable.</p>
|
<p>Returns <b>false</b> if no response received within 5 seconds, or if the host is unresolveable.</p>
|
||||||
<p>Default ping is every 20 seconds but can be configured.</p>
|
<p>Default ping is every 20 seconds but can be configured.</p>
|
||||||
<p><code>msg.topic</code> contains the target host ip.
|
<p><code>msg.topic</code> contains the target host ip.</p>
|
||||||
|
<p>Note: if running inside Ubuntu Snap you will need to manually start the network-observe interface.
|
||||||
|
`snap connect node-red:network-observe`</p>
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
|
@ -11,9 +11,12 @@ Run the following command in your Node-RED user directory - typically `~/.node-r
|
|||||||
|
|
||||||
npm install node-red-node-ping
|
npm install node-red-node-ping
|
||||||
|
|
||||||
|
|
||||||
**Gotchas**
|
**Gotchas**
|
||||||
|
|
||||||
1 This won't run on Ubunti Snap as the strict container does not allow spawning of external commands (like ping).
|
1 Ubuntu Snap containers are strict and do not like giving external commands (like ping) external access. To allow ping to work you must manually add the network-observe interface
|
||||||
|
|
||||||
|
sudo snap connect node-red:network-observe
|
||||||
|
|
||||||
2 On some versions on Raspbian (Raspberry Pi) `ping` seems to be a root only command.
|
2 On some versions on Raspbian (Raspberry Pi) `ping` seems to be a root only command.
|
||||||
The fix is to allow it as follows
|
The fix is to allow it as follows
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name" : "node-red-node-ping",
|
"name" : "node-red-node-ping",
|
||||||
"version" : "0.0.16",
|
"version" : "0.0.17",
|
||||||
"description" : "A Node-RED node to ping a remote server, for use as a keep-alive check.",
|
"description" : "A Node-RED node to ping a remote server, for use as a keep-alive check.",
|
||||||
"dependencies" : {
|
"dependencies" : {
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user