1
0
mirror of https://github.com/node-red/node-red-nodes.git synced 2023-10-10 13:36:58 +02:00
node-red-nodes/io/ping
2016-01-11 21:23:23 +00:00
..
88-ping.html Move ping and wol nodes to network category 2015-03-04 19:57:22 +00:00
88-ping.js tidy up Ping node close 2015-12-26 19:21:24 +00:00
LICENSE Add stomp, ping, wol, wemo nodes to npm 2014-07-27 18:05:23 +01:00
package.json tidy up Ping node close 2015-12-26 19:21:24 +00:00
README.md flag current error with ping command on Pi 2016-01-11 21:23:23 +00:00

node-red-node-ping

A Node-RED node to ping a remote server, for use as a keep-alive check.

Install

Run the following command in the root directory of your Node-RED install

npm install node-red-node-ping

Gotcha

On some versions on Raspbian (Raspberry Pi) ping seems to be a root only command. The fix is to allow it as follows

sudo setcap cap_net_raw=ep /bin/ping
sudo setcap cap_net_raw=ep /bin/ping6

Usage

Pings a machine and returns the trip time in mS.

Returns boolean false if no response received within 5 seconds, or if the host is unresolveable.

Default ping is every 20 seconds but can be configured.