node-red-contrib-isonline

1.1.15 • Public • Published

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

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i node-red-contrib-isonline

    Weekly Downloads

    93

    Version

    1.1.15

    License

    ISC

    Last publish

    Collaborators

    • bladerunner2020