node-red-contrib-isonline 1.1.15

Node-Red node that checks if the Internet connection or URL is online.

npm install 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 and null otherwise. msg.payload is unchanged.
  • Pass through if offline: returns msg if Internet connection is offline and null otherwise. msg.payload is unchanged.
  • Always pass through: returns original msg (msg.payload and msg.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

Node Info

Version: 1.1.15
Updated 1 year ago
License: ISC

Downloads

36 in the last day
165 in the last week
400 in the last month

Nodes

  • is online

Keywords

  • node-red

Maintainers

  • bladerunner2020