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
msgif Internet connection is online andnullotherwise.msg.payloadis unchanged. - Pass through if offline: returns
msgif Internet connection is offline andnullotherwise.msg.payloadis unchanged. - Always pass through: returns original
msg(msg.payloadandmsg.topicis unchanged.msg.onlinecontains 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