[{"data":1,"prerenderedAt":62},["ShallowReactive",2],{"integration-node-red-node-ping\u002F":3},{"_id":4,"categories":5,"author":8,"description":12,"npmOwners":13,"npmScope":16,"name":4,"ffCertified":17,"downloads":18,"version":20,"updatedAt":21,"maintainers":22,"homepage":27,"bugs":28,"repository":30,"time":34,"lastUpdated":21,"created":35,"license":57,"githubOwner":58,"githubRepo":59,"examples":60,"readme":61},"node-red-node-ping",[6,7],"catalogue_communication","catalogue",{"name":9,"email":10,"url":11},"Dave Conway-Jones","ceejay@vnet.ibm.com","http:\u002F\u002Fnodered.org","A Node-RED node to ping a remote server, for use as a keep-alive check.",[14,15],"knolleary","dceejay",null,false,{"week":19},3005,"0.3.3","2022-10-02T09:34:13.171Z",[23,25],{"name":14,"email":24},"nick.oleary@gmail.com",{"name":15,"email":26},"dceejay@gmail.com","https:\u002F\u002Fgithub.com\u002Fnode-red\u002Fnode-red-nodes#readme",{"url":29},"https:\u002F\u002Fgithub.com\u002Fnode-red\u002Fnode-red-nodes\u002Fissues",{"type":31,"url":32,"directory":33},"git","git+https:\u002F\u002Fgithub.com\u002Fnode-red\u002Fnode-red-nodes.git","tree\u002Fmaster\u002Fio\u002Fping",{"modified":21,"created":35,"0.0.1":35,"0.0.2":36,"0.0.3":37,"0.0.4":38,"0.0.6":39,"0.0.7":40,"0.0.9":41,"0.0.10":42,"0.0.11":43,"0.0.12":44,"0.0.13":45,"0.0.14":46,"0.0.15":47,"0.0.16":48,"0.1.0":49,"0.2.0":50,"0.2.1":51,"0.2.2":52,"0.3.0":53,"0.3.1":54,"0.3.2":55,"0.3.3":56},"2014-07-27T17:06:04.775Z","2014-11-07T10:01:51.101Z","2014-11-07T11:43:25.793Z","2015-03-03T21:51:06.824Z","2015-05-29T13:59:49.399Z","2015-12-26T19:20:54.070Z","2016-02-12T13:12:22.250Z","2016-02-13T11:11:46.316Z","2016-02-16T21:35:50.558Z","2016-03-02T13:22:10.565Z","2016-11-06T20:32:40.378Z","2017-11-10T15:25:16.840Z","2018-02-08T15:44:48.637Z","2018-12-05T13:46:16.686Z","2019-10-26T12:03:52.861Z","2020-04-04T12:49:39.653Z","2020-07-01T10:17:35.558Z","2020-11-20T18:07:45.552Z","2021-03-12T20:47:40.912Z","2021-04-08T16:07:52.696Z","2022-09-30T09:06:37.159Z","2022-10-02T09:34:13.103Z","Apache-2.0","node-red","node-red-nodes",[],"\u003Ch1 id=\"node-red-node-ping\">\u003Ca class=\"header-anchor\" href=\"#node-red-node-ping\">node-red-node-ping\u003C\u002Fa>\u003C\u002Fh1>\n\u003Cp>A \u003Ca href=\"http:\u002F\u002Fnodered.org\" target=\"_new\">Node-RED\u003C\u002Fa> node to ping a\nremote server, for use as a keep-alive check.\u003C\u002Fp>\n\u003Ch2 id=\"install\">\u003Ca class=\"header-anchor\" href=\"#install\">Install\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>Either use the Editor - Menu - Manage Palette - Import option or run the following command in your Node-RED user directory - typically \u003Ccode>~\u002F.node-red\u003C\u002Fcode>\u003C\u002Fp>\n\u003Cpre>\u003Ccode>npm install node-red-node-ping\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>\u003Cstrong>Gotchas\u003C\u002Fstrong>\u003C\u002Fp>\n\u003Cp>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\u003C\u002Fp>\n\u003Cpre>\u003Ccode> sudo snap connect node-red:network-observe\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Cp>2 On some versions on Raspbian (Raspberry Pi) \u003Ccode>ping\u003C\u002Fcode> seems to be a root only command.\nThe fix is to allow it as follows\u003C\u002Fp>\n\u003Cpre>\u003Ccode>sudo setcap cap_net_raw=ep \u002Fbin\u002Fping\nsudo setcap cap_net_raw=ep \u002Fbin\u002Fping6\n\u003C\u002Fcode>\u003C\u002Fpre>\n\u003Ch2 id=\"usage\">\u003Ca class=\"header-anchor\" href=\"#usage\">Usage\u003C\u002Fa>\u003C\u002Fh2>\n\u003Cp>Pings 1 or more devices and returns the trip time in mS as \u003Ccode>msg.payload\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Cp>Returns boolean \u003Ccode>false\u003C\u002Fcode> if no response received, or if the host is unresolveable.\u003C\u002Fp>\n\u003Cp>\u003Ccode>msg.error\u003C\u002Fcode> will contain any error message if necessary.\u003C\u002Fp>\n\u003Cp>\u003Ccode>msg.topic\u003C\u002Fcode> contains the ip address of the target host.\u003C\u002Fp>\n\u003Cp>There are 2 modes - \u003Ccode>Timed\u003C\u002Fcode> and \u003Ccode>Triggered\u003C\u002Fcode>.\u003C\u002Fp>\n\u003Cul>\n\u003Cli>Timed mode - this is the default mode that pings your devices on a timed basis. Default ping is every 20 seconds but can be configured.\u003C\u002Fli>\n\u003Cli>Triggered mode - this mode permits you to trigger the ping by an input message. If the \u003Ccode>Target\u003C\u002Fcode> is left blank and \u003Ccode>msg.payload\u003C\u002Fcode> is a string or array, you can ping 1 or more devices on demand.\u003C\u002Fli>\n\u003C\u002Ful>\n\u003Cp>Refer to the built in help on the side-bar info panel for more details.\u003C\u002Fp>\n",1784738655362]