node-red-contrib-isonline 1.1.15
Node-Red node that checks if the Internet connection or URL is online.
node-red-contrib-isonline
Install
Run command on Node-RED installation directory
npm install node-red-contrib-isonline
Config
A Node-RED node to check if the Internet connection is up. A node that check Internet connection on receiving a message.
URL: Check the general Internet connection if blank or check if the specific server is online.
msg.url:
if set overrides URL in the configuration box.
msg.timeout
: if set overrides default timeout value (1000 ms).
Action:
- True or false: returns true or false as msg.payload
- Pass through if online: returns
msg
if Internet connection is online andnull
otherwise.msg.payload
is unchanged. - Pass through if offline: returns
msg
if Internet connection is offline andnull
otherwise.msg.payload
is unchanged. - Always pass through: returns original
msg
(msg.payload
andmsg.topic
is unchanged.msg.online
contains the status of request.
msg.online
always contains the connection status
msg.timestamp
contains the timestamp
msg.online_error
contains the error string. Typically timeout